/* =========================================================
   ÍSCARCUP TECNIFICACIÓN — Hoja de estilos
   Índice:
   1. Variables y reset
   2. Tipografía y utilidades
   3. Botones
   4. Header / navegación
   5. Hero
   6. Secciones genéricas
   7. Sello ÍscarCup (stats)
   8. Metodología (cards)
   9. Precios
   10. Equipo
   11. Galería + lightbox
   12. FAQ (accordion)
   13. Inscripción / formulario
   14. Footer
   15. Cookie bar + CTA flotante móvil
   16. Responsive
   ========================================================= */

/* ---------- 1. Variables y reset ---------- */
:root {
  --azul: #2D4F7A;
  --azul-profundo: #0E3157;
  --amarillo: #F2B705;
  --blanco: #FFFFFF;
  --gris-claro: #F2F4F7;
  --gris-texto: #4A5568;
  --texto: #1A2533;

  --font-heading: "Clash Display", "Montserrat", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-pill: 9999px;
  --radius-card: 16px;
  --shadow-card: 0 8px 24px rgba(14, 49, 87, 0.08);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

/* ---------- 2. Tipografía y utilidades ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--azul-profundo);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--blanco); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.02em; }
p { line-height: 1.65; color: var(--gris-texto); margin: 0 0 1em; }
.lead { font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 0.8rem;
}
.eyebrow-light { color: var(--amarillo); }

.text-center { text-align: center; }
.text-white { color: var(--blanco); }
.text-white-70 { color: rgba(255,255,255,0.75); }
.text-white-50 { color: rgba(255,255,255,0.55); }
.text-accent { color: var(--amarillo); }

.section { padding: 5.5rem 0; }
.section-alt { background: var(--gris-claro); }
.section-dark { background: var(--azul-profundo); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-head { max-width: 640px; margin: 0 auto 3rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1.1em;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-accent { background: var(--amarillo); color: var(--azul-profundo); }

.fine-print { font-size: 0.85rem; color: var(--gris-texto); margin-top: 1.5rem; }
.fine-print a { color: var(--azul); text-decoration: underline; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.8em;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amarillo); color: var(--azul-profundo); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(242, 183, 5, 0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--azul); color: var(--azul); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.btn-lg { padding: 1.1em 2.2em; font-size: 1rem; }
.btn-sm { padding: 0.6em 1.3em; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- 4. Header / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(14,49,87,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--azul-profundo);
  line-height: 1.1;
}
.brand-text strong { display: block; font-size: 0.7em; color: var(--azul); letter-spacing: 0.15em; }

.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gris-texto);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--azul); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--azul-profundo); border-radius: 2px; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--blanco);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,49,87,0.75) 0%, rgba(14,49,87,0.55) 45%, rgba(14,49,87,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 8rem 24px 4rem; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 2.5rem; }

.hero-facts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
}
.hero-facts li { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.hero-facts strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; color: var(--blanco); text-transform: uppercase; }

/* ---------- 6. Claim ---------- */
.claim {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--azul-profundo);
  margin: 2rem 0 0;
  padding: 0;
  font-style: normal;
  text-transform: uppercase;
}

/* ---------- 7. Sello ÍscarCup (stats) ---------- */
.stat-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--amarillo);
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- 8. Metodología (cards) ---------- */
.card {
  background: var(--blanco);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.card-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.95rem; }

/* ---------- 9. Precios ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 2.5rem; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanco);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 560px;
}
.price-table th {
  background: var(--azul-profundo);
  color: var(--blanco);
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-table td {
  padding: 1.3rem 1.4rem;
  border-top: 1px solid var(--gris-claro);
  font-size: 1rem;
  color: var(--texto);
}
.td-note { display: block; font-size: 0.8rem; color: var(--gris-texto); font-weight: 400; margin-top: 0.2rem; }
.save { color: var(--azul); font-size: 0.85rem; font-weight: 700; }

.price-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.price-note {
  background: var(--blanco);
  border: 1.5px solid rgba(45,79,122,0.15);
  border-radius: var(--radius-card);
  padding: 1.3rem 1.5rem;
}
.price-note strong { display: block; color: var(--azul-profundo); margin-bottom: 0.3rem; }
.price-note span { font-size: 0.88rem; color: var(--gris-texto); }

.extras h3 { text-align: center; margin-bottom: 1.5rem; }
.extras-grid { text-align: center; }
.extra {
  background: var(--blanco);
  border-radius: var(--radius-card);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-card);
}
.extra strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--azul); }
.extra span { font-size: 0.85rem; color: var(--gris-texto); }

/* ---------- 10. Equipo ---------- */
.team-lead {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  background: var(--gris-claro);
  border-radius: var(--radius-card);
  padding: 2.5rem;
}
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--azul);
  border: 4px solid var(--blanco);
  box-shadow: var(--shadow-card);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo--empty img { opacity: 0; }
.team-role { display: block; color: var(--azul); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.8rem; }
.team-info p { margin: 0; font-size: 0.95rem; }

/* ---------- 11. Galería + lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14,49,87,0.94);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 2.2rem;
  color: var(--blanco);
  line-height: 1;
}

/* ---------- 12. FAQ (accordion) ---------- */
.accordion-item { border-bottom: 1px solid rgba(45,79,122,0.15); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.4rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--azul-profundo);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-trigger::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--azul);
  transition: transform 0.2s ease;
}
.accordion-item.is-open .accordion-trigger::after { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-item.is-open .accordion-panel { max-height: 300px; }
.accordion-panel p { padding-bottom: 1.4rem; margin: 0; font-size: 0.95rem; }

/* ---------- 13. Inscripción / formulario ---------- */
.inscripcion-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.form-card {
  background: var(--blanco);
  border-radius: var(--radius-card);
  padding: 2.2rem;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 0.4rem;
}
.form-row input {
  width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid rgba(45,79,122,0.2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--texto);
}
.form-row input:focus { outline: none; border-color: var(--azul); }
.form-legal { font-size: 0.78rem; color: var(--gris-texto); margin: 1rem 0 0; text-align: center; }
.form-legal a { text-decoration: underline; }

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-card);
  padding: 2.2rem;
}
.contact-card h3 { color: var(--blanco); margin-bottom: 1.3rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-line:hover { color: var(--amarillo); }
.contact-address { align-items: flex-start; color: rgba(255,255,255,0.75); font-weight: 400; }
.map-embed { margin-top: 1.3rem; border-radius: 12px; overflow: hidden; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--azul-profundo); padding-top: 4rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.footer-brand span { font-family: var(--font-heading); font-weight: 900; color: var(--blanco); font-size: 0.9rem; }
.footer-brand span strong { display: block; font-size: 0.7em; color: var(--amarillo); letter-spacing: 0.1em; }
.footer-brand p { flex-basis: 100%; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 0.6rem; }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a, .footer-legal a { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--amarillo); }
.footer-social { display: flex; gap: 0.8rem; align-self: start; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--blanco);
}
.footer-social a:hover { background: var(--amarillo); color: var(--azul-profundo); }
.footer-bottom { padding: 1.5rem 0; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.45); text-align: center; }

/* ---------- 15. Cookie bar + CTA flotante móvil ---------- */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--azul-profundo);
  color: rgba(255,255,255,0.85);
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.cookie-bar p { margin: 0; font-size: 0.85rem; max-width: 640px; color: inherit; }
.cookie-bar a { text-decoration: underline; color: var(--blanco); }
.cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.cookie-bar .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--blanco); }

/* El atributo hidden debe poder ocultar la barra pese al display:flex de arriba */
.cookie-bar[hidden] { display: none !important; }

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 90;
  background: var(--amarillo);
  color: var(--azul-profundo);
  text-align: center;
  padding: 1em;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .inscripcion-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: span 2; flex-direction: row; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-sm { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--blanco);
    padding: 1.5rem 24px;
    gap: 1.2rem;
    box-shadow: var(--shadow-card);
  }

  .hero { min-height: 100vh; }
  .hero-content { padding-top: 6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 3.5rem 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .price-notes { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .team-lead { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-social { grid-column: auto; }

  .mobile-cta { display: block; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Formulario de inscripción: campos nuevos ───────────────────── */
.form-opt { font-weight: 400; opacity: 0.6; font-size: 0.85em; }

.form-choice { border: 0; padding: 0; margin: 0 0 1.1rem; }
.form-choice legend { display: block; margin-bottom: 0.55rem; font-weight: 600; font-size: 0.95rem; }
.form-choice .choice {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.65rem 0.8rem; margin-bottom: 0.45rem;
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px;
  cursor: pointer; font-weight: 400; font-size: 0.93rem; line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-choice .choice:hover { border-color: var(--azul-profundo); }
/* El CSS general pone width:100% a los inputs del formulario. Los radios y
   la casilla necesitan tamano propio o rompen la caja. */
.form-choice .choice input[type="radio"],
.form-consent input[type="checkbox"] {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0;
  margin: 0.2rem 0 0;
  border: 0;
  border-radius: 0;
  accent-color: var(--azul-profundo);
}
.form-choice .choice span { flex: 1 1 auto; }
.form-consent span { flex: 1 1 auto; }
.form-choice .choice:has(input:checked) { border-color: var(--azul-profundo); background: rgba(21,72,126,0.06); }

.form-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 0.2rem 0 1.1rem; font-size: 0.82rem; line-height: 1.45; font-weight: 400;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--azul-profundo); }

/* ── Página de gracias ──────────────────────────────────────────── */
.gracias-wrap { min-height: 62vh; display: flex; align-items: center; padding: 5rem 0; }
.gracias-card { max-width: 680px; margin: 0 auto; text-align: center; }
.gracias-check {
  width: 76px; height: 76px; margin: 0 auto 1.6rem; border-radius: 50%;
  background: var(--amarillo); color: var(--azul-profundo);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700;
}
.gracias-pasos { text-align: left; max-width: 520px; margin: 2rem auto; }
.gracias-pasos li { margin-bottom: 0.9rem; line-height: 1.5; }
/* El h1 general es blanco (pensado para el hero). Aqui el fondo es blanco. */
.gracias-card h1 { color: var(--azul-profundo); font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.gracias-card .lead { margin-bottom: 0.5rem; }
