/* ═══════════════════════════════════════════════
   XVIII Congreso Anual AEAPG 2026
   estilos.css
═══════════════════════════════════════════════ */

/* ── VARIABLES ───────────────────────────────── */
:root {
  --black:      #0a0a0a;
  --white:      #f5f2ee;
  --red:        #e8321c;
  --gold:       #d4a95e;
  --gold-dim:   #8a6a3a;
  --panel:      #ffffff;
  --gray:       #4a4a4a;
  --muted:      #8a8a8a;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── HEADER / NAV ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(212,169,94,0.2);
}
.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 48px;
  width: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 4px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 210;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background: var(--black);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
  margin-left: 6vw;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(30px, 5.5vw, 54px);
  line-height: 1.15;
  margin-bottom: 30px;
}
.hero-title .line {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 6px;
}
.line-red { background: var(--red); color: var(--white); }
.line-black {
  background: var(--black);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.6em;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  font-size: 15px;
}
.hero-date-icon { font-size: 24px; }
.hero-date strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.hero-date span { color: var(--muted); }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--white); }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-visual img {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  opacity: 0.9;
}

/* ── TEMAS ────────────────────────────────────── */
.temas {
  background: var(--white);
  color: var(--black);
  padding: 80px 0;
}
.temas h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 24px;
}
.temas-intro {
  font-size: 16px;
  line-height: 1.75;
  max-width: 1050px;
  color: var(--gray);
  margin-bottom: 50px;
}
.temas-intro p { margin-bottom: 20px; }
.temas-intro p:last-child { margin-bottom: 0; }
.temas-intro em { color: var(--red); font-style: normal; }

.temas-subtitulo {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 20px;
  scroll-margin-top: 90px;
}

.eje-bloque {
  background: #f7f4f0;
  border: 1px solid #e4ddd3;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.eje-bloque summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eje-bloque summary::-webkit-details-marker { display: none; }
.eje-bloque summary::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  color: var(--red);
  transition: transform 0.2s;
}
.eje-bloque[open] summary::after { transform: rotate(45deg); }
.eje-bloque summary:hover { background: #efe9e0; }

.eje-lista {
  list-style: none;
  counter-reset: eje-counter;
  padding: 4px 24px 28px;
}
.eje-lista li {
  counter-increment: eje-counter;
  position: relative;
  padding: 12px 0 12px 40px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
  border-top: 1px solid #e4ddd3;
}
.eje-lista li:first-child { border-top: none; }
.eje-lista li::before {
  content: counter(eje-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eje-lista li strong { color: var(--black); }

/* ── AUTORIDADES ──────────────────────────────── */
.autoridades {
  background: var(--black);
  padding: 80px 0;
}
.autoridades h2 {
  color: var(--white);
  margin-bottom: 40px;
}
.autoridad-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid rgba(212,169,94,0.2);
}
.autoridad-item:last-child { padding-bottom: 0; }
.autoridad-cargo {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
}
.autoridad-nombre {
  font-size: 17px;
  color: var(--white);
  line-height: 1.6;
}

/* ── ARANCELES ────────────────────────────────── */
.aranceles {
  background: var(--black);
  padding: 80px 0;
}
.aranceles h2 { margin-bottom: 8px; }
.aranceles-vigencia {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 30px;
}
.tabla-aranceles {
  background: var(--red);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.arancel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.arancel-row:last-child { border-bottom: none; }
.arancel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}
.arancel-cat {
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  letter-spacing: 0.6px;
  text-transform: none;
}
.arancel-precio { font-size: 17px; }
.arancel-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-arancel {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-arancel:hover { opacity: 0.85; }
.btn-mp { background: var(--white); color: var(--red); }
.btn-form { background: var(--black); color: var(--white); }
.arancel-nota {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.arancel-nota a { color: var(--gold); text-decoration: underline; }
.arancel-destacado {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 15px;
}
.arancel-destacado span { font-weight: 400; font-size: 13px; display: block; }
.arancel-ebook {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.preventa-libro {
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: left;
  padding: 28px 32px;
  border-radius: 8px;
}
.preventa-img {
  width: 190px;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.preventa-info { flex: 1; }
.preventa-libro h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.preventa-precio {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  margin-bottom: 16px;
}
.preventa-libro .btn-arancel {
  display: inline-block;
  background: var(--black);
  color: var(--white);
}
.preventa-nota {
  margin-top: 14px;
  font-size: 16px;
}
.preventa-nota a { color: var(--black); text-decoration: underline; }

/* ── AUSPICIAN ────────────────────────────────── */
.auspician {
  background: var(--black);
  padding: 0 0 80px;
}
.auspician h2 { margin-bottom: 30px; }
.sponsors-panel {
  background: var(--panel);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 50px;
  column-gap: 16px;
  align-items: center;
  justify-items: center;
}
.sponsor-logo img {
  max-height: 100px;
  width: 100%;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(0%);
}

/* ── CONTACTO ─────────────────────────────────── */
.contacto {
  background: var(--white);
  color: var(--black);
  padding: 80px 0;
}
.contacto h2 { margin-bottom: 40px; }
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.contacto-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  margin-bottom: 10px;
}
.contacto-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}
.contacto-item a { color: var(--black); text-decoration: underline; }

/* ── FOOTER ───────────────────────────────────── */
.site-footer {
  background: var(--red);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.footer-logo {
  height: 38px;
  width: auto;
  max-width: none;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 4px;
}
.footer-contacto {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--white);
  color: var(--red);
}

.footer-mfc-bar {
  background: var(--red);
  padding: 32px 24px;
  display: flex;
  justify-content: center;
}
.footer-mfc img {
  height: 32px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.footer-mfc:hover img { opacity: 0.85; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .sponsors-panel { grid-template-columns: repeat(3, 1fr); }
  .contacto-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 200;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 40px;
    display: none;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 26px;
    font-weight: 700;
  }
  .nav-links .nav-cta {
    margin-top: 12px;
    font-size: 20px;
    padding: 14px 32px;
  }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-logo { align-self: center; }

  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 110px 0 40px;
  }
  .hero-content {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
  }
  .hero-date { justify-content: center; }
  .btn-primary { display: inline-block; }
  .hero-btns { justify-content: center; }
  .hero-visual {
    position: static;
    margin-top: 30px;
  }
  .hero-visual img {
    position: static;
    transform: none;
    width: 85%;
    max-width: 400px;
    opacity: 0.9;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 600px) {
  .sponsors-panel { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .arancel-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .preventa-libro { flex-direction: column; text-align: center; }
  .contacto-grid { grid-template-columns: 1fr; text-align: center; }
}
