/* =====================================================================
   MECÁNICA INTELIGENTE — Hoja de estilos principal
   1. Tokens  2. Base  3. Tipografía  4. Layout  5. Botones
   6. Header / navegación  7. Hero  8. Secciones  9. Footer
   10. Botón flotante  11. Responsive
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. TOKENS                                                          */
/* ------------------------------------------------------------------ */
:root {
  /* Color — base */
  --bg:            #0b1012;
  --bg-deep:       #070b0c;
  --surface:       #111a1b;
  --surface-2:     #16211f;
  --surface-3:     #1c2826;

  /* Color — texto */
  --ink:           #eef3f1;
  --ink-strong:    #ffffff;
  --muted:         #9fb0ac;
  --muted-2:       #7f918d;

  /* Color — marca */
  --accent:        #5ce07f;
  --accent-2:      #2ec457;
  --accent-deep:   #128a34;
  --accent-dim:    rgba(92, 224, 127, .14);

  /* Color — WhatsApp */
  --wa:            #25d366;
  --wa-ink:        #052e14;

  /* Color — estados */
  --warn:          #f5b942;
  --danger:        #f2565d;
  --info:          #5aa9ff;

  /* Color — líneas */
  --line:          rgba(255, 255, 255, .09);
  --line-2:        rgba(255, 255, 255, .16);
  --line-accent:   rgba(92, 224, 127, .38);

  /* Tipografía */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body:    "Barlow", system-ui, -apple-system, sans-serif;
  --font-label:   "Barlow Condensed", "Barlow", sans-serif;

  /* Ritmo */
  --shell:        1240px;
  --shell-pad:    clamp(1.15rem, 4vw, 2.75rem);
  --section-y:    clamp(4rem, 9vw, 7.5rem);
  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;

  /* Sombras */
  --shadow-sm:    0 2px 10px rgba(0, 0, 0, .32);
  --shadow-md:    0 14px 40px rgba(0, 0, 0, .45);
  --shadow-accent:0 14px 40px rgba(46, 196, 87, .22);

  /* Capas */
  --z-fab:        40;
  --z-header:     60;
  --z-overlay:    70;
  --z-drawer:     80;
  --z-modal:      90;
  --z-toast:      100;
}

/* ------------------------------------------------------------------ */
/* 2. BASE                                                            */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

::selection { background: var(--accent); color: #06130a; }

/* Textura técnica de fondo (rejilla + halo verde) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(46, 196, 87, .13), transparent 62%),
    radial-gradient(700px 460px at 4% 4%, rgba(90, 169, 255, .07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 46px 100%;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--accent);
  color: #06130a;
  font-weight: 700;
  padding: .7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Texto sólo para lectores de pantalla */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ */
/* 3. TIPOGRAFÍA                                                      */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: 0 0 .55em;
  color: var(--ink-strong);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.35rem + 5.1vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); }
h4 { font-size: 1.075rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--accent); }
em { font-style: normal; color: var(--accent); }

.lead {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-label);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  opacity: .75;
}

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono {
  font-family: "SFMono-Regular", ui-monospace, "Roboto Mono", Menlo, monospace;
  font-size: .92em;
}

/* ------------------------------------------------------------------ */
/* 4. LAYOUT                                                          */
/* ------------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.shell--wide { max-width: 1440px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0)); }
.section--deep {
  background:
    linear-gradient(180deg, rgba(11,16,18,.9), rgba(11,16,18,.97)),
    url("../images/taller-herramientas.jpg") center / cover no-repeat;
}

.section-head { max-width: 68ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.grid-4 { grid-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Marco industrial con esquinas */
.frame { position: relative; }
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--accent);
  opacity: .55;
  pointer-events: none;
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ------------------------------------------------------------------ */
/* 5. BOTONES                                                         */
/* ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--accent-deep);
  --btn-ink: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-label);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .16s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease,
              background-color .2s ease,
              border-color .2s ease,
              color .2s ease;
}
.btn > i { font-size: 1.05em; line-height: 1; }

/* Brillo diagonal al pasar el mouse */
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  transition: left .55s cubic-bezier(.22, 1, .36, 1);
  z-index: -1;
}
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--wa   { --btn-bg: var(--wa); --btn-ink: var(--wa-ink); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--accent { --btn-bg: var(--accent); --btn-ink: #06130a; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.12rem; }
.btn--sm { padding: .55rem 1rem; font-size: .92rem; border-radius: 8px; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Enlace con flecha animada */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .98rem;
  color: var(--accent);
}
.link-arrow i { transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.link-arrow:hover i { transform: translateX(5px); }

/* Chips / etiquetas */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-family: var(--font-label);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip i { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* 6. HEADER + NAVEGACIÓN                                             */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 16, 18, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 12, .94);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}
.site-header.is-scrolled .scroll-progress { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.brand img { width: 40px; height: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.brand-text strong {
  font-weight: 900;
  font-size: 1.06rem;
  color: var(--accent);
  letter-spacing: .04em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav-desktop a {
  position: relative;
  padding: .4rem 0;
  font-family: var(--font-label);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-cta { display: none; }

/* Botón de menú móvil */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .16s cubic-bezier(.22,1,.36,1);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle .fa-xmark { display: none; }
body.nav-open .nav-toggle .fa-bars { display: none; }
body.nav-open .nav-toggle .fa-xmark { display: inline-block; }

/* Velo del menú */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(3, 6, 7, .72);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

/* Panel lateral */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  z-index: var(--z-drawer);
  width: min(360px, 88vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.15rem var(--shell-pad) calc(1.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0f1718, #0a1011);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 70px rgba(0,0,0,.6);
  transform: translateX(102%);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform .34s cubic-bezier(.32, .72, 0, 1), visibility .34s;
}
body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__title {
  font-family: var(--font-label);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .16s cubic-bezier(.22,1,.36,1);
}
.nav-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

.mobile-nav__list { display: flex; flex-direction: column; gap: .3rem; }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem .85rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease, padding-left .25s cubic-bezier(.22,1,.36,1);
}
.mobile-nav__list a i {
  width: 26px;
  text-align: center;
  color: var(--accent-2);
  font-size: 1rem;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.mobile-nav__list a:hover,
.mobile-nav__list a[aria-current="page"] {
  background: rgba(92,224,127,.08);
  color: var(--accent);
  padding-left: 1.1rem;
}
.mobile-nav__list a:hover i,
.mobile-nav__list a[aria-current="page"] i { transform: scale(1.15); }
.mobile-nav__list a[aria-current="page"]::after {
  content: "";
  margin-left: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.mobile-nav__info {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .7rem;
  font-size: .93rem;
  color: var(--muted);
}
.mobile-nav__info a { display: flex; align-items: center; gap: .65rem; }
.mobile-nav__info i { color: var(--accent-2); width: 18px; text-align: center; }
.mobile-nav__info a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* 7. HERO                                                            */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.25rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background: var(--bg-deep);
}
/* Foto de fondo: sólo en pantallas chicas */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: .46;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, var(--bg-deep) 10%, rgba(11,16,18,.9) 34%, rgba(11,16,18,.4) 62%, rgba(11,16,18,.86) 100%),
    radial-gradient(760px 420px at 88% 18%, rgba(46,196,87,.18), transparent 68%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}
.hero__title { margin-bottom: 1rem; }
.hero__title span { display: block; }
.hero__copy { max-width: 56ch; }

.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

/* Visual de escritorio */
.hero__visual { position: relative; display: grid; gap: 0; }
.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  width: 100%; height: auto;
  border-radius: 0;
  display: none;
}

.hero__card {
  position: relative;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius);
  background: rgba(13, 20, 20, .88);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.hero__card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.hero__card-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 11px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.15rem;
}
.hero__card h3 { margin: 0; font-size: 1.1rem; }
.hero__card ul { display: grid; gap: .45rem; font-size: .95rem; color: var(--muted); }
.hero__card li { display: flex; align-items: center; gap: .55rem; }
.hero__card li i { color: var(--accent); font-size: .8rem; }

@media (min-width: 1000px) {
  /* Escritorio: foto encuadrada a la derecha + tarjeta superpuesta */
  .hero__bg { display: none; }
  .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(2.5rem, 4vw, 4rem);
  }
  .hero__col { align-self: center; }
  .hero__visual { align-self: center; padding-bottom: 3.5rem; }
  .hero__photo { border: 1px solid var(--line-accent); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
  .hero__photo::before,
  .hero__photo::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    border: 2px solid var(--accent);
    opacity: .85;
    z-index: 2;
  }
  .hero__photo::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
  .hero__photo::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
  .hero__photo img { display: block; object-fit: cover; aspect-ratio: 4 / 3; }
  .hero__card {
    width: min(360px, 84%);
    margin: -5.5rem 0 0 2.75rem;
  }
  @media (hover: hover) and (pointer: fine) {
    .hero__photo { transition: transform .5s cubic-bezier(.22,1,.36,1); }
    .hero__photo:hover { transform: translateY(-6px); }
  }
}
@media (max-width: 999px) {
  .hero__card { margin-top: 2rem; }
}

/* Barra de cifras */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stats__item {
  padding: 1.4rem 1.25rem;
  background: rgba(11,16,18,.92);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.03em;
  display: flex;
  align-items: baseline;
  gap: .1em;
}
.stats__value i { font-size: .62em; color: var(--muted-2); }
.stats__label {
  font-family: var(--font-label);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* 8. SECCIONES Y TARJETAS                                            */
/* ------------------------------------------------------------------ */
.card {
  position: relative;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface), rgba(11,16,18,.92));
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1),
              border-color .3s ease,
              box-shadow .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  background: var(--accent-dim);
  border: 1px solid rgba(92,224,127,.22);
  color: var(--accent);
  font-size: 1.35rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background-color .3s ease, color .3s ease;
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card__list { display: grid; gap: .4rem; margin: .9rem 0 1.2rem; font-size: .94rem; color: var(--muted); }
.card__list li { display: flex; gap: .55rem; align-items: flex-start; }
.card__list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: .55em;
  flex: none;
  border-radius: 2px;
  background: var(--accent-2);
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-7px);
    border-color: var(--line-accent);
    box-shadow: var(--shadow-md);
  }
  .card:hover::before { transform: scaleX(1); }
  .card:hover .card__icon {
    transform: translateY(-3px) rotate(-7deg) scale(1.06);
    background: var(--accent);
    color: #06130a;
  }
}

/* Tarjetas de servicios (con imagen) */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,16,18,.05) 40%, rgba(11,16,18,.85));
}
.service-card__tag {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  background: rgba(8,13,14,.78);
  border: 1px solid var(--line-accent);
  color: var(--accent);
  font-family: var(--font-label);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: 1.28rem; }
.service-card__body p { color: var(--muted); font-size: .96rem; }
.service-card__foot { margin-top: auto; padding-top: 1.1rem; }
@media (hover: hover) and (pointer: fine) {
  .card.service-card:hover .service-card__media img { transform: scale(1.08); }
}

/* Proceso */
.steps { counter-reset: step; display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.step {
  position: relative;
  padding: 1.5rem 1.4rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22,33,31,.85), rgba(11,16,18,.9));
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: .9rem;
  border-radius: 11px;
  border: 1px solid var(--line-accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
}
.step h3 { font-size: 1.16rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .step:hover { transform: translateY(-5px); border-color: var(--line-accent); }
}

/* Galería */
.gallery { display: grid; gap: clamp(.75rem, 1.4vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.22,1,.36,1);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,10,11,.9));
  opacity: .9;
  transition: opacity .4s ease;
}
.gallery__cap {
  position: absolute;
  left: 1rem; right: 1rem; bottom: .95rem;
  z-index: 1;
  font-family: var(--font-label);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.gallery__cap i { color: var(--accent); margin-right: .4rem; }
@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover img { transform: scale(1.07); }
  .gallery__item:hover::after { opacity: .65; }
}

/* Banda de CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11,16,18,.96) 20%, rgba(11,16,18,.75) 60%, rgba(11,16,18,.9));
}
.cta-band__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { color: var(--muted); max-width: 52ch; }

/* Marquee de marcas */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.2rem;
  align-items: center;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color .25s ease;
}
.marquee__item:hover { color: var(--accent); }
.marquee__dot { color: var(--accent-2); font-size: .7em; }

/* Encabezado de página */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.page-head__media { position: absolute; inset: 0; z-index: -2; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-head__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,11,12,.97) 10%, rgba(7,11,12,.7) 55%, rgba(7,11,12,.9));
}
.page-head h1 { margin-bottom: .6rem; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); }
.page-head__crumbs {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-label);
  font-size: .86rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.page-head__crumbs a:hover { color: var(--accent); }
.page-head__crumbs i { font-size: .7em; }

/* Aviso / nota */
.notice {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  background: rgba(92,224,127,.05);
  color: var(--muted);
  font-size: .94rem;
}
.notice i { color: var(--accent); margin-top: .2rem; }
.notice strong { color: var(--ink); }

/* Acordeón (FAQ) */
.faq { display: grid; gap: .7rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17,26,27,.7);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq__item:has(.faq__q[aria-expanded="true"]) { border-color: var(--line-accent); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq__q:hover { color: var(--accent); }
.faq__q i {
  flex: none;
  color: var(--accent);
  font-size: .9rem;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.faq__q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1);
}
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: .96rem; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ------------------------------------------------------------------ */
/* 9. FORMULARIOS, TABLAS Y PANEL DE MANTENIMIENTO                    */
/* ------------------------------------------------------------------ */
.field { display: grid; gap: .4rem; }
.field > label,
.field-label {
  font-family: var(--font-label);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.input, .select, .textarea {
  width: 100%;
  padding: .78rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(8,13,14,.7);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); opacity: 1; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,224,127,.16);
  background: rgba(8,13,14,.95);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235ce07f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.textarea { min-height: 130px; resize: vertical; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,26,27,.75);
}
.toolbar .field { flex: 1 1 210px; }
.toolbar .field--search { position: relative; }
.toolbar .field--search i {
  position: absolute;
  left: .95rem; bottom: .95rem;
  color: var(--accent);
  pointer-events: none;
}
.toolbar .field--search .input { padding-left: 2.6rem; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,26,27,.72);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.06rem; }
.panel__head i { color: var(--accent); }
.panel__body { padding: 1.25rem; }

.dashboard { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
@media (min-width: 940px) {
  .dashboard { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption {
  text-align: left;
  padding: 1rem 1.25rem 0;
  font-family: var(--font-label);
  font-size: .88rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
thead th {
  text-align: left;
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-label);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
tbody td { padding: .9rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
tbody tr { transition: background-color .2s ease; }
tbody tr:hover { background: rgba(92,224,127,.05); }
tbody tr.is-selected { background: rgba(92,224,127,.1); box-shadow: inset 3px 0 0 var(--accent); }
.row-select {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
  cursor: pointer;
}
.row-select:hover { color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid;
  font-family: var(--font-label);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge i { font-size: .85em; }
.badge--ok   { color: var(--accent); border-color: rgba(92,224,127,.4); background: rgba(92,224,127,.1); }
.badge--soon { color: var(--warn);    border-color: rgba(245,185,66,.42); background: rgba(245,185,66,.1); }
.badge--late { color: var(--danger);  border-color: rgba(242,86,93,.42); background: rgba(242,86,93,.1); }

.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0; }
.detail-list { display: grid; gap: .1rem; margin: 0 0 1.1rem; }
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: .95rem;
}
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; font-weight: 600; }

.history { display: grid; gap: .5rem; }
.history li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  font-size: .9rem;
  color: var(--muted);
}
.history li i { color: var(--accent-2); }
.history li b { color: var(--ink); font-weight: 600; }

.status-msg { min-height: 1.4rem; font-size: .92rem; color: var(--muted); }
.status-msg.is-ok { color: var(--accent); }
.status-msg.is-error { color: var(--danger); }

/* Tabla -> tarjetas en móvil */
@media (max-width: 719px) {
  .table-wrap thead { display: none; }
  .table-wrap tbody tr {
    display: block;
    margin: .75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .35rem .5rem;
    background: rgba(255,255,255,.02);
  }
  .table-wrap tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .5rem .6rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    text-align: right;
  }
  .table-wrap tbody td:last-child { border-bottom: 0; }
  .table-wrap tbody td::before {
    content: attr(data-label);
    font-family: var(--font-label);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
    text-align: left;
  }
}

/* Diálogo (editor de vehículo) */
dialog {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--bg-deep));
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
  overflow: auto;
}
dialog::backdrop { background: rgba(3,6,7,.74); backdrop-filter: blur(3px); }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface-2);
  z-index: 1;
}
.dialog-head h2 { margin: 0; font-size: 1.25rem; }
.dialog-body { padding: 1.35rem; display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.form-grid .field--wide { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ */
/* 10. MAPA Y CONTACTO                                                */
/* ------------------------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.contact-list { display: grid; gap: .85rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,26,27,.7);
  transition: border-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), background-color .25s ease;
}
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.contact-item h3 { font-size: 1.02rem; margin-bottom: .15rem; }
.contact-item p, .contact-item a { color: var(--muted); font-size: .95rem; }
.contact-item a:hover { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .contact-item:hover { border-color: var(--line-accent); transform: translateX(4px); }
  .contact-item:hover .contact-item__icon { transform: scale(1.08) rotate(-6deg); }
}

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.map-wrap iframe {
  width: 100%;
  height: clamp(320px, 48vh, 520px);
  border: 0;
  filter: grayscale(.28) contrast(1.06) brightness(.94);
  transition: filter .4s ease;
}
.map-wrap:hover iframe { filter: grayscale(0) contrast(1.04) brightness(1); }
.map-wrap__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
  background: rgba(17,26,27,.9);
  font-size: .92rem;
  color: var(--muted);
}
.map-wrap__bar strong { color: var(--ink); display: block; font-family: var(--font-display); }

.hours { display: grid; gap: .35rem; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: .95rem;
}
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; font-weight: 600; }
.hours .is-today { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* 11. FOOTER                                                        */
/* ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-deep), #05080a);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: 2.5rem;
}
.footer-brand img { width: 46px; margin-bottom: .9rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.footer-social { display: flex; gap: .55rem; margin-top: 1.1rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  transition: color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), background-color .25s ease;
}
.footer-social a:hover {
  color: #06130a;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.site-footer h4 {
  font-family: var(--font-label);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-links { display: grid; gap: .6rem; }
.footer-links a {
  color: var(--muted);
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
}
.footer-links a::before {
  content: "";
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s cubic-bezier(.22,1,.36,1);
}
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }
.footer-links a:hover::before { width: 12px; }

.footer-contact { display: grid; gap: .7rem; color: var(--muted); font-size: .95rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact i { color: var(--accent-2); margin-top: .25rem; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted-2);
}
.footer-bottom a {
  color: var(--ink);
  font-weight: 600;
  transition: color .2s ease;
}
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------ */
/* 12. BOTÓN FLOTANTE DE WHATSAPP + AVISOS                            */
/* ------------------------------------------------------------------ */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 14px 34px rgba(37, 211, 102, .34), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
}
.wa-fab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  font-size: 1.55rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.wa-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-label);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .03em;
  opacity: 0;
  transition: max-width .38s cubic-bezier(.22,1,.36,1), opacity .25s ease, padding .38s cubic-bezier(.22,1,.36,1);
  padding-inline: 0;
}
.wa-fab__ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(37,211,102,.42), 0 3px 10px rgba(0,0,0,.45); }
  .wa-fab:hover .wa-fab__icon { transform: rotate(-8deg) scale(1.06); }
  .wa-fab:hover .wa-fab__label { max-width: 260px; opacity: 1; padding-inline: .9rem 0; }
}
.wa-fab:active { transform: scale(.96); }

/* Aviso emergente (toast) */
.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: min(440px, calc(100vw - 2rem));
  padding: .85rem 1.15rem;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  background: rgba(17,26,27,.97);
  color: var(--ink);
  font-size: .95rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition: opacity .3s ease, transform .34s cubic-bezier(.22,1,.36,1), visibility .3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast i { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* 13. RESPONSIVE                                                     */
/* ------------------------------------------------------------------ */
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 80px; }
  .hero__inner { gap: 2.25rem; }
}

@media (max-width: 640px) {
  .brand img { width: 34px; }
  .brand-text { font-size: .82rem; }
  .brand-text strong { font-size: .92rem; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .wa-fab__label { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

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

/* Pantallas anchas: aire */
@media (min-width: 1600px) {
  body { font-size: 1.1rem; }
}
