/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }

:root{
  --gold:#F9C74F;
  --gold-soft:#ffcc70;
  --gold-strong:#ffae00;
  --bg1:#0e0e18;
  --bg2:#13131a;
  --panel:#1a1925;
  --panel2:#1f1e2e;
  --text:#FFFFFF;
  --muted:#ccc;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #09090f, #0c0c18);
  margin: 0;
  padding: 0;
  color: var(--text);
  animation: fadeIn 1s ease-in-out;
  line-height: 1.6;
}

@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ===== Navbar ===== */
.navbar {
  background: linear-gradient(to right, var(--bg1), var(--bg2));
  padding: 10px 20px;
  border-bottom: 3px solid var(--gold);
}
.navbar .navbar-toggler { border-color: rgba(255,255,255,.25); }

.navbar-nav .nav-link {
  color: #FFFFFF;
  font-weight: 600;
  margin: 0 6px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: var(--gold);
  color: #1C1C26;
  transform: translateY(-1px);
}
/* === ACTIVO (unificado con Home) === */
.navbar-nav .nav-link.active{
  background: var(--gold);
  color: #1C1C26;
  border-radius: 6px;
  font-weight: 700;
}

/* Logo */
#logo {
  width: 48px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  transition: transform 0.3s;
}
#logo:hover { transform: rotate(5deg) scale(1.06); }

/* Fecha */
#fecha-hora, #fecha-hora-mobile {
  font-size: 0.9em;
  font-weight: bold;
  color: var(--gold);
}

/* ===== OFFCANVAS (menú móvil) ===== */
.offcanvas-custom {
  --bs-offcanvas-width: min(420px, 90vw);
  background: rgba(19, 19, 26, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 576px) { .offcanvas-custom { --bs-offcanvas-width: 100vw; } }

.offcanvas-header { padding: 18px 18px 10px; }
.offcanvas-logo {
  width: 36px; height: 36px; border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}
.offcanvas-title { font-weight: 700; color: var(--gold); }

.mobile-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.mobile-link{
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; border-radius:14px;
  text-decoration:none; color:#fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 2px 12px rgba(0,0,0,0.25);
  transform: translateX(12px); opacity:0; animation: slideIn .45s ease forwards;
}
.mobile-link i{ font-size:1.2rem; }
.mobile-link span{ font-weight:600; letter-spacing:.2px; }
.mobile-link .arrow{ opacity:.6; }
.mobile-link:hover{ background:var(--gold); color:#1c1c26; transform: translateX(0) scale(1.02); }
/* === ACTIVO en móvil (unificado con Home) === */
.mobile-link.active{ background: var(--gold); color:#1c1c26; }

.mobile-link:nth-child(1){ animation-delay:.05s; }
.mobile-link:nth-child(2){ animation-delay:.12s; }
.mobile-link:nth-child(3){ animation-delay:.19s; }
.mobile-link:nth-child(4){ animation-delay:.26s; }
.mobile-link:nth-child(5){ animation-delay:.33s; }

.offcanvas-cta .btn { box-shadow: 0 6px 20px rgba(249,199,79,.25); border: none; }
.offcanvas-footer { border-top:1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,.9); }

@keyframes slideIn { to { transform: translateX(0); opacity: 1; } }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0d0c1d, #0d0c1d);
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}
.hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 3vw, 3rem);
  color: var(--gold-soft);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--gold-strong);
}
.hero p {
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  color: var(--muted);
}

/* ===== Main & Bloques ===== */
.main { padding: 2rem 1rem; }

.bloque {
  padding: 2rem;
  margin: 0 auto 1rem auto;
  max-width: 900px;
  border-left: 4px solid var(--gold-strong);
  background-color: var(--panel);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 174, 0, 0.08);
}
.bloque h2 {
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}
.bloque p { color: var(--muted); }

/* ===== Valores ===== */
.valores {
  display: grid;
  gap: 1.2rem;
  padding: 2rem 0 0 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.valor-card {
  background-color: var(--panel2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 174, 0, 0.05);
}
.valor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255, 174, 0, 0.15);
}
.valor-card h3 {
  font-size: 2rem;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}
.valor-card p { color: #ddd; }

/* ===== Footer ===== */
.footer {
  background-color: #13121a;
  text-align: center;
  padding: 1.5rem;
  color: var(--gold-soft);
  font-size: 0.95rem;
  border-top: 2px solid var(--gold-strong);
}

/* ===== Animaciones on-scroll ===== */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive helpers ===== */
@media (max-width: 768px) {
  .navbar-nav { justify-content: flex-end; }
  .main { padding: 1.4rem 1rem; }
}
