/* =========================================================
   GRÁFICA 960 — Sistema de diseño
   Paleta: negro / gris terracota / rojo / naranja (Claude)
   ========================================================= */

:root {
  /* Fondos */
  --black: #0c0b0d;
  --bg-1: #121013;
  --bg-2: #1a171a;
  --surface: #201c1f;
  --surface-2: #29232663;
  --surface-solid: #262023;

  /* Marca */
  --red: #ea1d24;          /* rojo del logo */
  --red-bright: #ff3b41;
  --clay: #d97757;         /* naranja "color Claude" (coral/arcilla) */
  --clay-soft: #e79170;
  --terra: #b5654d;        /* terracota */
  --terra-gray: #927065;   /* gris terracota */
  --orange: #ec8a3c;

  /* Texto */
  --text: #f6f1ee;
  --muted: #b7a9a2;
  --muted-2: #8a7c76;

  /* Líneas y sombras */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 8px 24px -10px rgba(0, 0, 0, 0.6);

  /* Gradientes de marca */
  --grad-warm: linear-gradient(135deg, var(--red) 0%, var(--clay) 55%, var(--orange) 100%);
  --grad-warm-soft: linear-gradient(135deg, rgba(234,29,36,0.9), rgba(217,119,87,0.9));

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Fondo 3D fijo */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* Fallback / capa de tono sobre el canvas */
#bg-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(234,29,36,0.14), transparent 60%),
    radial-gradient(1000px 700px at 5% 20%, rgba(217,119,87,0.12), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(236,138,60,0.10), transparent 60%),
    linear-gradient(180deg, rgba(12,11,13,0.55), rgba(12,11,13,0.82));
}

/* Fondo animado de respaldo si no hay WebGL */
.no-webgl #bg-canvas {
  background:
    radial-gradient(1200px 800px at 75% 10%, rgba(234,29,36,0.22), transparent 55%),
    radial-gradient(1000px 700px at 10% 30%, rgba(217,119,87,0.20), transparent 55%),
    linear-gradient(180deg, #14100f, #0c0b0d);
  background-size: 200% 200%;
  animation: driftBg 26s ease-in-out infinite alternate;
}
@keyframes driftBg {
  0% { background-position: 0% 0%, 100% 0%, 0 0; }
  100% { background-position: 30% 20%, 60% 40%, 0 0; }
}

/* ================= Tipografía ================= */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay-soft);
  padding: 6px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: rgba(217,119,87,0.08);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }

.text-grad {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ================= Botones ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 12px 30px -10px rgba(234,29,36,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(234,29,36,0.7); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--clay); }
.btn-wa { background: #25d366; color: #06371c; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(37,211,102,0.5); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ================= Navbar ================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(12,11,13,0.85), rgba(12,11,13,0.55));
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; }
.brand img, .brand svg { height: 42px; width: auto; display: block; }
.brand-txt { font-size: 1.05rem; }
.brand-txt b { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 42px; cursor: pointer; color: var(--text); font-size: 1.2rem; }

.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); font-size: 0.85rem; font-weight: 600; }
.user-chip .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-warm); display: grid; place-items: center; font-size: 0.75rem; color: #fff; font-family: var(--font-head); }

/* ================= Secciones ================= */
section { position: relative; padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 16px 0 12px; }
.section-head p { font-size: 1.08rem; }

/* ================= Hero ================= */
.hero { padding: 70px 0 80px; min-height: 88vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; width: 100%; }
.hero h1 { margin: 18px 0 20px; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.7rem; display: block; color: var(--text); }
.hero-stats .stat span { font-size: 0.82rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-card {
  background: var(--surface-2); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .mini { font-size: 0.85rem; color: var(--muted-2); margin-bottom: 18px; }
.flow-mini { display: grid; gap: 12px; }
.flow-mini .fstep { display: flex; gap: 13px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.flow-mini .fnum { flex: 0 0 30px; height: 30px; border-radius: 9px; background: var(--grad-warm); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.flow-mini .fstep b { font-size: 0.92rem; }
.flow-mini .fstep small { color: var(--muted-2); display: block; font-size: 0.8rem; }

/* ================= Cards genéricas ================= */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface-2); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--clay); box-shadow: var(--shadow-sm); }
.card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; background: rgba(217,119,87,0.14); border: 1px solid rgba(217,119,87,0.3); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }

/* Pasos "cómo pedir" */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 20px; backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--clay); }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad-warm);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 20px -8px rgba(234,29,36,0.6);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; }
.step .arrow { position: absolute; top: 44px; right: -13px; color: var(--terra-gray); font-size: 1.3rem; z-index: 2; }
.step:last-child .arrow { display: none; }

/* ================= Conversor teaser ================= */
.conv-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tool-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.88rem; }
.tool-pill .dot { width: 9px; height: 9px; border-radius: 3px; }

/* ================= Reseñas ================= */
.reviews-rating { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.reviews-rating .big { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; }
.stars { color: #ffb547; letter-spacing: 2px; font-size: 1.15rem; }
.reviews-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(8px);
}
.review .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review .ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; }
.review .name { font-weight: 600; font-family: var(--font-head); font-size: 0.95rem; }
.review .when { font-size: 0.78rem; color: var(--muted-2); }
.review .txt { font-size: 0.92rem; color: var(--muted); }
.review .g { margin-top: 12px; font-size: 0.75rem; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }

/* ================= Contacto ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.info-block { display: grid; gap: 18px; }
.info-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.info-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted-2); flex: 0 0 128px; }
.info-row .v { color: var(--text); font-weight: 500; }
.wa-buttons { display: grid; gap: 12px; }
.wa-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.3); }
.wa-card .who b { font-family: var(--font-head); }
.wa-card .who small { display: block; color: var(--muted-2); font-size: 0.78rem; }

.maps { display: grid; gap: 14px; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-card iframe { width: 100%; height: 360px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }
.map-card .cap { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.map-card .cap b { font-family: var(--font-head); font-size: 0.95rem; }
.map-card .cap small { color: var(--muted-2); font-size: 0.8rem; }

/* ================= Formularios ================= */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); font-family: var(--font-head); }
.field .hint { font-size: 0.78rem; color: var(--muted-2); font-weight: 400; }
.input, .select, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem; transition: border-color .2s, background .2s;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--clay); background: rgba(255,255,255,0.07); }
.input::placeholder { color: var(--muted-2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.field-label-sm { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); font-family: var(--font-head); }
.price-summary { background: rgba(217,119,87,0.07); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 22px; }
.price-summary .total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--line); }
.price-summary .total-row .lbl { font-weight: 700; font-family: var(--font-head); }
.price-summary .total-row .amt { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--clay-soft); }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03); cursor: pointer; font-size: 0.88rem; font-weight: 500;
  transition: all .18s; user-select: none;
}
.chip:hover { border-color: var(--clay); }
.chip.active { background: var(--grad-warm); border-color: transparent; color: #fff; }

/* ================= Modal auth ================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(6,5,7,0.72); backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 420px; background: var(--surface-solid);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal p.sub { font-size: 0.9rem; margin-bottom: 20px; }
.modal .close { float: right; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 0.78rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gsi-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 600; font-family: var(--font-head); border: none; cursor: pointer; }

/* ================= Gate (login requerido) ================= */
.gate {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 44px; text-align: center; background: var(--surface-2); backdrop-filter: blur(8px);
}
.gate .lock { font-size: 2.4rem; margin-bottom: 12px; }
.gate h3 { margin-bottom: 8px; }

/* ================= Conversor (página) ================= */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; cursor: pointer; text-align: left; transition: transform .2s, border-color .2s;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--clay); }
.tool-card .badge { display: inline-block; font-size: 0.68rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; margin-top: 12px; }
.badge-ok { background: rgba(37,211,102,0.15); color: #4ade80; border: 1px solid rgba(37,211,102,0.3); }
.badge-soon { background: rgba(236,138,60,0.15); color: var(--orange); border: 1px solid rgba(236,138,60,0.35); }
.tool-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: #fff; margin-bottom: 16px; }

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 48px 26px; text-align: center; background: rgba(255,255,255,0.02);
  transition: border-color .2s, background .2s; cursor: pointer;
}
.dropzone.drag { border-color: var(--clay); background: rgba(217,119,87,0.08); }
.dropzone .dz-ic { font-size: 2.6rem; margin-bottom: 10px; }
.file-list { display: grid; gap: 10px; margin-top: 18px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-size: 0.9rem; }
.file-item .fmeta { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.file-item .fmeta .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .rm { background: none; border: none; color: var(--muted-2); cursor: pointer; font-size: 1.1rem; }
.status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 0.9rem; display: none; }
.status.show { display: block; }
.status.info { background: rgba(217,119,87,0.1); border: 1px solid rgba(217,119,87,0.3); color: var(--clay-soft); }
.status.ok { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.3); color: #6ee7a0; }
.status.err { background: rgba(234,29,36,0.1); border: 1px solid rgba(234,29,36,0.35); color: #ff6b70; }

.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= Tienda ================= */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product .ph { height: 170px; background: var(--grad-warm-soft); display: grid; place-items: center; font-size: 2.4rem; opacity: 0.9; }
.product .body { padding: 20px; }
.product .price { font-family: var(--font-head); font-weight: 700; color: var(--clay-soft); margin-top: 8px; }
.soon-tag { display: inline-block; font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; background: rgba(236,138,60,0.15); color: var(--orange); border: 1px solid rgba(236,138,60,0.35); font-weight: 700; }

/* ================= Footer ================= */
footer { border-top: 1px solid var(--line); padding: 54px 0 30px; background: rgba(12,11,13,0.6); backdrop-filter: blur(8px); position: relative; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); font-size: 0.9rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--clay-soft); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.wa-float a { width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(37,211,102,0.6); transition: transform .2s; position: relative; }
.wa-float a:hover { transform: scale(1.08); }
.wa-float a svg { width: 30px; height: 30px; }
.wa-float a .tip { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); background: var(--surface-solid); border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 10px; font-size: 0.8rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; font-weight: 600; }
.wa-float a:hover .tip { opacity: 1; }

/* ================= Abanico de hojas (decoración lateral fija) ================= */
.paper-fan {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 170px;
  z-index: 60;
  pointer-events: none;
}
.paper-fan .pf-sheet {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 74px;
  height: 96px;
  padding: 11px 10px;
  box-sizing: border-box;
  border-radius: 2px;
  background: linear-gradient(160deg, #fdfdfc 0%, #efece7 100%);
  box-shadow: 0 12px 22px -8px rgba(0,0,0,0.55), 0 2px 5px rgba(0,0,0,0.18);
  transform-origin: 50% 100%;
  animation: pf-unfold 0.9s cubic-bezier(.22,1.5,.4,1) both, pf-sway 5.5s ease-in-out infinite;
}
.paper-fan .pf-sheet::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 13px 13px 0;
  border-color: transparent #d9d4cb transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(0,0,0,0.2));
}
.paper-fan .pf-line { display: block; height: 3px; border-radius: 2px; background: rgba(30,24,20,0.14); margin-bottom: 9px; }
.paper-fan .pf-line.short { width: 55%; }
.paper-fan .pf-line.accent { background: var(--red); opacity: 0.65; width: 42%; }

.paper-fan .pf-sheet-1 { z-index: 1; --rest: -34deg; animation-delay: .30s, 1.20s; }
.paper-fan .pf-sheet-2 { z-index: 2; --rest: -18deg; animation-delay: .38s, 1.40s; }
.paper-fan .pf-sheet-3 { z-index: 3; --rest: -2deg;  animation-delay: .46s, 1.60s; }
.paper-fan .pf-sheet-4 { z-index: 4; --rest: 14deg;  animation-delay: .54s, 1.80s; }
.paper-fan .pf-sheet-5 { z-index: 5; --rest: 28deg;  animation-delay: .62s, 2.00s; }

.paper-fan .pf-folder {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 118px;
  height: 58px;
  z-index: 10;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(160deg, var(--clay) 0%, var(--terra) 100%);
  box-shadow: 0 16px 28px -10px rgba(0,0,0,0.6);
}
.paper-fan .pf-folder::before {
  content: "";
  position: absolute;
  top: -12px; left: 10px;
  width: 46px; height: 16px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(160deg, var(--clay) 0%, var(--terra) 100%);
}

@keyframes pf-unfold {
  0%   { opacity: 0; transform: translateX(-50%) rotate(0deg) translateY(16px) scale(0.8); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) rotate(var(--rest)) translateY(0) scale(1); }
}
@keyframes pf-sway {
  0%, 100% { transform: translateX(-50%) rotate(var(--rest)) translateY(0) scale(1); }
  50%      { transform: translateX(-50%) rotate(calc(var(--rest) + 2.5deg)) translateY(-4px) scale(1); }
}

@media (max-width: 1300px) { .paper-fan { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .paper-fan .pf-sheet { animation: none; opacity: 1; transform: translateX(-50%) rotate(var(--rest)) translateY(0) scale(1); }
}

/* Reveal animación */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-3, .grid-4, .tools-grid, .reviews-track, .shop-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step .arrow { display: none; }
  .conv-teaser, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface-solid); padding: 12px; border-bottom: 1px solid var(--line); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links a { padding: 12px 14px; }
  .grid-3, .grid-4, .tools-grid, .reviews-track, .shop-grid, .steps, .row-2, .row-3 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero-stats { gap: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { font-size: 0.92rem; }
  .map-card iframe { height: 220px; }
}
