/* ============================================================
   The QAN Club — landing v1
   Paleta y tipografía extraídas de @qan.pe (ver BRAND.md)
   ============================================================ */

@font-face {
  font-family: "Shadows Into Light Two";
  src: url("fonts/ShadowsIntoLightTwo-Regular.ttf") format("truetype");
  font-display: swap;
}
/* Neucha cubre los signos ¡ ¿ que Shadows Into Light Two no trae */
@font-face {
  font-family: "Neucha";
  src: url("fonts/Neucha.ttf") format("truetype");
  font-display: swap;
}

:root {
  --green-950: #24392f;
  --green-900: #2f4a3e;
  --green: #456558;
  --green-deep: #3b6555;
  --sage: #56836f;
  --sage-light: #a5b2a2;
  --cream: #f5eedc;
  --cream-2: #efe5cc;
  --paper: #fbf7ec;
  --caramel: #a27e4d;
  --gold: #c09b57;

  --font-hand: "Shadows Into Light Two", "Neucha", cursive;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 40px -22px rgba(36, 57, 47, 0.45);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--green-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; color: var(--green); }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* Letra manuscrita: un trazo extra le da el peso del lettering de los posts */
.hand {
  font-family: var(--font-hand);
  -webkit-text-stroke: 0.025em currentColor;
  letter-spacing: 0.01em;
  word-spacing: -0.12em;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
}

.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: var(--cream); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { border-color: var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--green-900); }
.btn--cream:hover { background: #fff; }
.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 220, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled { border-color: rgba(69, 101, 88, 0.15); box-shadow: 0 8px 30px -24px rgba(36, 57, 47, 0.5); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { width: 78px; height: auto; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.4rem); margin: 1.1rem 0 1.4rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34rem; color: var(--green-900); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}
.pill svg, .mode__meta svg, .contact svg {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 2.2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.hero__facts strong { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caramel); }

.hero__media { position: relative; min-height: 560px; }
.photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--main { position: absolute; right: 0; top: 0; width: 76%; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); }
.photo--float { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 5; border: 8px solid var(--cream); }
.sticker {
  position: absolute;
  right: -6px; bottom: 9%;
  display: grid; place-items: center;
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--caramel);
  color: var(--cream);
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
  transform: rotate(-10deg);
  box-shadow: var(--shadow);
}
.doodle { position: absolute; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; opacity: 0.55; pointer-events: none; }
.doodle--cloud { width: 220px; left: 8%; top: -10px; }

/* ---------- Trust ---------- */
.trust { background: var(--paper); border-block: 1px solid rgba(69, 101, 88, 0.12); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 2.2rem; }
.trust__item { display: flex; gap: 1rem; align-items: flex-start; }
.trust__item svg {
  flex: none; width: 48px; height: 48px; padding: 9px;
  border-radius: 50%; background: var(--cream-2);
  fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linejoin: round;
}
.trust__item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--green-900); }
.trust__item p { margin: 0; font-size: 0.92rem; }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); overflow: hidden; }
.section--green { background: var(--green); color: var(--cream); }
.section--green h2, .section--green h3 { color: var(--cream); }
.section--green .eyebrow { color: var(--gold); }
.section--cream2 { background: var(--cream-2); }
.section__head { max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 1rem; }
.section h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 1.2rem; }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(69, 101, 88, 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 1.6rem 1.7rem 1.9rem; }
.card h3 { font-size: 2.4rem; margin: 0.6rem 0 0.7rem; }
.card--featured { background: var(--green); color: var(--cream); border-color: var(--green); }
.card--featured h3 { color: var(--cream); }
.card--featured .btn--primary { background: var(--cream); color: var(--green-900); }
.card--featured .checks li::before { background-color: var(--gold); }
@media (min-width: 961px) { .card--featured { margin-top: -1.5rem; } }

.tag {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--cream-2); color: var(--green);
}
.tag--gold { background: var(--gold); color: var(--green-950); }

.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5eedc' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.card__link { font-weight: 700; color: var(--caramel); text-decoration: none; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Modalidades ---------- */
.doodle--corner { width: 260px; right: -20px; top: 40px; stroke: var(--cream); opacity: 0.4; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.mode { overflow: hidden; border-radius: var(--radius-lg); background: var(--green-deep); border: 1px solid rgba(245, 238, 220, 0.12); display: flex; flex-direction: column; }
.mode figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.mode figure img { width: 100%; height: 100%; object-fit: cover; }
.mode__body { padding: 2rem 2.1rem 2.3rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.mode__body .btn { margin-top: auto; }
.mode h3 { font-size: 2.6rem; margin-bottom: 0.8rem; }
.mode p { color: rgba(245, 238, 220, 0.88); }
.quote { font-size: 1.7rem; line-height: 1.2; color: var(--gold) !important; }
.mode__meta { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--cream) !important; margin-bottom: 1.4rem; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.team__photos { position: relative; min-height: 600px; }
.team__photos img { position: absolute; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.team__a { left: 0; top: 0; width: 62%; aspect-ratio: 4 / 5; }
.team__b { right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 5; border: 8px solid var(--cream); border-radius: var(--radius-lg) 160px var(--radius-lg) var(--radius-lg) !important; }
.testimonial {
  position: relative; margin: 2rem 0 0; padding: 3.4rem 1.9rem 1.6rem;
  border-radius: var(--radius); background: var(--paper);
  border: 1px solid rgba(69, 101, 88, 0.14);
}
.testimonial::before {
  content: "“"; position: absolute; top: 0.9rem; left: 1.4rem;
  font-family: Georgia, "Times New Roman", serif; font-size: 3.4rem; line-height: 1; color: var(--gold);
}
.testimonial p { font-size: 1.05rem; font-style: italic; }
.testimonial footer { font-weight: 700; color: var(--green); }
.testimonial footer span { font-weight: 500; color: var(--caramel); margin-left: 0.3rem; font-size: 0.9rem; }

/* ---------- Video ---------- */
.reel { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.reel__video { justify-self: center; width: min(100%, 340px); }
.reel__video video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 36px; border: 10px solid var(--green); box-shadow: var(--shadow); background: var(--green);
}
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.steps li { display: flex; align-items: center; gap: 1rem; font-weight: 500; }
.steps span {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--green); color: var(--cream); font-family: var(--font-hand); font-size: 1.4rem;
}

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 1rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); transition: transform 0.6s var(--ease), filter 0.6s; }
.gallery img:hover { transform: scale(1.02); filter: saturate(1.1); }
.g-tall { grid-row: span 2; }

/* ---------- CTA / Contacto ---------- */
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.cta p { color: rgba(245, 238, 220, 0.88); }
.phone {
  display: inline-block; margin: 0.8rem 0 1.8rem; padding: 0.6rem 1.8rem;
  border-radius: 999px; background: var(--cream); color: var(--green-900);
  font-size: clamp(2rem, 4vw, 2.8rem); text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.phone:hover { transform: translateY(-3px) rotate(-1deg); }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.contact li { display: flex; align-items: center; gap: 0.7rem; }
.contact a { text-decoration: none; border-bottom: 1px solid rgba(245, 238, 220, 0.4); }
.contact a:hover { border-color: var(--gold); }
.map { overflow: hidden; border-radius: var(--radius-lg); border: 8px solid var(--green-deep); aspect-ratio: 4 / 3.4; background: var(--green-deep); }
.map-wrap { display: grid; gap: 1rem; justify-items: start; }
.map-wrap .map { width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.75) sepia(0.12); }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: var(--cream); padding-block: 2.6rem; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 0.4rem; }
.footer img { width: 84px; margin-bottom: 0.6rem; }
.footer p { margin: 0; font-size: 0.92rem; opacity: 0.85; }
.footer__small { font-size: 0.8rem !important; opacity: 0.55 !important; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: var(--cream); box-shadow: 0 14px 30px -10px rgba(36, 57, 47, 0.6);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  /* El backdrop-filter del nav lo vuelve el bloque contenedor del menú, así que se
     posiciona justo debajo del nav y se oculta por completo (no solo desplazado),
     para que su borde no asome por encima de la barra. */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 0.5rem 1.25rem 1.5rem; background: var(--cream);
    border-bottom: 1px solid rgba(69, 101, 88, 0.15);
    box-shadow: 0 18px 30px -24px rgba(36, 57, 47, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid rgba(69, 101, 88, 0.1); font-size: 1.05rem; }
  .nav.is-open .nav__links {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 24px; height: 2px; background: var(--green); transition: transform 0.3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero__grid, .team, .reel, .cta__grid, .modes { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .trust__grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }

  /* Hero: la foto principal ocupa el ancho y la secundaria solo asoma por la esquina, sin tapar caras */
  .hero__media {
    min-height: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 2.2rem;
  }
  .photo--main { position: relative; width: 88%; margin-left: auto; border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
  .photo--float { width: 34%; left: 0; bottom: 0; border-width: 6px; border-radius: var(--radius); }
  .sticker { right: auto; left: 2%; top: 6%; bottom: auto; width: 96px; height: 96px; font-size: 1.1rem; }
  .doodle--cloud, .doodle--corner { display: none; }

  /* Equipo: dos fotos lado a lado, sin superponerse */
  .team__photos {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-items: start;
  }
  .team__photos img { position: static; width: 100%; aspect-ratio: 4 / 5; }
  .team__b { border: 0; margin-top: 2.5rem; border-radius: var(--radius-lg) 90px var(--radius-lg) var(--radius-lg) !important; }

  .map { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .nav__cta { display: none; }
  .hero__actions .btn { width: 100%; }
  .hero { padding-top: 1.5rem; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .hero__actions { margin: 1.6rem 0 1.8rem; }
  .hero__facts { gap: 0.9rem 1.6rem; }
  .sticker { width: 84px; height: 84px; font-size: 0.98rem; }
  .gallery { grid-auto-rows: 150px; gap: 0.6rem; }
  .gallery img { border-radius: 16px; }
  .section__head h2, .section h2 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .card h3 { font-size: 2.1rem; }
  .mode h3 { font-size: 2.2rem; }
  .quote { font-size: 1.45rem; }
  .phone { font-size: 1.9rem; padding: 0.5rem 1.4rem; }
  .reel__video { width: min(100%, 300px); }
  .wa-float { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
  .mode__body, .card__body { padding: 1.5rem; }
}
