/* =========================================================
   WorldBridge · Sabina Van Haaften
   Colores de marca: #12244A (azul) · #F1B335 (amarillo) · #FFFFFF
   ========================================================= */

:root {
  --navy: #12244A;
  --navy-2: #1c3466;
  --yellow: #F1B335;
  --yellow-dark: #d99a17;
  --white: #FFFFFF;
  --soft: #F6F8FC;
  --cream: #FFF7E6;
  --text: #2a3550;
  --muted: #5f6b85;
  --border: #e3e8f2;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(18, 36, 74, .08);
  --shadow-lg: 0 20px 50px rgba(18, 36, 74, .15);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.hidden { display: none; }
.center { text-align: center; margin-top: 3rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.4em;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95em 1.9em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 20px rgba(241, 179, 53, .35); }
.btn--accent:hover { background: var(--yellow-dark); }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(18, 36, 74, .25); }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(18, 36, 74, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__logo { width: 48px; height: auto; }
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--navy); }
.brand__text span { color: var(--yellow); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 700; color: var(--navy); font-size: .97rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 3px;
  background: var(--yellow); border-radius: 3px; transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(241, 179, 53, .18), transparent 45%),
    linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-block; padding: .45em 1em; border-radius: 999px;
  background: var(--cream); color: var(--navy); font-weight: 700; font-size: .9rem; margin-bottom: 1.2rem;
}
.highlight { position: relative; color: var(--navy); white-space: nowrap; }
.highlight::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em;
  background: var(--yellow); z-index: -1; border-radius: 6px; opacity: .85;
}
.hero h1 { position: relative; z-index: 1; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--navy); font-weight: 700; font-size: .95rem; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__blob {
  position: absolute; width: 88%; aspect-ratio: 1;
  background: var(--white); border-radius: 46% 54% 60% 40% / 45% 40% 60% 55%;
  box-shadow: var(--shadow-lg);
  animation: blob 12s ease-in-out infinite;
}
.hero__logo { position: relative; width: 78%; max-width: 420px; }
.float-card {
  position: absolute; background: var(--white); border-radius: var(--radius);
  padding: .8rem 1.1rem; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; line-height: 1.2;
  animation: float 5s ease-in-out infinite;
}
.float-card strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); }
.float-card span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.float-card--1 { top: 8%; left: -2%; border-left: 5px solid var(--yellow); }
.float-card--2 { bottom: 8%; right: -2%; border-left: 5px solid var(--navy); animation-delay: -2.5s; }

@keyframes blob {
  0%, 100% { border-radius: 46% 54% 60% 40% / 45% 40% 60% 55%; }
  50% { border-radius: 58% 42% 42% 58% / 55% 58% 42% 45%; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: var(--white); padding: 2.6rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--yellow); line-height: 1.1; }
.stat span { font-weight: 600; opacity: .9; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, .88); }
.section--dark h2 { color: var(--white); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--yellow-dark); margin-bottom: .6rem;
}
.eyebrow--light { color: var(--yellow); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.6rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.2rem 1.9rem; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); }
.card__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--cream); font-size: 1.9rem; margin-bottom: 1.2rem;
}
.card--featured { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .85); }
.card--featured h3 { color: var(--white); }
.card--featured p { color: rgba(255, 255, 255, .8); }
.card--featured .card__icon { background: rgba(241, 179, 53, .18); }
.card__badge {
  position: absolute; top: -14px; right: 24px; background: var(--yellow); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; padding: .35em .9em; border-radius: 999px;
}
.list { list-style: none; padding: 0; margin: 1rem 0 0; }
.list li { padding-left: 1.7em; position: relative; margin-bottom: .45em; font-weight: 600; }
.list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--yellow); color: var(--navy);
  font-size: .8em; display: grid; place-items: center; margin-top: .3em; font-weight: 800;
}

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.2rem; }
.mode {
  display: flex; gap: 1.3rem; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius-lg); padding: 1.9rem;
}
.mode p { margin: 0; color: var(--muted); }
.mode__icon {
  flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; font-size: 1.8rem; box-shadow: var(--shadow);
}

/* ---------- Edades ---------- */
.age {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.6rem; text-align: center;
  box-shadow: var(--shadow); border-bottom: 5px solid var(--yellow); transition: transform .25s;
}
.age:nth-child(even) { border-bottom-color: var(--navy); }
.age:hover { transform: translateY(-6px); }
.age__emoji { font-size: 2.8rem; margin-bottom: .5rem; }
.age__range {
  display: inline-block; background: var(--soft); color: var(--navy); font-weight: 800;
  font-size: .85rem; padding: .3em .9em; border-radius: 999px; margin-bottom: .8rem;
}
.age p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Pasos ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 22px);
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step__num {
  position: relative; display: grid; place-items: center; margin: 0 auto 1.2rem;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--navy); color: var(--yellow);
  font-family: var(--font-head); font-weight: 800; font-size: 1.7rem;
  box-shadow: 0 0 0 8px var(--white), var(--shadow-lg);
}
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.about__photo { position: relative; display: grid; place-items: center; }
.about__avatar {
  width: min(340px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #f7cf78);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 5rem; color: var(--navy);
  box-shadow: 0 0 0 14px rgba(241, 179, 53, .18);
}
.about__flags {
  position: absolute; bottom: 4%; background: var(--white); padding: .5rem 1.1rem;
  border-radius: 999px; font-size: 1.5rem; box-shadow: var(--shadow-lg);
}
.quote {
  margin: 1.8rem 0 0; padding: 1.2rem 1.5rem; border-left: 5px solid var(--yellow);
  background: rgba(255, 255, 255, .06); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-size: 1.15rem; color: var(--white); font-style: italic;
}

/* ---------- Testimonios ---------- */
.testimonial {
  margin: 0; background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.testimonial blockquote { margin: .6rem 0 1.2rem; font-size: 1.05rem; color: var(--text); flex: 1; }
.testimonial figcaption { color: var(--muted); font-size: .92rem; }
.testimonial figcaption strong { color: var(--navy); }
.stars { color: var(--yellow); font-size: 1.2rem; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; }
.faq__item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s;
}
.faq__item[open] { border-color: var(--yellow); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3.5rem 1.2rem 1.5rem; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--navy);
  display: grid; place-items: center; font-size: 1.3rem; transition: transform .25s, background .25s;
}
.faq__item[open] summary::after { content: "−"; background: var(--yellow); }
.faq__item p { padding: 0 1.5rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__item {
  display: flex; gap: .9rem; align-items: center; background: var(--white);
  padding: 1.1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; transition: transform .2s;
}
a.contact__item:hover { transform: translateY(-3px); }
.contact__item small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.contact__item strong { color: var(--navy); font-size: .98rem; line-height: 1.35; }
.contact__icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--cream);
  display: grid; place-items: center; font-size: 1.3rem;
}
.map {
  grid-column: 1 / -1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; background: var(--border);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--yellow);
}
.form h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { display: block; margin-bottom: 1rem; }
.form__field span { display: block; font-weight: 700; color: var(--navy); font-size: .92rem; margin-bottom: .35rem; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; padding: .8em 1em; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--soft); border: 2px solid transparent; border-radius: 12px; transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--yellow); background: var(--white); }
.form textarea { resize: vertical; }
.form__check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: .4rem 0 1.4rem; cursor: pointer; }
.form__check input { margin-top: .3em; accent-color: var(--navy); width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 3.5rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__brand img { background: var(--white); border-radius: 14px; padding: 4px; }
.footer__brand strong { font-family: var(--font-head); color: var(--white); font-size: 1.3rem; }
.footer__brand p { margin: 0; color: var(--yellow); font-weight: 700; }
.footer__col { display: flex; flex-direction: column; gap: .4rem; }
.footer__col strong { color: var(--white); font-family: var(--font-head); margin-bottom: .3rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--yellow); }
.footer__copy { text-align: center; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 10px 25px rgba(241, 179, 53, .5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(241, 179, 53, .6); }
  70% { box-shadow: 0 0 0 16px rgba(241, 179, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 179, 53, 0); }
}

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Página de gracias ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem 16px; background: var(--soft); }
.thanks img { width: 160px; margin: 0 auto 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 1.1rem; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 1rem 16px 1.5rem; box-shadow: 0 20px 30px rgba(18, 36, 74, .12);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__checks { justify-content: center; }
  .hero__visual { min-height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
  .cards--3 { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .quote { text-align: left; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards--4, .steps { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; }
  .form { padding: 1.6rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .float-card { padding: .6rem .85rem; }
  .float-card strong { font-size: 1.1rem; }
  .highlight { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
