/* =============================================================================
   DATAFY360 — Consultoría gastronómica
   Archetype: Editorial Dark Warm (02), adaptado — autoridad analítica +
   calidez gastronómica. Paleta teal/azul tomada del logo real (fondo
   oscuro editorial premium, no mint plano tipo SaaS genérico).
   ============================================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0A1618;   /* near-black, deep petrol tint — never pure #000 */
  --bg-2:      #0E1F22;
  --bg-3:      #152C31;   /* card surface */
  --bg-4:      #1C3A40;   /* card hover / elevated */
  --cream:     #EAF4F3;   /* text on dark — cool near-white, echoes logo's mint */
  --cream-2:   #C7DDDB;
  --cream-3:   #7CA19E;   /* metadata / muted */
  --accent:    #2F98A0;   /* teal — primary, sampled from the logo */
  --accent-2:  #1E6E75;   /* darker teal — hover/pressed */
  --accent-soft: rgba(47,152,160,.16);
  --gold:      #4E8FC4;   /* logo's blue bar — secondary, data highlights */
  --good:      #6FC2A0;   /* mint-green, used sparingly for "positive" deltas only */
  --line:      rgba(234,244,243,.12);
  --line-2:    rgba(234,244,243,.06);
  --shadow:    0 30px 60px -20px rgba(0,0,0,.55);

  --serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, 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);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;
}

[data-theme="light"] {
  /* Reserved: this brand ships dark-only by design (see 15-selling-the-web / archetype 02).
     Kept as a hook in case a light print/PDF variant is ever needed. */
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -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.05; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section-halo { position: absolute; inset: -60% -10% -40% -10%; pointer-events: none; z-index: 0;
  background: radial-gradient(45% 35% at 50% 40%, rgba(47,152,160,.14), transparent 72%);
  filter: blur(90px); }
.section > .container { position: relative; z-index: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow-line { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.eyebrow-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { color: var(--cream-2); font-size: 1.08rem; margin-top: 1rem; max-width: 40rem; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06191B;
  box-shadow: 0 14px 30px -10px rgba(47,152,160,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(47,152,160,.7); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--cream);
  background: rgba(234,244,243,.03);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* WhatsApp icon color kept brand-neutral (line icon, not the green logo) to respect the palette rule */

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 1.1rem;
  background: transparent;
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,22,24,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.brand .brand-mark {
  height: 40px; width: 40px; flex-shrink: 0;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  transition: border-color .3s var(--ease-out);
}
.brand:hover .brand-mark { border-color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: .92rem; color: var(--cream-2); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-burger { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--cream); position: relative;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 1.9rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 2rem; }
@media (min-width: 960px) { .mobile-menu { display: none; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,22,24,.95) 0%, rgba(10,22,24,.82) 34%, rgba(10,22,24,.42) 66%, rgba(10,22,24,.6) 100%),
    linear-gradient(180deg, rgba(10,22,24,.55) 0%, transparent 28%, transparent 62%, rgba(10,22,24,.8) 100%);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; opacity: .55;
  background:
    radial-gradient(52% 42% at 78% 18%, rgba(47,152,160,.30), transparent 60%),
    radial-gradient(44% 38% at 12% 82%, rgba(78,143,196,.16), transparent 65%),
    radial-gradient(70% 60% at 50% 100%, rgba(47,152,160,.10), transparent 70%);
  animation: meshBreathe 22s ease-in-out infinite;
}
@keyframes meshBreathe {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(-6deg) brightness(1.06); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-lines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 70% 30%, black, transparent 75%);
}
.hero-inner { position: relative; z-index: 3; max-width: 46rem; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: .98;
  max-width: 17ch;
  margin-block: 1.1rem 1.3rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--cream-2); max-width: 38rem; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.6rem; max-width: 40rem; }
.hero-stat { border-left: 1px solid var(--line); padding-left: 1rem; }
.hero-stat-num { font-family: var(--mono); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold); font-weight: 600; letter-spacing: -.02em; }
.hero-stat-label { font-size: .82rem; color: var(--cream-3); margin-top: .2rem; line-height: 1.35; }

.hero-badge {
  position: absolute; right: var(--gutter); bottom: 2.4rem; z-index: 3;
  display: none;
  flex-direction: column; align-items: flex-end; gap: .4rem;
  font-family: var(--mono); font-size: .72rem; color: var(--cream-3); text-align: right;
}
@media (min-width: 1180px) { .hero-badge { display: flex; } }

/* =============================================================
   7. Photo slots — placeholder imagery system
   (Reemplazar por foto real o generación IA — ver comentarios en index.html)
   ============================================================= */
.photo-slot {
  position: relative; overflow: hidden; border-radius: 18px;
  background:
    linear-gradient(155deg, var(--bg-4) 0%, var(--bg-3) 45%, #1a130c 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.photo-slot::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(47,152,160,.20), transparent 60%),
    radial-gradient(50% 45% at 85% 90%, rgba(78,143,196,.14), transparent 65%);
}
.photo-slot::after {
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.photo-slot.ratio-16-9 { aspect-ratio: 16/9; }
.photo-slot.ratio-4-5 { aspect-ratio: 4/5; }
.photo-slot.ratio-1-1 { aspect-ratio: 1/1; }
.photo-slot.ratio-4-3 { aspect-ratio: 4/3; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

/* =============================================================
   8. Problema — symptom cards
   ============================================================= */
.symptom-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
@media (min-width: 720px) { .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .symptom-grid { grid-template-columns: repeat(3, 1fr); } }
.symptom-card {
  background: var(--bg-3); padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: background .35s var(--ease-out);
}
.symptom-card:hover { background: var(--bg-4); }
.symptom-mark { font-family: var(--mono); color: var(--accent); font-size: .82rem; }
.symptom-card h3 { font-size: 1.18rem; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.symptom-card p { color: var(--cream-3); font-size: .93rem; line-height: 1.55; }

/* =============================================================
   9. Método — pinned horizontal showcase
   ============================================================= */
.method-pin-wrap { position: relative; }
.method-track {
  display: flex; gap: 1.4rem; will-change: transform;
  padding-block: .5rem;
}
/* Mobile / no-ScrollTrigger fallback: native horizontal scroll-snap instead of pin */
@media (max-width: 959px) {
  .method-track {
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.2rem;
  }
  .method-card { scroll-snap-align: start; }
}
.method-card {
  flex: 0 0 clamp(280px, 34vw, 400px);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px;
  padding: 2.1rem 1.9rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
}
.method-card::before {
  content: attr(data-n);
  position: absolute; top: -.5rem; right: .5rem;
  font-family: var(--mono); font-size: 5.5rem; font-weight: 700;
  color: var(--line); z-index: 0; line-height: 1;
}
.method-card > * { position: relative; z-index: 1; }
.method-card h3 { font-size: 1.3rem; }
.method-card p { color: var(--cream-3); font-size: .93rem; line-height: 1.6; }
.method-tagline { font-family: var(--mono); font-size: .72rem; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }

.method-scroll-hint {
  display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem;
  font-family: var(--mono); font-size: .74rem; color: var(--cream-3);
}
.method-scroll-hint .bar { width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.method-scroll-hint .bar > span { display: block; height: 100%; width: 14%; background: var(--accent); transition: width .1s linear; }

.method-data-note {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; gap: 2rem;
}
@media (min-width: 860px) { .method-data-note { grid-template-columns: 1.1fr 1.4fr; align-items: center; } }
.method-data-note h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.method-data-note h3 em { font-style: italic; color: var(--accent); }
.method-data-note p { color: var(--cream-2); line-height: 1.65; }
.method-data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.method-data-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem;
  font-size: .86rem; color: var(--cream-2); display: flex; gap: .7rem; align-items: flex-start;
}
.method-data-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--gold); margin-top: .1rem; }

/* =============================================================
   10. Servicios — pricing cards
   ============================================================= */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-3);
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .5s var(--ease-out), border-color .4s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d; will-change: transform;
}
.price-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.price-card.is-featured { background: linear-gradient(165deg, var(--bg-4), var(--bg-3)); border-color: var(--accent); position: relative; }
.price-card.is-featured::after {
  content: "Más contratado"; position: absolute; top: -12px; right: 1.6rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: #06191B; padding: .3rem .7rem; border-radius: 999px; font-weight: 700;
}
.price-card h3 { font-size: 1.24rem; }
.price-value { display: flex; align-items: baseline; gap: .4rem; }
.price-value .amount { font-family: var(--mono); font-size: 2rem; color: var(--gold); font-weight: 600; }
.price-value .period { color: var(--cream-3); font-size: .88rem; }
.price-card .min-term { font-size: .8rem; color: var(--cream-3); font-family: var(--mono); }
.price-card p.desc { color: var(--cream-2); font-size: .92rem; line-height: 1.55; flex: 1; }
.price-card .btn { margin-top: .3rem; }

/* =============================================================
   11. Casos — case studies
   ============================================================= */
.confidentiality-note {
  display: flex; gap: .7rem; align-items: flex-start;
  border: 1px dashed var(--line); border-radius: 14px; padding: 1rem 1.2rem;
  font-size: .85rem; color: var(--cream-3); margin-bottom: 2.6rem; max-width: 44rem;
}
.confidentiality-note svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--gold); margin-top: .15rem; }

.case-list { display: flex; flex-direction: column; gap: 1.4rem; }
.case-card {
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg-3);
  overflow: hidden; display: grid; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .case-card { grid-template-columns: .85fr 1.15fr; } }
.case-card .photo-slot { border-radius: 0; border: 0; height: 100%; min-height: 220px; }
.case-body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1.1rem; }
.case-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); }
.case-body h3 { font-size: 1.4rem; }
.case-body p.status { font-size: .82rem; color: var(--accent); font-family: var(--mono); }
.case-metrics { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; margin-block: .3rem; }
.case-metric { display: flex; flex-direction: column; }
.case-metric .num { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); font-weight: 700; letter-spacing: -.01em; }
.case-metric .lbl { font-size: .76rem; color: var(--cream-3); max-width: 12ch; line-height: 1.3; }
.case-body ul.achievements { display: flex; flex-direction: column; gap: .5rem; }
.case-body ul.achievements li { font-size: .93rem; color: var(--cream-2); padding-left: 1.3rem; position: relative; line-height: 1.5; }
.case-body ul.achievements li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* =============================================================
   12. Entrega remota — timeline
   ============================================================= */
.remote-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.4rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .remote-grid { grid-template-columns: .95fr 1.15fr; } }
.remote-steps { display: flex; flex-direction: column; }
.remote-step { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.1rem; padding-block: 1.3rem; position: relative; }
.remote-step:not(:last-child)::after {
  content: ""; position: absolute; left: 1.15rem; top: 2.7rem; bottom: -.3rem; width: 1px; background: var(--line);
}
.remote-step-num {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--accent);
  display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; color: var(--accent);
  background: var(--bg); position: relative; z-index: 1; flex-shrink: 0;
}
.remote-step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.remote-step p { color: var(--cream-3); font-size: .9rem; line-height: 1.55; }
.remote-objection {
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg-3);
  padding: 1.6rem 1.7rem; margin-top: 2rem;
}
.remote-objection .q { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--accent); margin-bottom: .6rem; }
.remote-objection p { color: var(--cream-2); font-size: .93rem; line-height: 1.6; }

/* =============================================================
   13. Sobre mí
   ============================================================= */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.4rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .9fr 1.1fr; } }
.about-timeline { display: flex; flex-direction: column; gap: 0; margin-top: 1.6rem; }
.about-tl-item { display: flex; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line-2); }
.about-tl-item .yr { font-family: var(--mono); color: var(--gold); font-size: .82rem; flex: 0 0 4.4rem; }
.about-tl-item p { font-size: .92rem; color: var(--cream-2); }

/* =============================================================
   14. Calculadora IA
   ============================================================= */
.calc-panel {
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.calc-panel::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 60%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(47,152,160,.18), transparent 70%);
  pointer-events: none;
}
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; position: relative; z-index: 1; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .82rem; color: var(--cream-3); font-family: var(--mono); }
.field input, .field select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .8rem 1rem; color: var(--cream); font-size: .96rem; font-family: var(--sans);
  transition: border-color .3s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.calc-result { display: flex; flex-direction: column; gap: 1.3rem; justify-content: center; }
.calc-result-empty { color: var(--cream-3); font-size: .95rem; line-height: 1.6; border: 1px dashed var(--line); border-radius: 16px; padding: 2rem; text-align: center; }
.calc-result-card { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); padding: 1.6rem 1.7rem; display: none; flex-direction: column; gap: 1.1rem; }
.calc-result-card.is-visible { display: flex; }
.calc-metric-row { display: flex; justify-content: space-between; align-items: baseline; padding-block: .5rem; border-bottom: 1px solid var(--line-2); }
.calc-metric-row:last-of-type { border-bottom: 0; }
.calc-metric-row .lbl { font-size: .88rem; color: var(--cream-3); }
.calc-metric-row .val { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.calc-metric-row .val.warn { color: var(--accent); }
.calc-narrative { font-size: .9rem; color: var(--cream-2); line-height: 1.65; border-top: 1px solid var(--line); padding-top: 1rem; }
.calc-narrative .loading-dots::after { content: "…"; animation: dotPulse 1.4s steps(4) infinite; }
@keyframes dotPulse { 0%,100%{opacity:.3} 50%{opacity:1} }
.calc-disclaimer { font-size: .74rem; color: var(--cream-3); font-style: italic; }

.calc-gate { display: flex; flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem 0; }
.calc-gate p { color: var(--cream-2); font-size: .92rem; }
.calc-gate form { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.calc-gate input[type="email"] { flex: 1; min-width: 220px; }
.calc-privacy { font-size: .76rem; color: var(--cream-3); max-width: 34rem; margin-inline: auto; }
.calc-privacy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pay-methods { font-size: .74rem; color: var(--cream-3); text-align: center; margin-top: .6rem; }

.calc-submit-state { display: none; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .85rem; color: var(--good); }
.calc-submit-state.is-visible { display: flex; }
.calc-submit-state svg { width: 18px; height: 18px; }
.calc-submit-state svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .5s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* =============================================================
   15. FAQ
   ============================================================= */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 50rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.4rem; text-align: left; font-size: 1.05rem; font-family: var(--serif); font-weight: 500;
}
.faq-q .plus { font-family: var(--mono); color: var(--accent); font-size: 1.3rem; transition: transform .35s var(--ease-out); flex-shrink: 0; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a p { padding-bottom: 1.4rem; color: var(--cream-2); font-size: .94rem; line-height: 1.65; max-width: 44rem; }

/* =============================================================
   16. Contacto / CTA final
   ============================================================= */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; margin-inline: auto; }
.cta-final h2 em { font-style: italic; color: var(--accent); }
.cta-final p { color: var(--cream-2); max-width: 34rem; margin: 1.2rem auto 2.2rem; }
.cta-final .hero-actions { justify-content: center; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 3.5rem; max-width: 40rem; margin-inline: auto; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem; text-align: left;
  transition: border-color .3s, background .3s;
}
.contact-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.contact-card svg { width: 22px; height: 22px; stroke: var(--accent); }
.contact-card .lbl { font-family: var(--mono); font-size: .72rem; color: var(--cream-3); text-transform: uppercase; letter-spacing: .06em; }
.contact-card .val { font-size: 1.02rem; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { max-width: 22rem; }
.footer-brand p { color: var(--cream-3); font-size: .88rem; margin-top: .8rem; line-height: 1.6; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); margin-bottom: .9rem; }
.footer-col a, .footer-col span { display: block; font-size: .9rem; color: var(--cream-2); padding-block: .35rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2); font-size: .8rem; color: var(--cream-3); }
.footer-bottom a { color: var(--cream-3); }
.footer-bottom a:hover { color: var(--accent); }

/* =============================================================
   18. WhatsApp floating CTA + AI chat widget
   ============================================================= */
.float-stack { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: flex; flex-direction: column; gap: .8rem; align-items: flex-end; }
.float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px -8px rgba(47,152,160,.6);
  transition: transform .4s var(--ease-out);
}
.float-btn:hover { transform: scale(1.07); }
.float-btn svg { width: 26px; height: 26px; stroke: #06191B; }
.float-btn.is-chat { background: var(--bg-3); border: 1px solid var(--accent); box-shadow: var(--shadow); }
.float-btn.is-chat svg { stroke: var(--accent); }

.chat-panel {
  position: fixed; right: 1.2rem; bottom: 6.4rem; z-index: 91;
  width: min(380px, calc(100vw - 2.4rem)); height: min(560px, calc(100vh - 8rem));
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
  transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .3s var(--ease-out);
}
.chat-panel.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .7rem; }
.chat-head .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: #06191B; font-size: .85rem; }
.chat-head strong { font-size: .95rem; display: block; }
.chat-head span { font-size: .76rem; color: var(--cream-3); }
.chat-close { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.chat-close:hover { background: var(--bg-4); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.chat-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.chat-msg.from-bot { background: var(--bg-4); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.from-user { background: var(--accent-soft); border: 1px solid var(--line); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem 1rem; }
.chat-chip { font-size: .78rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--cream-2); transition: border-color .3s, color .3s; }
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-typing { display: flex; gap: 4px; padding: .5rem .3rem; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--cream-3); animation: typingBounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-5px);opacity:1} }
.chat-foot { padding: .8rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; }
.chat-foot input { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; color: var(--cream); font-size: .88rem; }
.chat-foot input:focus { border-color: var(--accent); }
.chat-foot button { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.chat-foot button svg { width: 16px; height: 16px; stroke: #06191B; }

/* =============================================================
   19. Reveal / scroll animations
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive — see gotcha A.4.5 */
.tilt-card { transition: transform .5s var(--ease-out); }

/* =============================================================
   20. Breakpoints reference (mobile-first, applied inline above)
   540 / 720 / 960 / 1280 / 1600
   ============================================================= */
@media (min-width: 1280px) {
  .hero-title { max-width: 20ch; }
}

/* =============================================================
   21. Reduced motion — only intrusive effects gated (gotcha A.2)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .method-track { transition: none !important; }
}
