/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #04110d;
  --bg-2:      #071a15;
  --ink:       #f4fbf8;
  --ink-soft:  #d6e8e0;
  --mute:      #93aca3;
  --glass:     rgba(255,255,255,0.055);
  --glass-brd: rgba(255,255,255,0.12);

  --accent:    #34d399;   /* emerald — sostenibilidad */
  --accent-2:  #22d3ee;   /* cyan — confianza/tech */
  --accent-3:  #818cf8;   /* indigo — otra dimensión */

  --grad-1: #34d399;
  --grad-2: #22d3ee;
  --grad-3: #818cf8;
  --grad-4: #f472b6;

  --line: rgba(255,255,255,0.10);

  --serif: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 20px;
  --gutter: 1.25rem;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #04110d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.kicker {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1.25rem; display: inline-block;
  border: 1px solid var(--glass-brd); padding: .4rem .9rem; border-radius: 999px; background: var(--glass);
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-title { font-size: clamp(1.9rem, 5vw, 3.1rem); margin-bottom: .9rem; }
.section-title em { font-style: normal; background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--mute); max-width: 56ch; margin-bottom: 3rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(115deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3));
  color: #04140f;
  box-shadow: 0 14px 34px -14px rgba(52,211,153,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(34,211,238,.55); }
.btn-ghost {
  border: 1px solid var(--glass-brd); background: var(--glass); color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.25rem; font-size: .9rem; }

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  padding: 1.9rem;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), background .5s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card { background: #0c2620; }
}
.glass-card:hover { transform: translateY(-6px); border-color: rgba(52,211,153,.4); background: rgba(255,255,255,.08); }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(4,17,13,.55); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), background .4s var(--ease-out);
}
.nav.is-scrolled { border-color: var(--glass-brd); background: rgba(4,17,13,.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; }
.nav-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.nav-brand em { font-style: normal; background: linear-gradient(100deg, var(--grad-1), var(--grad-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-logo { width: 30px; height: 30px; }
.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a { font-size: .93rem; color: var(--ink-soft); position: relative; padding-bottom: 2px; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(115deg, var(--grad-1), var(--grad-2));
  color: #04140f !important; padding: .55rem 1.15rem; border-radius: 999px; font-weight: 600;
}
.nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 28px; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   7. Sections
   ============================================================= */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.02) 20%, rgba(255,255,255,.02) 80%, transparent); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 6rem; overflow: hidden;
}
.hero-gradient {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(circle 620px at var(--mx, 30%) var(--my, 30%), rgba(52,211,153,.35) 0%, transparent 60%),
    radial-gradient(circle 720px at calc(var(--mx, 30%) + 25%) calc(var(--my, 30%) - 15%), rgba(34,211,238,.28) 0%, transparent 60%),
    radial-gradient(circle 900px at calc(100% - var(--mx, 30%)) calc(100% - var(--my, 30%)), rgba(129,140,248,.22) 0%, transparent 62%),
    var(--bg);
  filter: blur(60px) saturate(150%);
  transition: background .4s ease;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black, transparent);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(2.4rem, 7vw, 5rem); max-width: 18ch; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 45%, var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--mute); font-size: clamp(1.02rem, 1.8vw, 1.3rem); max-width: 52ch; margin: 1.5rem 0 2.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; font-family: var(--mono); }
.stat-num { font-size: 2.1rem; font-weight: 700; background: linear-gradient(100deg, var(--grad-1), var(--grad-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .78rem; color: var(--mute); max-width: 12ch; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .74rem; color: var(--mute); letter-spacing: .08em;
}
.hero-scroll span { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* --- Cards grid (ventajas) --- */
.cards-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.cards-grid h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.cards-grid p { color: var(--mute); font-size: .95rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(52,211,153,.22), rgba(34,211,238,.18)); margin-bottom: 1.1rem;
  color: var(--accent);
}

/* --- Steps --- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.8rem 1.8rem 1.6rem; border-left: 2px solid var(--glass-brd); }
.step-n {
  font-family: var(--mono); font-size: 2.4rem; font-weight: 700; display: block; margin-bottom: .5rem;
  background: linear-gradient(100deg, var(--grad-1), var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--mute); }

/* --- Herramientas / tools --- */
.tools-shell { border: 1px solid var(--glass-brd); border-radius: 26px; background: var(--glass); backdrop-filter: blur(18px); overflow: hidden; }
.tools-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem; border-bottom: 1px solid var(--glass-brd); }
.tool-tab {
  padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--mute); border: 1px solid transparent; transition: all .3s var(--ease-out); white-space: nowrap;
}
.tool-tab:hover { color: var(--ink); }
.tool-tab.is-active { color: #04140f; background: linear-gradient(115deg, var(--grad-1), var(--grad-2)); }
.tool-panel { padding: 1.8rem; display: none; }
.tool-panel.is-active { display: block; }
.tool-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
.tool-desc { color: var(--mute); margin-bottom: 1.2rem; font-size: .95rem; }
.tool-form { display: flex; flex-direction: column; gap: .9rem; }
.tool-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--ink-soft); }
.tool-form input[type="text"], .tool-form input[type="number"], .tool-form input[type="email"],
.tool-form input[type="tel"], .tool-form select, .tool-form textarea {
  font: inherit; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--glass-brd);
  background: rgba(4,17,13,.5); color: var(--ink); resize: vertical;
}
.tool-form input[type="color"] { width: 60px; height: 40px; border-radius: 10px; border: 1px solid var(--glass-brd); background: transparent; }
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.tool-note { font-size: .78rem; color: var(--mute); margin-top: .9rem; }
.tool-result {
  border: 1px dashed var(--glass-brd); border-radius: 16px; padding: 1.4rem; min-height: 160px;
  background: rgba(0,0,0,.15); display: flex; flex-direction: column; justify-content: center; gap: .6rem;
}
.tool-placeholder { color: var(--mute); text-align: center; margin: auto; font-size: .92rem; }
.tool-result-code pre { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: .82rem; color: var(--accent-2); margin-bottom: 1rem; }
.tool-result-logo { align-items: center; }
.logo-preview { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.result-title { font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.result-swatches { display: flex; gap: .5rem; margin: .5rem 0; }
.swatch { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--glass-brd); }

/* --- Aprende y gana --- */
.learn-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.learn-badge {
  display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: rgba(52,211,153,.16); color: var(--accent); margin-bottom: .9rem;
}
.learn-card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.learn-card p { color: var(--mute); margin-bottom: 1rem; }
.learn-steps, .learn-list { margin-bottom: 1.3rem; }
.learn-steps li, .learn-list li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; color: var(--ink-soft); font-size: .92rem; }
.learn-steps { counter-reset: ls; }
.learn-steps li::before { counter-increment: ls; content: counter(ls); position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--accent); font-size: .8rem; }
.learn-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }

/* --- Testimonios --- */
.testi-track { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.testi-card { padding: 1.9rem; }
.testi-card p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.testi-foot { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3)); color: #04140f; font-weight: 700; font-size: .85rem;
}
.testi-name { font-weight: 600; font-size: .92rem; }
.testi-role { font-size: .8rem; color: var(--mute); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1px solid var(--glass-brd); border-radius: 16px; background: var(--glass); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 1.15rem 1.4rem; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; gap: 1rem;
}
.faq-q .plus { font-family: var(--mono); font-size: 1.2rem; color: var(--accent); transition: transform .3s var(--ease-out); flex-shrink: 0; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a p { padding: 0 1.4rem 1.3rem; color: var(--mute); font-size: .95rem; }

/* --- Contacto --- */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--glass-brd);
  background: rgba(255,255,255,.04); color: var(--ink); resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.consent { flex-direction: row !important; align-items: center; gap: .6rem !important; font-size: .82rem; }
.consent input { width: 18px; height: 18px; }
.form-status { font-size: .88rem; min-height: 1.2em; color: var(--accent); }

/* --- Footer --- */
.footer { border-top: 1px solid var(--glass-brd); padding-block: 3rem 1.5rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.6rem; }
.footer-tag { color: var(--mute); font-size: .88rem; margin-top: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .88rem; color: var(--mute); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--glass-brd); font-size: .78rem; color: var(--mute); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-top: 1.4rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--glass-brd);
  font-size: .82rem;
}
.footer-legal a { color: var(--mute); }
.footer-legal a:hover { color: var(--ink); }
.footer-legal a:not(:last-child) {
  padding-right: 1rem;
  border-right: 1px solid var(--glass-brd);
}
@media (max-width: 480px) {
  .footer-legal { padding-top: 1rem; }
  .footer-legal a:not(:last-child) { border-right: none; padding-right: 0; }
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 250;
  max-width: 560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 260px; margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.cookie-banner p a { color: var(--accent-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 480px) {
  .cookie-banner {
    left: .6rem; right: .6rem; bottom: .6rem;
    flex-direction: column; align-items: stretch; text-align: left;
    padding: 1rem;
    gap: .9rem;
  }
  .cookie-banner p { flex: none; font-size: .85rem; }
  .cookie-actions { flex-direction: column; gap: .5rem; }
  .cookie-actions .btn { width: 100%; text-align: center; }
}

/* --- Chat widget --- */
.chat-widget { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 200; }
.chat-fab {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #04140f; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -12px rgba(34,211,238,.55);
  transition: transform .3s var(--ease-bounce);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-panel {
  position: absolute; right: 0; bottom: 74px; width: min(92vw, 360px); max-height: 72vh;
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--glass-brd); background: #061913; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--glass-brd); background: rgba(255,255,255,.03); }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head span { display: block; font-size: .74rem; color: var(--mute); margin-top: .2rem; max-width: 24ch; }
.chat-close { font-size: 1rem; color: var(--mute); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.chat-msg { padding: .7rem .9rem; border-radius: 14px; font-size: .88rem; max-width: 88%; line-height: 1.5; }
.chat-msg-bot { background: rgba(255,255,255,.06); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg-user { background: linear-gradient(115deg, var(--grad-1), var(--grad-2)); color: #04140f; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggestions { display: flex; flex-direction: column; gap: .5rem; }
.chat-suggestions button { text-align: left; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--glass-brd); font-size: .82rem; color: var(--accent-2); }
.chat-suggestions button:hover { background: rgba(255,255,255,.06); }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--glass-brd); }
.chat-form input { flex: 1; font: inherit; padding: .7rem .9rem; border-radius: 999px; border: 1px solid var(--glass-brd); background: rgba(255,255,255,.05); color: var(--ink); }
.chat-form button { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); color: #04140f; flex-shrink: 0; }
.chat-typing span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--mute); animation: typingDot 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* --- Video pages (hostinger.html / dropi.html) --- */
.video-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.video-card h3 { font-size: 1.1rem; margin: 1rem 0 .7rem; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-facade { position: relative; width: 100%; height: 100%; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #04140f;
}
.play-icon::before {
  content: ""; position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); z-index: -1;
}
.video-ia-text p { color: var(--mute); font-size: .9rem; margin-bottom: .7rem; }
.video-venta { color: var(--ink-soft) !important; }
.video-transcript { margin-top: .8rem; font-size: .82rem; }
.video-transcript summary { cursor: pointer; color: var(--accent-2); }
.video-transcript p { margin-top: .6rem; color: var(--mute) !important; max-height: 200px; overflow-y: auto; }
.admin-panel { border-top: 1px dashed var(--glass-brd); padding-top: 2rem; }

/* --- Bóveda privada (vault.php / solicitar-acceso.php) --- */
.vault-box { max-width: 420px; margin-inline: auto; }
.vault-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.vault-req { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; align-items: center; }
.vault-req img { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; }
.vault-verdict { font-family: var(--mono); font-size: .78rem; }
.vault-verdict.si { color: var(--accent); }
.vault-verdict.no { color: #f87171; }

@media (min-width: 720px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   7b. Reveal animation (JS adds .is-visible)
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.glass-card[data-anim], .step[data-anim], .faq-item[data-anim] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.glass-card.is-visible, .step.is-visible, .faq-item.is-visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 3rem; }
}

@media (min-width: 720px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-track { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .testi-track { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

@media (max-width: 959px) {
  .nav-links {
    display: flex;  
    position: fixed; inset: 4.2rem 1rem auto 1rem; z-index: 90;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: rgba(4,17,13,.97); border: 1px solid var(--glass-brd); border-radius: 18px;
    padding: .8rem; backdrop-filter: blur(20px);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease-out);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem .6rem; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255,255,255,.06); }
  .nav-cta { text-align: center; margin-top: .3rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
  .hero-gradient { transition: none; }
  [data-reveal], .glass-card[data-anim], .step[data-anim], .faq-item[data-anim] { opacity: 1; transform: none; transition: none; }
  .chat-typing span { animation: none; }
}

/* --- Páginas legales (aviso, privacidad, términos, cookies, envíos, afiliados) --- */
.legal-main { padding: 7.5rem 0 4rem; }
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.legal-doc h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 2.2rem 0 .8rem; }
.legal-doc p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }
.legal-doc p a { color: var(--accent-2); text-decoration: underline; }
.legal-updated { color: var(--mute); font-size: .85rem; margin-bottom: 2rem; }
.legal-note {
  margin-top: 2.5rem; padding: 1.1rem 1.3rem;
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  color: var(--mute); font-size: .85rem;
}
.legal-index {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  padding: 1rem 1.2rem; margin-bottom: 2.5rem;
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  font-size: .85rem;
}
.legal-index a { color: var(--mute); }
.legal-index a:hover { color: var(--ink); }
