/* =========================================================
   Berni · Electricidad y Energía Solar
   Dirección de diseño: "Energía que se ve trabajar"
   Azul eléctrico (noche/tecnología) → Ámbar solar (luz/ahorro)
   ========================================================= */

:root {
  /* Base azul (más clara, claramente azul) */
  --midnight: #1B3C82;
  --panel-dark: #234A99;
  --panel-dark-2: #2C57AE;
  /* Azul eléctrico */
  --blue: #2563EB;
  --blue-bright: #38BDF8;
  /* Ámbar solar */
  --amber: #FFB000;
  --amber-deep: #FF8A00;
  /* Neutros claros */
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --ink: #0B1220;
  --muted: #5B677A;
  --line: #E6EAF1;
  --success: #22C55E;

  /* Gradientes firma */
  --grad-sun: linear-gradient(120deg, #FFB000, #FF8A00);
  --grad-electric: linear-gradient(120deg, #2563EB, #38BDF8);
  --grad-hero: radial-gradient(1200px 600px at 75% -10%, rgba(56,189,248,.30), transparent 60%),
               radial-gradient(900px 500px at 10% 110%, rgba(255,176,0,.20), transparent 55%),
               linear-gradient(180deg, rgba(13,33,80,0), rgba(13,33,80,.42));

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 2px 8px rgba(11,18,32,.05);
  --shadow-md: 0 10px 30px rgba(11,18,32,.10);
  --shadow-lg: 0 24px 60px rgba(11,18,32,.16);
  --shadow-glow: 0 0 0 1px rgba(56,189,248,.25), 0 18px 50px rgba(37,99,235,.28);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-electric); border-radius: 2px; }
.eyebrow.on-dark { color: var(--blue-bright); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.075rem; }

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

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-sun); color: #1c1300; box-shadow: 0 10px 26px rgba(255,138,0,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(255,138,0,.45); }
.btn-electric { background: var(--grad-electric); color: #04101f; box-shadow: 0 10px 26px rgba(37,99,235,.38); }
.btn-electric:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37,99,235,.5); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.12rem; letter-spacing: -.02em; }
.brand .spark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad-electric); box-shadow: 0 6px 18px rgba(37,99,235,.4); }
.brand .spark svg { width: 21px; height: 21px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { color: #44516a; font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 9px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: #EEF3FC; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

.nav-mobile-cta { display: none; }

@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 20px 22px; border-top: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    transform: translateY(-130%); transition: transform .38s var(--ease); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: flex; align-items: center; padding: 17px 6px; font-size: 1.06rem; font-weight: 600;
    color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:hover, .nav-links a.active { color: var(--blue); background: transparent; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }

  .nav-mobile-cta { display: block; margin-top: 16px; }
  .nav-links .nav-mobile-cta a { justify-content: center; background: var(--grad-sun); color: #1c1300;
    font-family: var(--font-head); font-weight: 600; padding: 16px; border-radius: 999px; border-bottom: 0;
    box-shadow: 0 10px 24px rgba(255,138,0,.3); }
  .nav-links .nav-mobile-cta a:hover { color: #1c1300; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--midnight); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.hero-grid-bg { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(56,189,248,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(900px 500px at 70% 20%, #000, transparent 80%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: clamp(64px, 9vw, 118px) 22px clamp(72px, 9vw, 116px); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; }
.hero h1 .text-grad { display: inline-block; }
.hero-lead { margin: 22px 0 30px; font-size: 1.18rem; color: rgba(255,255,255,.78); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .lbl { font-size: .82rem; color: rgba(255,255,255,.62); letter-spacing: .02em; }

.hero-visual { position: relative; }
.hero-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); aspect-ratio: 4/5; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 40%, rgba(15,33,78,.5)); }
.hero-badge { position: absolute; z-index: 3; background: rgba(23,52,118,.82); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); }
.hero-badge .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-sun); color:#231600; flex: none; }
.hero-badge .ico svg { width: 22px; height: 22px; }
.hero-badge b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.hero-badge span { font-size: .78rem; color: rgba(255,255,255,.7); }
.hero-badge.b1 { top: 22px; left: -22px; }
.hero-badge.b2 { bottom: 26px; right: -18px; }

/* Floating animation */
.float { animation: float 6s ease-in-out infinite; }
.float.d { animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* circuit line under hero */
.circuit { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 2; }
.circuit .trace { fill: none; stroke: url(#cgrad); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 14 10; animation: dash 5s linear infinite; opacity: .55; }
@keyframes dash { to { stroke-dashoffset: -240; } }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
  .hero-badge.b1 { left: -10px; } .hero-badge.b2 { right: -8px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--panel-dark); color: rgba(255,255,255,.7); }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; padding: 22px 22px; }
.trust .item { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; }
.trust .item svg { width: 18px; height: 18px; color: var(--blue-bright); flex: none; }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.35); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.card .ico svg { width: 27px; height: 27px; }
.ico.electric { background: var(--grad-electric); box-shadow: 0 10px 24px rgba(37,99,235,.32); }
.ico.solar { background: var(--grad-sun); color: #231600; box-shadow: 0 10px 24px rgba(255,138,0,.3); }
.ico.bolt { background: linear-gradient(120deg,#0F1629,#243049); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .arrow { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: .92rem; }
.card .arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .arrow svg { transform: translateX(5px); }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.card ul li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: .95rem; color: #38465c; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Why / features split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .split-media { order: 0; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 15px; }
.feature-list .fi { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #ECF2FF; color: var(--blue); }
.feature-list .fi svg { width: 22px; height: 22px; }
.feature-list h4 { font-size: 1.05rem; margin-bottom: 3px; }
.feature-list p { color: var(--muted); font-size: .94rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; background: var(--grad-electric); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h4 { margin: 12px 0 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Savings band ---------- */
.savings { background: var(--midnight); color: #fff; position: relative; overflow: hidden; }
.savings::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.savings .container { position: relative; }
.savings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .savings-grid { grid-template-columns: 1fr; gap: 34px; } }
.savings h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 16px; }
.savings p { color: rgba(255,255,255,.76); }
.counter-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.counter { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px); }
.counter .v { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter .v .suffix { font-size: 1.4rem; }
.counter .k { font-size: .86rem; color: rgba(255,255,255,.66); margin-top: 4px; }

/* ---------- Credentials / badges ---------- */
.creds { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr; } }
.cred { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.cred .seal { flex: none; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg,#0F1629,#243049); color: var(--amber); }
.cred .seal svg { width: 26px; height: 26px; }
.cred h4 { font-size: 1.02rem; margin-bottom: 4px; }
.cred p { font-size: .9rem; color: var(--muted); }
.cred .ref { display: inline-block; margin-top: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--blue); background: #ECF2FF; padding: 3px 9px; border-radius: 6px; }

/* ---------- Testimonials ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.quote .stars { color: var(--amber); letter-spacing: 3px; font-size: 1.05rem; }
.quote p { font-size: 1.02rem; color: #2a3548; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-electric); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote .who b { display: block; font-size: .95rem; }
.quote .who span { font-size: .82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 6px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #ECF2FF; color: var(--blue); transition: transform .3s var(--ease), background .3s; }
.faq-q .pm svg { width: 18px; height: 18px; }
.faq-item.open .pm { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 6px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-electric); color: #03101f; border-radius: var(--radius-lg); padding: clamp(36px,6vw,64px); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 80% 120%, rgba(255,176,0,.4), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: #04101f; }
.cta-band p { margin: 14px auto 28px; max-width: 560px; color: #0b2746; font-size: 1.08rem; }

/* ---------- Forms / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 15px; align-items: center; }
.info-list .ii { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-sun); color: #231600; }
.info-list .ii svg { width: 22px; height: 22px; }
.info-list b { display: block; font-family: var(--font-head); }
.info-list span, .info-list a { color: var(--muted); font-size: .96rem; }
.info-list a:hover { color: var(--blue); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.13); }
.field textarea { resize: vertical; min-height: 120px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Page hero (interior) ---------- */
.phero { background: var(--midnight); color: #fff; position: relative; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.phero .container { position: relative; padding: clamp(60px,8vw,96px) 22px clamp(56px,7vw,84px); }
.phero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; max-width: 760px; margin: 16px 0 16px; }
.phero p { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 600px; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--blue-bright); }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: rgba(255,255,255,.66); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { font-size: .92rem; max-width: 280px; }
.footer h5 { font-family: var(--font-head); color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .93rem; transition: color .2s; }
.footer ul a:hover { color: var(--blue-bright); }
.footer .socials { display: flex; gap: 10px; margin-top: 16px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .25s, transform .25s; }
.footer .socials a:hover { background: var(--grad-electric); transform: translateY(-3px); }
.footer .socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-credit a { color: var(--blue-bright); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float, .circuit .trace { animation: none; } }

/* ---------- Helpers ---------- */
.center { text-align: center; }
.mt-l { margin-top: 44px; }
.lead-block { max-width: 740px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag { font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: #ECF2FF; color: var(--blue); }
.tag.amber { background: #FFF4E0; color: var(--amber-deep); }
.validar { /* marca interna, no visible especial */ }
