/* ── Variables ── */
:root {
  --yellow: #FFCB02;
  --yellow-dark: #E6B800;
  --yellow-light: #FFFBEA;
  --blue: #0B2545;
  --blue-dark: #071A35;
  --blue-mid: #163566;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray: #5A6475;
  --gray-light: #E8EBF0;
  --text: #0D1B2A;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.13);
  --nav-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--off-white); }
.section--blue { background: var(--blue); color: var(--white); }
.section--yellow { background: var(--yellow); color: var(--blue); }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(11,37,69,.07);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.section--blue .section-eyebrow { background: rgba(255,203,2,.2); }
.section--yellow .section-eyebrow { color: var(--blue); background: rgba(0,61,165,.12); }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 48px;
}
.section--blue .section-subtitle { color: rgba(255,255,255,.75); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--blue); }
.btn-primary:hover { background: var(--yellow-dark); box-shadow: 0 6px 20px rgba(255,203,2,.4); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(0,61,165,.4); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--blue);
  transition: box-shadow .3s;
}
.nav--scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-text span { color: var(--yellow); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links li a.active { color: var(--yellow); }
.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--yellow);
  color: var(--blue) !important;
  font-weight: 700 !important;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--yellow-dark) !important; transform: translateY(-1px); }
.nav-admin {
  margin-left: 4px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.45) !important;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  transition: color .2s, border-color .2s;
}
.nav-admin:hover { color: rgba(255,255,255,.8) !important; border-color: rgba(255,255,255,.4) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--blue-dark);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.nav-mobile.open { display: block; }
.nav-mobile-links li a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.nav-mobile-links li a:hover { color: var(--yellow); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(255,203,2,.04) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(255,255,255,.02) 0%, transparent 50%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title em { color: var(--yellow); font-style: normal; }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img {
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(8px);
}
.hero-badge-num { font-family:'Poppins',sans-serif; font-size:1.8rem; font-weight:900; line-height:1; color:var(--yellow); }
.hero-badge-label { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-top:2px; color:rgba(255,255,255,.6); }

/* ── Shield hero ── */
.hero-photo-wrap {
  position: relative;
}
.hero-photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,.55);
  display: block;
}
.hero-photo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(7,26,53,.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-photo-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}
.hero-photo-badge-text { line-height: 1.2; }
.hero-photo-badge-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--white);
}
.hero-photo-badge-year {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: .05em;
}
/* fallback shield (when no hero-main.jpg) */
.hero-shield-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-shield-ring {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(circle at center, rgba(255,255,255,.05) 0%, rgba(255,255,255,.01) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(0,0,0,.4), inset 0 0 40px rgba(0,0,0,.2);
  position: relative;
}
.hero-shield-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.hero-shield-ring img {
  width: 200px;
  height: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.4));
}
.hero-est {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

/* ── STATS BAR ── */
.stats-bar { padding: 28px 0; background: var(--blue); border-top: 1px solid rgba(255,255,255,.05); }
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-family:'Poppins',sans-serif; font-size:2rem; font-weight:900; color:var(--yellow); line-height:1; }
.stat-label { font-size: 0.8rem; font-weight: 600; color:rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ── ABOUT ── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-photos { position: relative; }
.about-photos-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-photos-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: block;
}
.about-values { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.about-value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--off-white);
  border-radius: 10px;
  border-left: 3px solid var(--blue);
}
.about-value-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.about-value-title { font-weight: 700; font-size: 0.95rem; color: var(--blue); }
.about-value-desc { font-size: 0.875rem; color: var(--gray); margin-top: 2px; }

/* ── EQUIPOS ── */
.equipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.equipo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  border: 1px solid var(--gray-light);
  text-align: left;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.equipo-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transition: transform .25s;
  transform-origin: bottom;
}
.equipo-card:hover { border-color: #C8CDD8; transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.equipo-card:hover::after { transform: scaleY(1); }
.equipo-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.equipo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0B1929;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.equipo-age { font-size: 0.8rem; color: var(--gray); font-weight: 500; margin-bottom: 14px; }
.equipo-badge {
  display: inline-block;
  background: #EDF0F7;
  color: #3A4A6B;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 4px;
}
.equipo-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.equipo-card-cta {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .2s;
}
.equipo-card--link:hover .equipo-card-cta { opacity: 1; }

/* ── NOVEDADES ── */
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.novedad-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.novedad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.novedad-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray-light);
}
.novedad-img--placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.novedad-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.novedad-date { font-size: 0.75rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.novedad-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  line-height: 1.3;
}
.novedad-excerpt { font-size: 0.875rem; color: var(--gray); flex: 1; margin-bottom: 16px; }
.novedad-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s, gap .2s;
}
.novedad-link:hover { color: var(--yellow-dark); gap: 8px; }
.novedades-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  grid-column: 1/-1;
}
.novedades-loading { text-align: center; padding: 40px; color: var(--gray); grid-column: 1/-1; }

/* ── CONTACTO ── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,.4); }
.form-input:focus, .form-textarea:focus { border-color: var(--yellow); }
.form-textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(255,203,2,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
  font-size: 1.3rem;
}
.contact-text strong { display: block; font-size: 0.825rem; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.contact-text a, .contact-text span { color: var(--white); font-size: 1rem; font-weight: 500; }
.contact-text a:hover { color: var(--yellow); }

/* ── FOOTER ── */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.6); padding: 40px 0 24px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 40px; }
.footer-logo-text { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1rem; color: var(--white); }
.footer-logo-text span { color: var(--yellow); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; transition: color .2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; }
.footer-admin-link { color: rgba(255,255,255,.25); font-size: 0.75rem; transition: color .2s; }
.footer-admin-link:hover { color: rgba(255,255,255,.6); }

/* ── Detail view ── */
.novedad-detail-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 28px;
  transition: gap .2s;
}
.detail-back:hover { gap: 10px; }
.detail-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; max-height: 440px; object-fit: cover; }
.detail-date { font-size: 0.8rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.detail-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--blue); margin-bottom: 20px; }
.detail-body { font-size: 1rem; line-height: 1.8; color: var(--gray); white-space: pre-line; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .equipos-grid { grid-template-columns: repeat(2, 1fr); }
  .novedades-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-admin { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 24px; gap: 40px; }
  .hero-image { order: -1; }
  .hero-badge { left: 10px; bottom: -10px; }
  .hero-actions { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .equipos-grid { grid-template-columns: repeat(2, 1fr); }
  .novedades-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .stats-inner { gap: 32px; }
}
@media (max-width: 480px) {
  .equipos-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
