/* ===================================================
   TROPICAL SEXI — styles.css
   Tema claro, tropical y con aire. Ligero como Lighthouse,
   con una escena 3D contenida sólo en el hero.
   Paleta: verde chirimoya · turquesa mar · coral atardecer.
   =================================================== */

:root {
  /* --- Acentos de marca (iguales en ambos temas) --- */
  --ocean:      #0a1f15;
  --ocean-2:    #103024;
  --ocean-3:    #164031;
  --palm:       #3e9a5f;
  --palm-deep:  #256b40;
  --palm-soft:  #7fc98c;
  --lime:       #b6cf7d;
  --lime-soft:  #cfe09a;
  --turquoise:  #3ec9b0;
  --turq-soft:  #7fe0cd;
  --coral:      #ff8e63;
  --coral-deep: #ef6f45;
  --peach:      #ffb08a;
  --amber:      #ffca6e;
  --cream:      #f6efe0;
  --cream-2:    #fbf7ee;
  /* Gradientes firma */
  --sunset:     linear-gradient(100deg, #ff8e63 10%, #ffca6e 85%);
  --tropic:     linear-gradient(100deg, #256b40 0%, #3e9a5f 55%, #7fc98c 100%);
  /* Tipografías */
  --display: 'Syne', system-ui, sans-serif;
  --body:    'Figtree', system-ui, sans-serif;
  --serif:   'Instrument Serif', Georgia, serif;
  /* Métrica */
  --maxw: 1160px;
  --nav-h: 72px;
  --radius: 18px;
  --radius-lg: 26px;

  /* ===== TEMA OSCURO (por defecto) ===== */
  --bg:        #0b2117;
  --bg-tint:   #0e2b1e;
  --card:      #143528;
  --ink:       #eaf3ec;
  --ink-2:     #a7c6b4;
  --muted:     #7fa08e;
  --line:      rgba(233, 243, 236, 0.13);
  --line-soft: rgba(233, 243, 236, 0.07);
  --nav-bg:    rgba(9, 26, 18, 0.86);
  --input-bg:  #0e2a1f;
  --hover:     rgba(255, 255, 255, 0.07);
  --accent:    #7fce93;
  --footer-bg: #071b12;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.48);
}

/* ===== TEMA CLARO ===== */
html[data-theme="light"] {
  --bg:        #f6efe0;
  --bg-tint:   #eaf1de;
  --card:      #fffdf8;
  --ink:       #12291d;
  --ink-2:     #3f5a4b;
  --muted:     #6d8577;
  --line:      rgba(18, 41, 29, 0.13);
  --line-soft: rgba(18, 41, 29, 0.08);
  --nav-bg:    rgba(246, 239, 224, 0.92);
  --input-bg:  #fbf7ee;
  --hover:     rgba(18, 41, 29, 0.06);
  --accent:    #256b40;
  --footer-bg: #0a1f15;
  --shadow-sm: 0 2px 10px rgba(18, 41, 29, 0.06);
  --shadow-md: 0 14px 40px rgba(18, 41, 29, 0.10);
  --shadow-lg: 0 30px 70px rgba(18, 41, 29, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.gated { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
em { font-style: italic; }
:focus-visible {
  outline: 3px solid var(--palm);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; }
.h-lg { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.28rem; }
.serif { font-family: var(--serif); font-style: italic; }
strong { font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--coral);
  vertical-align: middle;
  margin-right: 0.6rem;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.4rem); }
.section { padding: clamp(3.6rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-sub { color: var(--ink-2); font-size: 1.06rem; margin-top: 0.8rem; }
.lead { font-size: 1.14rem; color: var(--ink-2); }
.section p + p { margin-top: 1rem; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 2000;
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--palm-deep);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  padding: 0.72rem 1.35rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--palm-deep); box-shadow: 0 8px 22px rgba(37, 107, 64, 0.28); }
.btn-primary:hover { --btn-bg: #1f5c37; }
.btn-dark { --btn-bg: var(--ocean-2); }
.btn-dark:hover { --btn-bg: var(--ocean); }
.btn-outline {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}
.btn-outline:hover { --btn-bg: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { --btn-bg: var(--hover); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.86rem; }
.btn-lg { padding: 0.92rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1600;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, #14382a 0%, #0a1f15 70%);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .loader { display: none; }
.loader-inner { display: grid; justify-items: center; gap: 0.9rem; text-align: center; }
.loader-logo { width: 72px; height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); animation: floaty 3s ease-in-out infinite; }
.loader-brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--cream); }
.loader-brand em { font-family: var(--serif); color: var(--lime-soft); font-weight: 400; }
.loader-track { width: 180px; height: 4px; background: rgba(255,255,255,0.14); border-radius: 999px; overflow: hidden; }
.loader-track i { display: block; height: 100%; width: 0%; background: var(--tropic); border-radius: 999px; transition: width 0.35s ease; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .loader-logo { animation: none; } }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center; padding: 1.4rem;
  background: radial-gradient(130% 120% at 50% 20%, #164031 0%, #0a1f15 72%);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.age-gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.age-card {
  /* tarjeta clara fija: texto oscuro legible en cualquier tema */
  --ink:#12291d;--ink-2:#33503f;--muted:#5f7a6a;--accent:#1f5c37;--line:rgba(18,41,29,.16);--hover:rgba(18,41,29,.06);color:var(--ink);
  max-width: 460px; text-align: center;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 2.8rem);
  box-shadow: var(--shadow-lg);
  animation: gateIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.age-logo { width: 66px; margin: 0 auto 0.6rem; }
.age-brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.age-brand em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.age-card h2 { font-size: 1.7rem; margin: 0.7rem 0 0.6rem; }
.age-text { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 1.4rem; }
.age-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.age-note { display: block; margin-top: 1.1rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; height: 100%;
  padding-inline: clamp(1.2rem, 4vw, 2.4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: #fff; transition: color 0.3s; }
.brand-text em { font-family: var(--serif); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links > a {
  font-family: var(--display); font-weight: 500; font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.62rem; border-radius: 999px;
  white-space: nowrap;                 /* nunca partir "El club", "Cómo llegar"… */
  transition: color 0.2s, background 0.2s;
}
.nav-links > a:hover { background: rgba(255, 255, 255, 0.14); }
.nav-cta { color: #fff !important; }

/* Nav en estado "scrolled": fondo crema, tinta oscura */
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.nav.scrolled .brand-text { color: var(--ink); }
.nav.scrolled .nav-links > a { color: var(--ink-2); }
.nav.scrolled .nav-links > a:hover { background: var(--hover); color: var(--ink); }
.nav.scrolled .gl-toggle,
.nav.scrolled .lang-btn { color: var(--ink-2); border-color: var(--line); }
.nav.scrolled .nav-toggle span { background: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 0.55rem; }
.gl-toggle {
  font-family: var(--display); font-weight: 600; font-size: 0.78rem;
  color: #fff; border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 999px; padding: 0.32rem 0.62rem; letter-spacing: 0.04em;
  transition: opacity 0.2s, border-color 0.2s;
}
.gl-toggle[aria-pressed="false"] { opacity: 0.5; }
html.no3d .gl-toggle { opacity: 0.5; }

/* Selector de idioma */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.35rem;
  color: #fff; border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 999px; padding: 0.32rem 0.6rem;
  font-family: var(--display); font-weight: 600; font-size: 0.82rem;
  transition: border-color 0.2s;
}
.lang-caret { font-size: 0.7rem; opacity: 0.8; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.35rem; min-width: 150px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 0.5rem 0.7rem; border-radius: 9px; font-size: 0.9rem; color: var(--ink-2);
  transition: background 0.15s;
}
.lang-menu button:hover { background: var(--bg-tint); }
.lang-menu button[aria-selected="true"] { color: var(--accent); font-weight: 600; background: rgba(62,154,95,0.1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s, background 0.3s; }
.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; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
  overflow: hidden;
  background: #0a1f15;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
html.no3d .hero-canvas { display: none; }
.hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/img/hero-bg.webp") center/cover no-repeat;
}
/* Scrim para legibilidad del texto + fundido al crema inferior */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,31,21,0.36) 0%, rgba(10,31,21,0.05) 30%, rgba(10,31,21,0.12) 62%, rgba(10,31,21,0.55) 100%),
    linear-gradient(90deg, rgba(10,31,21,0.35) 0%, rgba(10,31,21,0) 55%);
}
.hero-scrim::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: var(--maxw); width: 100%; margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.4rem);
  color: #fff;
}
.hero-eyebrow {
  font-family: var(--display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-title { font-size: clamp(3.2rem, 11vw, 7rem); line-height: 0.92; letter-spacing: -0.02em; text-shadow: 0 6px 34px rgba(0,0,0,0.34); }
.hero-title .ht-line { display: block; color: #fff; }
.hero-title .ht-line em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--lime-soft); }
.hero-tagline {
  margin-top: 1.3rem; max-width: 34ch;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: rgba(255,255,255,0.94);
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.hero-tagline strong { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.chip {
  font-family: var(--display); font-weight: 500; font-size: 0.82rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; backdrop-filter: blur(4px);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--display); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
}
.hero-scroll svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll svg { animation: none; } }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stats { display: flex; gap: 2.4rem; margin-top: 2rem; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-weight: 800; font-size: 2.1rem; color: var(--accent); line-height: 1; }
.stats span { font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.about-media figcaption { margin-top: 0.8rem; text-align: center; color: var(--muted); font-size: 1.02rem; }

/* ---------- Historia ---------- */
.history { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quote {
  position: relative; padding: 2rem 0 2rem 2rem;
  border-left: 3px solid var(--coral);
}
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; color: var(--ink); }
.quote p em { color: var(--accent); }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Selección (tarjetas) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--tropic); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-idx { font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--lime); }
.card h3 { margin: 0.5rem 0 0.5rem; }
.card p { color: var(--ink-2); font-size: 0.96rem; }

/* ---------- El club (tags) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tags li {
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  padding: 0.6rem 1.05rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.tags li:hover { transform: translateY(-2px); border-color: var(--palm-soft); }

/* ---------- Cómo llegar ---------- */
.llegar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.info-list { margin: 1.6rem 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-ico { font-size: 1.3rem; line-height: 1.4; }
.info-list div { color: var(--ink-2); }
.info-list strong { color: var(--ink); font-family: var(--display); }
.info-list em { color: var(--muted); font-size: 0.9rem; }
.llegar-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.llegar-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.accordion { display: grid; gap: 0.7rem; }
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.acc-item.active { border-color: var(--palm-soft); box-shadow: var(--shadow-sm); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.acc-plus { font-size: 1.4rem; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.acc-item.active .acc-plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body p { padding: 0 1.25rem 1.15rem; color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Contacto + formulario ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-list { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.contact-list a { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 500; color: var(--ink); transition: color 0.2s; }
.contact-list a:hover { color: var(--accent); }
.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.4rem; }
.form-intro { color: var(--ink-2); font-size: 0.96rem; margin: 0.4rem 0 1.3rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.contact-form label { display: block; }
.contact-form label > span { display: block; font-family: var(--display); font-weight: 500; font-size: 0.82rem; color: var(--ink-2); margin-bottom: 0.35rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"] {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--input-bg); color: var(--ink); font-family: var(--body); font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus { outline: none; border-color: var(--palm); box-shadow: 0 0 0 3px rgba(62,154,95,0.15); }
.check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.4rem 0 1.2rem; }
.check input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.check span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 0.9rem; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent); font-weight: 600; }
.form-status.err { color: var(--coral-deep); font-weight: 600; }

/* ---------- Familia ---------- */
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.family-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; box-shadow: var(--shadow-sm); }
.family-card a { display: block; padding: 1.6rem 1.5rem; height: 100%; }
.family-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--palm-soft); }
.family-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.family-card p { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 1rem; }
.family-link { font-family: var(--display); font-weight: 600; font-size: 0.86rem; color: var(--accent); }
.family-rank, .family-here {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem;
  border-radius: 999px; margin-bottom: 0.8rem;
}
.family-rank { background: var(--amber); color: var(--ocean); }
.family-here { background: var(--tropic); color: #fff; }
.family-card.current { border-color: var(--palm); background: linear-gradient(180deg, rgba(62,154,95,0.07), var(--card)); }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.footer-logo { width: 54px; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-name em { font-family: var(--serif); font-weight: 400; color: var(--lime-soft); }
.footer-tag { color: var(--palm-soft); font-size: 0.96rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-links a { font-family: var(--display); font-weight: 500; font-size: 0.92rem; color: rgba(234,243,236,0.82); transition: color 0.2s; }
.footer-links a:hover { color: var(--lime-soft); }
.disclaimer { font-size: 0.82rem; color: rgba(234,243,236,0.6); max-width: 78ch; line-height: 1.6; }
.disclaimer strong { color: rgba(234,243,236,0.85); }
.copyright { font-size: 0.82rem; color: rgba(234,243,236,0.5); }

/* ---------- WhatsApp flotante (oculto hasta activar) ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: #25d366; box-shadow: var(--shadow-md);
}

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .history, .llegar-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .family-grid { grid-template-columns: repeat(2, 1fr); }
  .about-media { max-width: 440px; }
  .quote { padding-left: 1.4rem; }
}

/* Nav colapsada en menú desplegable por debajo de 1080px
   (por encima entra completa; por debajo se amontonaba). */
@media (max-width: 1080px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--nav-bg); backdrop-filter: blur(14px);
    padding: 1rem 1.2rem 1.4rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links > a { color: var(--ink-2); padding: 0.8rem 0.85rem; font-size: 0.98rem; }
  .nav-links > a:hover { background: var(--hover); }
  .nav-cta { color: #fff !important; text-align: center; margin-top: 0.4rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .cards, .family-grid { grid-template-columns: 1fr; }
  .stats { gap: 1.6rem; }
  .hero-actions .btn { flex: 1; }
}

@media (max-width: 400px) {
  .lang-btn span:not(#langCur):not(.lang-caret) { display: none; }
}

/* ---------- Blog ---------- */
body.blog { padding-top: var(--nav-h); background: var(--bg); }
body.blog .nav { background: var(--nav-bg); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
body.blog .nav .brand-text { color: var(--ink); }
body.blog .nav .nav-links > a { color: var(--ink-2); }
body.blog .nav .nav-links > a:hover { background: var(--hover); color: var(--ink); }
body.blog .nav .lang-btn { color: var(--ink-2); border-color: var(--line); }
body.blog .nav .nav-toggle span { background: var(--ink); }

.blog-main { max-width: 860px; margin-inline: auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 2.4rem) 4rem; }
.blog-hero { text-align: center; max-width: 700px; margin: 1rem auto 3rem; }
.blog-hero .eyebrow::before { display: none; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.4rem 0 1rem; }
.blog-hero h1 em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.blog-hero .section-sub { margin-inline: auto; }
.blog-notice { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-2); background: var(--bg-tint); border-radius: 14px; padding: 0.9rem 1.1rem; }
.blog-notice-footer { max-width: 700px; margin: 3rem auto 0; text-align: center; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3.5rem; }
.post-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--palm-soft); }
.post-card-art { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.post-card strong { font-family: var(--display); font-size: 1.1rem; display: block; margin-bottom: 0.3rem; color: var(--ink); }
.post-card p { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 0.6rem; }
.post-card-more { font-family: var(--display); font-weight: 600; font-size: 0.86rem; color: var(--accent); }

.post { margin: 0 0 3.5rem; scroll-margin-top: calc(var(--nav-h) + 12px); }
.post-figure { display: grid; place-items: center; font-size: 3rem; height: 160px; border-radius: var(--radius-lg); margin-bottom: 1.4rem; background: var(--tropic); }
.post-figure.art-2 { background: var(--sunset); }
.post-figure.art-3 { background: linear-gradient(120deg, #3ec9b0, #7fc98c); }
.post-figure.art-4 { background: linear-gradient(120deg, #ffca6e, #ff8e63); }
.post-figure.art-6 { background: linear-gradient(120deg, #b6cf7d, #3e9a5f); }
.post > header { margin-bottom: 1rem; }
.post h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0.3rem 0; }
.post h3 { margin: 1.6rem 0 0.6rem; color: var(--accent); }
.post-meta { font-family: var(--display); font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.post p { color: var(--ink-2); margin-bottom: 0.9rem; }
.post ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.post li { color: var(--ink-2); margin-bottom: 0.5rem; }
.post strong { color: var(--ink); }
.post-note { background: var(--bg-tint); border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: 0.94rem; color: var(--ink-2); }
.post-back { display: inline-block; margin-top: 0.6rem; font-family: var(--display); font-weight: 600; font-size: 0.88rem; color: var(--accent); }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Toggle de tema claro/oscuro ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.theme-toggle svg { width: 17px; height: 17px; }
.nav.scrolled .theme-toggle,
body.blog .nav .theme-toggle { color: var(--ink-2); border-color: var(--line); }
.nav.scrolled .theme-toggle:hover,
body.blog .nav .theme-toggle:hover { background: var(--hover); }
.theme-toggle .ic-moon { display: none; }
.theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* ---------- Blog como sección inline (index) ---------- */
.blog-list { display: grid; gap: 0.8rem; max-width: 840px; }
.post-acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.post-acc[open] { border-color: var(--palm-soft); box-shadow: var(--shadow-sm); }
.post-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; transition: background 0.2s; }
.post-acc > summary::-webkit-details-marker { display: none; }
.post-acc > summary:hover { background: var(--hover); }
.post-acc-ico { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.post-acc-tt { display: flex; flex-direction: column; gap: 0.12rem; flex: 1; }
.post-acc-tt strong { font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.post-acc-tt span { font-size: 0.9rem; color: var(--muted); }
.post-acc-plus { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; transition: transform 0.3s; }
.post-acc[open] .post-acc-plus { transform: rotate(45deg); }
.post-acc-body { padding: 0 1.3rem 1.4rem; }
.post-acc-body p { color: var(--ink-2); margin: 0.9rem 0; }
.post-acc-body h3 { color: var(--accent); margin: 1.3rem 0 0.5rem; font-size: 1.1rem; font-family: var(--display); }
.post-acc-body ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.post-acc-body li { color: var(--ink-2); margin-bottom: 0.5rem; }
.post-acc-body strong { color: var(--ink); }
.blog-notice-inline { max-width: 840px; margin-top: 1.4rem; font-size: 0.88rem; color: var(--muted); }


/* Fix responsive: conserva la proporción de las imágenes con atributos width/height */
img { height: auto; }
