/* ══════════════════════════════════════════════════════════════
   AT Electrofresh — Design System compartido (landings B2B)
   Sin Tailwind runtime · CSS puro · optimizado Core Web Vitals
   Marca: dark #02060D · accent ice #3B82F6 · gold #F59E0B
   Fuentes: Cormorant (display) · Montserrat (texto)
════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }

:root {
  --dark:    #02060D;
  --surface: #080F1E;
  --card:    #0C1729;
  --card-2:  #0E1B31;
  --blue:    #1E3A8A;
  --accent:  #3B82F6;
  --ice:     #38BDF8;
  --ice-l:   #BAE6FF;
  --gold:    #F59E0B;
  --gold-l:  #FCD34D;
  --text:    #ECF3FF;
  --muted:   #94A3B8;
  --muted-2: #64748B;
  --line:    rgba(59,130,246,0.16);
  --maxw:    1200px;
  --radius:  18px;
}

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

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fondo ambiental — radiales sutiles, sin costo por frame */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 82% -8%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(900px 500px at 8% 108%, rgba(245,158,11,0.06), transparent 60%),
    var(--dark);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Tipografía ─────────────────────────────── */
.font-display { font-family: 'Cormorant', Georgia, serif; }
h1, h2, h3, h4 { font-family: 'Cormorant', Georgia, serif; line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); }
h4 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
p  { color: #CBD5E1; }
strong { color: #fff; font-weight: 600; }

.text-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FFE566 38%, #FFD700 52%, #FCD34D 62%, #F59E0B 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-ice {
  background: linear-gradient(135deg, #38BDF8 0%, #BAE6FF 40%, #E8F8FF 52%, #93C5FD 65%, #38BDF8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.tag {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.gold-line { height: 1px; background: linear-gradient(90deg, transparent, #F59E0B 40%, #FCD34D 50%, #F59E0B 60%, transparent); }
.ice-line  { height: 1px; background: linear-gradient(90deg, transparent, rgba(56,189,248,0.6) 35%, rgba(147,197,253,0.85) 50%, rgba(56,189,248,0.6) 65%, transparent); }

/* ── Layout ─────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-3 { max-width: 760px; }
.maxw-2 { max-width: 620px; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px){ .grid-2 { grid-template-columns: repeat(2,1fr);} }
@media (min-width: 900px){ .grid-3 { grid-template-columns: repeat(3,1fr);} .grid-4 { grid-template-columns: repeat(4,1fr);} }
@media (max-width: 899px){ .grid-4 { grid-template-columns: repeat(2,1fr);} }

/* ── Glass / cards ──────────────────────────── */
.glass {
  background: rgba(8,16,36,0.72);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(59,130,246,0.28);
}
.card {
  background: linear-gradient(160deg, rgba(14,27,49,0.9), rgba(8,15,30,0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .3s ease, transform .35s cubic-bezier(.23,1,.32,1);
}
.card:hover { border-color: rgba(245,158,11,0.42); transform: translateY(-4px); }
.card h3, .card h4 { color: #fff; margin-bottom: .55rem; }
.card p { font-size: 0.95rem; color: var(--muted); }

.card-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(59,130,246,0.18), rgba(245,158,11,0.14));
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--gold-l);
}
.card-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ── Botones / CTA ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.92rem;
  padding: 0.85rem 1.5rem; border-radius: 13px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold { background: linear-gradient(135deg,#F59E0B,#D97706); color: #1a1200; box-shadow: 0 8px 26px rgba(245,158,11,0.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(245,158,11,0.4); }
.btn-wa { background: linear-gradient(135deg,#25D366,#128C7E); color: #041a10; box-shadow: 0 8px 26px rgba(37,211,102,0.26); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(37,211,102,0.4); }
.btn-ghost { background: rgba(59,130,246,0.08); color: #E2ECFF; border-color: rgba(59,130,246,0.4); }
.btn-ghost:hover { background: rgba(59,130,246,0.16); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cta-row--center { justify-content: center; }

/* ── Navbar hub ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(2,6,13,0.86);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(59,130,246,0.2);
  transition: background .4s ease;
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img { height: 46px; width: auto; flex-shrink: 0; }
.nav-brand { display: none; flex-direction: column; line-height: 1; border-left: 1px solid rgba(255,255,255,0.12); padding-left: .7rem; }
.nav-brand small { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.nav-brand span { font-family: 'Cormorant', serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; color: #fff; }
@media (min-width: 560px){ .nav-brand { display: flex; } }

.nav-links { display: none; align-items: center; gap: 1.6rem; }
@media (min-width: 1024px){ .nav-links { display: flex; } }
.nav-links > a, .nav-drop > button {
  background: none; border: none; cursor: pointer; font-family: 'Montserrat', sans-serif;
  color: var(--muted); font-size: .86rem; font-weight: 500; letter-spacing: .02em;
  transition: color .2s ease; display: inline-flex; align-items: center; gap: .3rem;
}
.nav-links > a:hover, .nav-drop > button:hover, .nav-drop:hover > button { color: #fff; }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .25s; }
.nav-drop:hover > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; padding: .6rem; margin-top: .4rem;
  background: rgba(8,16,32,0.97); backdrop-filter: blur(24px);
  border: 1px solid rgba(59,130,246,0.3); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease;
  display: grid; gap: 2px;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu a { display: block; padding: .6rem .8rem; border-radius: 10px; color: #CBD5E1; font-size: .85rem; transition: background .18s, color .18s; }
.nav-menu a:hover { background: rgba(59,130,246,0.14); color: #fff; }
.nav-menu a small { display: block; color: var(--muted-2); font-size: .72rem; font-weight: 400; }
.nav-cta { display: none; }
@media (min-width: 768px){ .nav-cta { display: inline-flex; } }

.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
@media (min-width: 1024px){ .nav-burger { display: none; } }
.nav-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ── Mobile menu ────────────────────────────── */
.mnav { position: fixed; inset: 0; z-index: 200; background: rgba(2,6,13,0.98); backdrop-filter: blur(20px);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.5,0,.2,1); overflow-y: auto; padding: 5rem 1.5rem 2rem; }
.mnav.open { transform: translateX(0); }
.mnav-close { position: absolute; top: 1.3rem; right: 1.3rem; background: none; border: none; color: #fff; cursor: pointer; width: 40px; height: 40px; }
.mnav-close svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2; fill: none; }
.mnav h5 { color: var(--gold); font-family: 'Montserrat',sans-serif; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin: 1.4rem 0 .6rem; }
.mnav a { display: block; padding: .55rem 0; color: #E2ECFF; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mnav a:active { color: var(--gold); }
.mnav .btn { width: 100%; margin-top: 1.5rem; }

/* ── Breadcrumb ─────────────────────────────── */
.crumb { padding-top: 84px; }
.crumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .78rem; color: var(--muted-2); padding: 1rem 0; }
.crumb li { display: flex; align-items: center; gap: .4rem; }
.crumb a { color: var(--muted); transition: color .2s; }
.crumb a:hover { color: var(--gold); }
.crumb li[aria-current] { color: #E2ECFF; }
.crumb svg { width: 12px; height: 12px; stroke: var(--muted-2); fill: none; stroke-width: 2; }

/* ── Hero landing ───────────────────────────── */
.hero { position: relative; padding: 2.5rem 0 clamp(3rem,7vw,5.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px){ .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .lead { font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: #C4D2E8; max-width: 40ch; margin-bottom: 1.8rem; }
.hero-media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(59,130,246,0.28); box-shadow: 0 30px 80px rgba(0,0,0,0.5); aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2,6,13,0.55)); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600;
  padding: .45rem .9rem; border-radius: 999px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.28); color: #CFE0FF; }
.pill svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; }

/* ── Trust bar ──────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 720px){ .trust { grid-template-columns: repeat(4,1fr); } }
.trust > div { background: var(--surface); padding: 1.4rem 1rem; text-align: center; }
.trust b { display: block; font-family: 'Cormorant', serif; font-size: 2.1rem; color: #fff; line-height: 1; }
.trust span { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }

/* ── Listas de beneficios ──────────────────── */
.checklist { display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: #CBD5E1; font-size: .96rem; }
.checklist li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: rgba(37,211,102,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
  border: 1px solid rgba(52,211,153,0.3);
}
.checklist li strong { color: #fff; }

/* ── Prose (contenido SEO) ─────────────────── */
.prose p { margin-bottom: 1.1rem; color: #C4D2E8; }
.prose h2 { color: #fff; margin: 2.4rem 0 1rem; }
.prose h3 { color: #fff; margin: 1.8rem 0 .7rem; }
.prose ul.dot { display: grid; gap: .5rem; margin: 0 0 1.1rem; }
.prose ul.dot li { position: relative; padding-left: 1.3rem; color: #C4D2E8; }
.prose ul.dot li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.prose a.inlink { color: var(--ice-l); border-bottom: 1px solid rgba(56,189,248,0.4); transition: color .2s; }
.prose a.inlink:hover { color: #fff; }

/* ── FAQ acordeón ───────────────────────────── */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq details[open] { border-color: rgba(245,158,11,0.35); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; font-family: 'Cormorant', serif; font-weight: 700; font-size: 1.18rem; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Montserrat',sans-serif; font-size: 1.5rem; color: var(--gold); transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.3rem 1.2rem; color: #B8C6DC; font-size: .95rem; }

/* ── CTA band ───────────────────────────────── */
.ctaband { position: relative; border-radius: 26px; overflow: hidden; padding: clamp(2.5rem,5vw,4rem) clamp(1.5rem,4vw,3.5rem);
  background: linear-gradient(135deg, rgba(30,58,138,0.35), rgba(2,6,13,0.6)), radial-gradient(600px 300px at 80% 20%, rgba(245,158,11,0.14), transparent);
  border: 1px solid rgba(59,130,246,0.3); text-align: center; }
.ctaband h2 { color: #fff; margin-bottom: .8rem; }
.ctaband p { max-width: 46ch; margin: 0 auto 1.8rem; color: #C4D2E8; }

/* Interlinks relacionados */
.rel-grid { display: grid; gap: 1rem; }
@media (min-width: 640px){ .rel-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .rel-grid { grid-template-columns: repeat(3,1fr); } }
.rel-card { display: block; padding: 1.25rem 1.4rem; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.rel-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); }
.rel-card b { display: block; font-family: 'Cormorant', serif; font-size: 1.2rem; color: #fff; margin-bottom: .2rem; }
.rel-card span { font-size: .85rem; color: var(--muted); }
.rel-card .arr { color: var(--gold); }

/* ── Footer hub ─────────────────────────────── */
.foot { border-top: 1px solid rgba(59,130,246,0.16); background: linear-gradient(180deg, transparent, rgba(8,15,30,0.6)); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; gap: 2.2rem; }
@media (min-width: 720px){ .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot h4 { color: #fff; font-family: 'Montserrat',sans-serif; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.foot ul { display: grid; gap: .6rem; }
.foot a, .foot li { color: var(--muted); font-size: .86rem; transition: color .2s; }
.foot a:hover { color: var(--gold); }
.foot .foot-brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.foot .foot-brand p { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.foot address { font-style: normal; color: var(--muted); font-size: .8rem; display: grid; gap: .35rem; }
.foot-bottom { margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; }
.foot-bottom p { font-size: .78rem; color: var(--muted-2); }
.dev-credit { margin-top: 1.6rem; text-align: center; }
.dev-credit a { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; opacity: .7; transition: opacity .3s; }
.dev-credit a:hover { opacity: 1; }
.dev-credit .dc-eyebrow { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); }
.dev-credit .dc-brand { display: inline-flex; align-items: center; gap: .4rem; }
.dev-credit .dc-mark { font-family: 'Cormorant',serif; font-weight: 700; color: #fff; background: #6E56F2; border-radius: 6px; padding: 1px 6px; font-size: .8rem; }
.dev-credit .dc-word { font-size: .8rem; letter-spacing: .1em; color: #CBD5E1; }

/* ── WhatsApp float ─────────────────────────── */
.wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 90; }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg,#25D366,#128C7E); box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  display: grid; place-items: center; transition: transform .25s; }
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }
.wa-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.5);} 70%{box-shadow:0 0 0 18px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ── Reveal on scroll ──────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.23,1,.32,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .wa-btn::after { display: none; }
}

.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; }
