/* ==========================================================================
   Maili Power — inverter.wa-ya.cn
   Sistema visual responsive (tema oscuro industrial de gama alta)
   Tipografías del sistema únicamente: sin recursos externos.
   ========================================================================== */

:root {
  --bg: #060b14;
  --bg-soft: #0a1320;
  --surface: #0e1a29;
  --surface-2: #122032;
  --surface-3: #16273c;
  --line: rgba(150, 184, 226, .14);
  --line-strong: rgba(150, 184, 226, .28);
  --text: #e9f1fb;
  --text-soft: #c4d3e6;
  --muted: #8ea3bf;
  --accent: #1ad3c4;
  --accent-2: #3d8bff;
  --accent-ink: #04121a;
  --gold: #f2c14e;
  --grad: linear-gradient(118deg, #1ad3c4 0%, #3d8bff 100%);
  --grad-soft: linear-gradient(118deg, rgba(26, 211, 196, .16) 0%, rgba(61, 139, 255, .16) 100%);
  --radius-xl: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, .9);
  --shadow-soft: 0 12px 34px -20px rgba(0, 0, 0, .8);
  --maxw: 1180px;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(920px 520px at 12% -8%, rgba(26, 211, 196, .10), transparent 62%),
    radial-gradient(880px 480px at 92% 4%, rgba(61, 139, 255, .12), transparent 60%);
}

img { display: block; max-width: 100%; height: auto; border: 0; }
img.img-missing { display: none !important; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: #7ff0e4; }

h1, h2, h3, h4 { color: #fff; line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { color: #fff; }

::selection { background: rgba(26, 211, 196, .28); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.2rem); position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .7rem 1.1rem;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .96rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: var(--accent-ink);
  box-shadow: 0 16px 32px -18px rgba(26, 211, 196, .85);
}
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 22px 40px -18px rgba(61, 139, 255, .9); }

.btn-ghost {
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { color: #fff; border-color: var(--accent); background: rgba(26, 211, 196, .10); }

.btn-sm { padding: .62rem 1.1rem; font-size: .875rem; }

/* ------------------------------------------------------------------ cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 20, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand img {
  height: 44px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .9);
}
.brand-text { display: none; }
.brand img.img-missing + .brand-text { display: block; }
.brand-text strong { display: block; font-size: 1.12rem; color: #fff; letter-spacing: .01em; line-height: 1.2; }
.brand-text span { display: block; font-size: .74rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .2rem; }
.nav a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 600;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(26, 211, 196, .14); box-shadow: inset 0 0 0 1px rgba(26, 211, 196, .32); }

.header-cta { margin-left: .8rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 7px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, 0) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.4rem, 8vw, 6.4rem) 0 clamp(3rem, 7vw, 5.4rem);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(130deg, #0a1c2e 0%, #071523 42%, #0d2c3c 100%);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 11, 20, .62) 0%, rgba(6, 11, 20, .82) 58%, var(--bg) 100%);
}
.hero-inner { max-width: 900px; }
.hero h1 { margin-bottom: .7rem; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 0; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: 2.6rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: rgba(10, 19, 32, .88); padding: 1.15rem 1.3rem; }
.stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: .3rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(26, 211, 196, .1);
  border: 1px solid rgba(26, 211, 196, .3);
  border-radius: 999px;
  padding: .38rem .95rem;
  margin: 0 0 1.1rem;
}

/* ------------------------------------------------------------------ secciones */
.section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(14, 26, 41, .72), rgba(10, 19, 32, .72)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.6rem; justify-content: space-between; margin-bottom: 2.1rem; }
.section-head > div { max-width: 62rem; }
.section-head h2 { margin-bottom: .4rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1rem; }
.group-head { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; flex-wrap: wrap; }
.group-head h3 { margin: 0; }

/* ------------------------------------------------------------------ rejillas */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
}

/* ------------------------------------------------------------------ tarjetas */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 19, 32, .9) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--text-soft); margin-bottom: 0; font-size: .97rem; }
.card .tag { margin-bottom: .8rem; }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(26, 211, 196, .1);
  border: 1px solid rgba(26, 211, 196, .28);
  border-radius: 999px;
  padding: .28rem .7rem;
}
.tag--gold { color: var(--gold); background: rgba(242, 193, 78, .1); border-color: rgba(242, 193, 78, .3); }

/* ------------------------------------------------------------------ producto */
.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 19, 32, .92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(26, 211, 196, .42); box-shadow: var(--shadow); }
.product-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #12263c 0%, #0d1a2a 55%, #123043 100%);
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1 1 auto; }
.product-card h3 { margin: 0; font-size: 1.12rem; }
.product-card .spec-line { margin: 0; font-size: .93rem; color: var(--muted); }
.card-link { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .93rem; }

/* ------------------------------------------------------------------ medios */
.article-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #12263c 0%, #0d1a2a 55%, #123043 100%);
  box-shadow: var(--shadow);
}
.article-media img { width: 100%; height: auto; }
.article-media figcaption { padding: .85rem 1.1rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); background: rgba(6, 11, 20, .55); }

.cert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-card .thumb {
  background: #f6f9fc;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cert-card .thumb img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .6); }
.cert-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.cert-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.cert-card p { color: var(--muted); font-size: .9rem; margin: 0; }

.facility-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #12263c, #0d1a2a); }
.facility-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facility-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem .95rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 20, .92));
}
figure { margin: 0; }

/* ------------------------------------------------------------------ CTA */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26, 211, 196, .26);
  background: var(--grad-soft), linear-gradient(180deg, var(--surface-2), rgba(10, 19, 32, .9));
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: .35rem; font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.cta-band p { margin: 0; color: var(--text-soft); max-width: 46rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ------------------------------------------------------------------ cabecera de página interna */
.page-head {
  padding: clamp(2.4rem, 5vw, 3.8rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  background:
    radial-gradient(700px 320px at 8% -20%, rgba(26, 211, 196, .16), transparent 65%),
    radial-gradient(620px 300px at 96% 0%, rgba(61, 139, 255, .16), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .5rem; }
.page-head > .container > p { color: var(--muted); max-width: 56rem; margin: 0; font-size: 1.03rem; }

.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .84rem; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ texto / tablas */
.prose { color: var(--text-soft); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.15rem; }
.prose li { color: var(--text-soft); }
.prose li::marker { color: var(--accent); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0 0 1.3rem; }
.spec-table caption { text-align: left; font-weight: 700; color: #fff; padding: 0 0 .6rem; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.spec-table th { width: 40%; background: rgba(18, 32, 50, .72); color: #fff; font-weight: 600; }
.spec-table td { color: var(--text-soft); background: rgba(10, 19, 32, .5); }
.spec-table tbody tr:nth-child(even) th { background: rgba(18, 32, 50, .5); }
.spec-table tbody tr:nth-child(even) td { background: rgba(10, 19, 32, .32); }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; }
.chips li {
  margin: 0;
  padding: .58rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 500;
}

/* ------------------------------------------------------------------ FAQ */
.faq-list { display: grid; gap: .85rem; }
.faq-item {
  background: linear-gradient(180deg, var(--surface), rgba(10, 19, 32, .88));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(26, 211, 196, .38); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.3rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ formulario */
.contact-form {
  background: linear-gradient(180deg, var(--surface-2), rgba(10, 19, 32, .94));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.contact-form h2 { font-size: 1.35rem; }
.contact-form .hint { color: var(--muted); font-size: .9rem; }
.req { color: var(--gold); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  background: rgba(6, 11, 20, .72);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .78rem .9rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #6d819b; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(6, 11, 20, .9);
  box-shadow: 0 0 0 3px rgba(26, 211, 196, .18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff7a7a; }

.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.form-status { margin-top: 1rem; font-size: .93rem; min-height: 1.2em; }
.form-status[data-state="loading"] { color: var(--muted); }
.form-status[data-state="success"] { color: var(--accent); font-weight: 600; }
.form-status[data-state="error"] { color: #ff9c9c; font-weight: 600; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: .95rem 1rem .95rem 3.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(14, 26, 41, .7);
  color: var(--text-soft);
  margin: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: .95rem;
  font-size: .95rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .04em;
}

/* ------------------------------------------------------------------ pie */
.site-footer {
  background: linear-gradient(180deg, var(--bg-soft), #050a12);
  border-top: 1px solid var(--line);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.4rem;
  margin-top: 1rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; width: auto; background: #fff; border-radius: 10px; padding: 5px 10px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .93rem; max-width: 34rem; }
.footer-grid h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .45rem; }
.footer-grid ul a { color: var(--muted); font-size: .94rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: .85rem;
}

/* ------------------------------------------------------------------ animación */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover, .product-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav a { padding: .5rem .7rem; font-size: .9rem; }
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: rgba(8, 15, 26, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav.is-open { max-height: 26rem; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem clamp(1rem, 4vw, 2.2rem) 1rem; }
  .nav a { padding: .8rem .6rem; border-radius: 8px; font-size: 1rem; }
  .header-inner { position: relative; }
  .footer-grid { gap: 1.6rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 2.8rem; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions, .form-actions { width: 100%; }
  .cert-card .thumb { height: 210px; }
  .stat { padding: 1rem; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .form-actions { display: none !important; }
  body { background: #fff; color: #111; }
}