/* =========================================================================
   PIROCAN K9 — Sistema de diseño "Moderno Confianza"
   Sitio estático · mobile-first · todo vía design tokens
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* --- Paleta base --- */
  --c-ink:        #14181F; /* tinta noche  */
  --c-slate:      #283341; /* azul pizarra */
  --c-bone:       #F2F0EB; /* hueso        */
  --c-fog:        #C7CBD1; /* gris niebla  */
  --c-amber:      #F2A03D; /* acento       */
  --c-carbon:     #11141A; /* texto carbón */

  /* --- Derivados (color-mix con fallback implícito) --- */
  --c-ink-90:     color-mix(in srgb, var(--c-ink) 92%, #000);
  --c-slate-soft: color-mix(in srgb, var(--c-slate) 70%, var(--c-ink));
  --c-amber-700:  color-mix(in srgb, var(--c-amber) 80%, #6b3d00);
  --c-amber-300:  color-mix(in srgb, var(--c-amber) 60%, var(--c-bone));
  --c-line:       color-mix(in srgb, var(--c-bone) 14%, transparent);
  --c-line-strong:color-mix(in srgb, var(--c-bone) 26%, transparent);

  /* --- Roles semánticos (tema oscuro por defecto) --- */
  --surface:          var(--c-ink);
  --surface-2:        var(--c-slate);
  --surface-light:    var(--c-bone);
  --on-surface:       var(--c-bone);
  --on-surface-muted: var(--c-fog);
  --on-light:         var(--c-carbon);
  --on-light-muted:   #5a6470;   /* AA sobre hueso */
  --accent:           var(--c-amber);
  --accent-strong:    var(--c-amber-700);
  --on-accent:        var(--c-carbon); /* REGLA: texto oscuro sobre ámbar */

  /* --- Tipografía --- */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica fluida (min .. max entre 375px y 1440px) */
  --fs-300: clamp(0.78rem, 0.74rem + 0.18vw, 0.875rem);
  --fs-400: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);   /* cuerpo ≥16px móvil */
  --fs-500: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-600: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-700: clamp(1.75rem, 1.45rem + 1.4vw, 2.75rem);
  --fs-800: clamp(2.25rem, 1.7rem + 2.6vw, 4rem);
  --fs-900: clamp(2.75rem, 1.9rem + 4vw, 5.5rem);

  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-body:  1.7;          /* cuerpo ~1.7 */

  /* --- Espaciado (escala 4 / 8) --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Ritmo vertical de sección (fluido) */
  --section-y: clamp(3.5rem, 2.2rem + 6vw, 8rem);

  /* --- Radios (un único lenguaje) --- */
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-pill: 999px;

  /* --- Sombras (un único lenguaje) --- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25);
  --shadow:    0 18px 40px -18px rgba(0,0,0,.55);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.65);

  /* --- Easings & duraciones --- */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --t-fast:    .2s;
  --t:         .3s;
  --t-slow:    .6s;

  /* --- Layout --- */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* sin scroll horizontal */
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
p { text-wrap: pretty; }

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

::selection { background: var(--accent); color: var(--on-accent); }

/* -------------------------------------------------------------------------
   3. UTILIDADES DE LAYOUT
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--surface-light); color: var(--on-light); }
.section--slate { background: var(--surface-2); }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 4vw, 5rem); }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Eyebrow / label de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: var(--fs-300);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent);
  display: inline-block;
}
.section--light .eyebrow { color: var(--accent-strong); }

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-700); margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); color: var(--on-surface-muted); font-size: var(--fs-500); }
.section--light .section-head p { color: var(--on-light-muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead { font-size: var(--fs-500); color: var(--on-surface-muted); }

/* -------------------------------------------------------------------------
   4. BOTONES
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-400);
  letter-spacing: .01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease), color var(--t) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--primary:hover { background: var(--c-amber-300); }

.btn--secondary {
  --btn-bg: transparent; --btn-fg: var(--on-surface);
  border-color: var(--c-line-strong);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.section--light .btn--secondary { --btn-fg: var(--on-light); border-color: color-mix(in srgb, var(--on-light) 25%, transparent); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--accent);
  min-height: auto; padding: .4rem 0; border-radius: 0;
}
.btn--ghost::after { content: "→"; transition: transform var(--t) var(--ease); }
.btn--ghost:hover { transform: none; box-shadow: none; }
.btn--ghost:hover::after { transform: translateX(5px); }

.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-500); }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------------
   5. HEADER + NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--sp-4);
}
/* estado scrolled */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--c-ink) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}

/* Brand wordmark (centrado) */
.brand {
  grid-column: 2;
  display: inline-flex; align-items: baseline; gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .14em;
  color: var(--on-surface);
  white-space: nowrap;
}
.brand b { font-weight: 700; }
.brand .brand__k9 {
  font-size: .62em; letter-spacing: .2em;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: .1em .4em; transform: translateY(-.15em);
}

/* Nav desktop */
.nav-desktop { grid-column: 1; display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-desktop a {
  font-size: var(--fs-300); font-weight: 500; letter-spacing: .04em;
  color: var(--on-surface-muted);
  position: relative; padding-block: .4rem;
  transition: color var(--t) var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width var(--t) var(--ease);
}
.nav-desktop a:hover { color: var(--on-surface); }
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { width: 100%; }
.nav-desktop a[aria-current="page"] { color: var(--on-surface); }

.header-cta { grid-column: 3; justify-self: end; display: none; }

/* Hamburguesa */
.nav-toggle {
  grid-column: 3; justify-self: end;
  width: 46px; height: 46px; display: inline-grid; place-content: center;
  border-radius: var(--radius-sm); position: relative; z-index: 120;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--on-surface);
  border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay nav móvil */
.nav-mobile {
  position: fixed; inset: 0; z-index: 110;
  background: color-mix(in srgb, var(--c-ink) 96%, #000);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.nav-mobile a {
  font-family: var(--font-display); font-size: var(--fs-700); font-weight: 600;
  color: var(--on-surface); display: inline-block; padding: .3rem 0;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { color: var(--accent); transform: translateX(8px); }
.nav-mobile a.nav-mobile__cta {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: var(--fs-500);
  padding: var(--sp-3) var(--sp-5);
  white-space: nowrap;
  transform: none;
}
.nav-mobile a.nav-mobile__cta:hover { transform: none; }
.nav-mobile__meta { margin-top: var(--sp-6); color: var(--on-surface-muted); font-size: var(--fs-300); }

body.no-scroll { overflow: hidden; }

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 88svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-9);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: linear-gradient(155deg, var(--c-slate), var(--c-ink)); }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 55%, transparent) 0%, transparent 30%),
    linear-gradient(0deg, var(--c-ink) 4%, color-mix(in srgb, var(--c-ink) 78%, transparent) 38%, color-mix(in srgb, var(--c-ink) 30%, transparent) 70%),
    linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 80%, transparent) 0%, transparent 60%);
}
.hero__inner { max-width: 760px; }
.hero h1 {
  font-size: var(--fs-900); line-height: var(--lh-tight); font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub { margin-top: var(--sp-5); font-size: var(--fs-500); color: var(--c-fog); max-width: 52ch; }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero__scroll {
  margin-top: var(--sp-7); display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-300); letter-spacing: .15em; text-transform: uppercase;
  color: var(--on-surface-muted);
}
.hero__scroll .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease) infinite; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* -------------------------------------------------------------------------
   7. CREDENTIAL TICKER
   ------------------------------------------------------------------------- */
.ticker {
  background: var(--surface-2);
  border-block: 1px solid var(--c-line);
  padding-block: var(--sp-4);
  overflow: hidden; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--surface-2), transparent); }
.ticker__track {
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  width: max-content; animation: ticker 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-display); font-size: var(--fs-500);
  font-weight: 500; color: var(--on-surface);
  white-space: nowrap;
}
.ticker__item .em { color: var(--accent); }
.ticker__sep { color: var(--accent); opacity: .8; font-size: 1.4em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------
   8. FILOSOFÍA / SPLIT
   ------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
}
.split__media img { background: linear-gradient(155deg, var(--c-slate), var(--c-ink)); }
.split__media .tagcard {
  position: absolute; bottom: -1.2rem; right: -.6rem;
  background: var(--accent); color: var(--on-accent);
  padding: 1rem 1.3rem; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 220px;
}
.split__media .tagcard strong { font-family: var(--font-display); font-size: var(--fs-600); display: block; }
.split__media .tagcard span { font-size: var(--fs-300); font-weight: 600; opacity: .85; }

.split h2 { font-size: var(--fs-700); margin-top: var(--sp-3); }
.split p { margin-top: var(--sp-4); color: var(--on-surface-muted); }
.section--light .split p { color: var(--on-light-muted); }
.feature-list { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .ic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: grid; place-content: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.feature-list .ic svg { width: 16px; height: 16px; }
.feature-list b { font-family: var(--font-display); font-weight: 600; }
.feature-list span { color: var(--on-surface-muted); font-size: var(--fs-300); display: block; }
.section--light .feature-list span { color: var(--on-light-muted); }

/* -------------------------------------------------------------------------
   9. TARJETAS DE SERVICIO
   ------------------------------------------------------------------------- */
.cards { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.card {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--c-line-strong); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(155deg, var(--c-slate), var(--c-ink)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: var(--fs-300); font-weight: 600; letter-spacing: .02em;
  padding: .25rem .7rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c-fog) 12%, transparent); color: var(--on-surface-muted);
}
.card h3 { font-size: var(--fs-600); }
.card p { color: var(--on-surface-muted); font-size: var(--fs-400); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-2); }
.card__price { font-family: var(--font-display); font-weight: 600; color: var(--on-surface); }
.card__price small { display: block; font-size: var(--fs-300); color: var(--on-surface-muted); font-weight: 500; }

/* Tarjeta destacada "empieza aquí" */
.card--featured {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--on-accent); border-color: transparent;
}
.card--featured .card__badge {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2;
  background: var(--c-ink); color: var(--on-surface);
  font-family: var(--font-display); font-size: var(--fs-300); font-weight: 600;
  padding: .35rem .8rem; border-radius: var(--radius-pill);
}
.card--featured h3, .card--featured p { color: var(--on-accent); }
.card--featured .tag { background: color-mix(in srgb, var(--c-carbon) 14%, transparent); color: color-mix(in srgb, var(--c-carbon) 80%, var(--accent)); }
.card--featured .card__price { color: var(--on-accent); }
.card--featured .card__price small { color: color-mix(in srgb, var(--c-carbon) 70%, var(--accent)); }

/* -------------------------------------------------------------------------
   10. PROCESO / PASOS
   ------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4) var(--sp-5);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--c-line);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__num {
  counter-increment: step;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-700);
  color: var(--accent); line-height: 1; min-width: 2.5ch;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: var(--fs-600); }
.step p { margin-top: var(--sp-2); color: var(--on-surface-muted); }
.section--light .step p { color: var(--on-light-muted); }
.section--light .step { border-color: color-mix(in srgb, var(--on-light) 12%, transparent); }

/* -------------------------------------------------------------------------
   11. TESTIMONIOS (SLIDER)
   ------------------------------------------------------------------------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform var(--t-slow) var(--ease-out); will-change: transform; }
.testimonial {
  flex: 0 0 100%; padding: var(--sp-2);
}
.testimonial__inner {
  height: 100%;
  background: var(--surface-2); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.section--light .testimonial__inner { background: #fff; border-color: color-mix(in srgb, var(--on-light) 10%, transparent); box-shadow: var(--shadow-sm); }
.testimonial__stars { display: flex; gap: .2rem; color: var(--accent); }
.testimonial__stars svg { width: 18px; height: 18px; }
.testimonial blockquote { font-size: var(--fs-500); font-family: var(--font-display); font-weight: 500; line-height: 1.4; }
.section--light .testimonial blockquote { color: var(--on-light); }
.testimonial__author { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-content: center; font-family: var(--font-display); font-weight: 700;
}
.testimonial__author b { display: block; font-family: var(--font-display); }
.testimonial__author span { font-size: var(--fs-300); color: var(--on-surface-muted); }
.section--light .testimonial__author span { color: var(--on-light-muted); }

.slider__controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-5); gap: var(--sp-4); }
.slider__dots { display: flex; gap: .5rem; }
.slider__dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: var(--c-line-strong); transition: width var(--t) var(--ease), background var(--t) var(--ease);
}
.slider__dot[aria-current="true"] { width: 28px; border-radius: var(--radius-pill); background: var(--accent); }
.slider__arrows { display: flex; gap: .5rem; }
.slider__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--c-line-strong); color: var(--on-surface);
  display: grid; place-content: center;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.slider__arrow:hover { border-color: var(--accent); color: var(--accent); }
.section--light .slider__arrow { color: var(--on-light); border-color: color-mix(in srgb, var(--on-light) 20%, transparent); }
.slider__arrow svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------
   12. FAQ ACORDEÓN
   ------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; }
.faq__item { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; transition: border-color var(--t) var(--ease); }
.faq__item:has([aria-expanded="true"]) { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.section--light .faq__item { background: #fff; border-color: color-mix(in srgb, var(--on-light) 10%, transparent); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1.1rem, 3vw, 1.6rem);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-500);
  color: var(--on-surface);
}
.section--light .faq__q { color: var(--on-light); }
.faq__icon { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--accent);
  transform: translateY(-50%); transition: transform var(--t) var(--ease);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translateY(-50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 clamp(1.1rem, 3vw, 1.6rem) clamp(1.1rem, 2.5vw, 1.5rem); color: var(--on-surface-muted); }
.section--light .faq__a p { color: var(--on-light-muted); }

/* -------------------------------------------------------------------------
   13. CTA BANNER + CONTACTO
   ------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--on-accent); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem); text-align: center;
}
.cta-banner h2 { font-size: var(--fs-800); color: var(--on-accent); }
.cta-banner p { margin: var(--sp-4) auto 0; max-width: 48ch; color: color-mix(in srgb, var(--c-carbon) 78%, var(--accent)); font-size: var(--fs-500); }
.cta-banner .hero__actions { justify-content: center; margin-top: var(--sp-6); }
.cta-banner .btn--secondary { --btn-fg: var(--on-accent); border-color: color-mix(in srgb, var(--c-carbon) 35%, transparent); }
.cta-banner .btn--secondary:hover { background: color-mix(in srgb, var(--c-carbon) 12%, transparent); color: var(--on-accent); border-color: var(--c-carbon); }

/* Contacto */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.contact-info { display: grid; gap: var(--sp-5); align-content: start; }
.contact-info__item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info__item .ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius);
  display: grid; place-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.contact-info__item .ic svg { width: 20px; height: 20px; }
.contact-info__item b { font-family: var(--font-display); display: block; }
.contact-info__item a, .contact-info__item p { color: var(--on-surface-muted); }
.contact-info__item a:hover { color: var(--accent); }

/* Formulario */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-300); font-weight: 600; font-family: var(--font-display); letter-spacing: .02em; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  min-height: 48px; width: 100%;
  padding: .75rem 1rem;
  background: color-mix(in srgb, var(--c-bone) 5%, transparent);
  border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-sm);
  color: var(--on-surface);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; padding-top: .85rem; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--c-fog) 55%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.field--error input, .field--error select, .field--error textarea { border-color: #ff6b6b; }
.field__error { font-size: var(--fs-300); color: #ff8a8a; min-height: 0; }
.field--error .field__error { min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status {
  font-size: var(--fs-300); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--on-surface);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn[data-loading="true"] { pointer-events: none; opacity: .75; }

/* Panel oscuro de formulario sobre fondo claro */
.section--light .field input, .section--light .field select, .section--light .field textarea {
  background: #fff; border-color: color-mix(in srgb, var(--on-light) 18%, transparent); color: var(--on-light);
}
.section--light .field input::placeholder, .section--light .field textarea::placeholder { color: var(--on-light-muted); }
.section--light .contact-info__item a, .section--light .contact-info__item p { color: var(--on-light-muted); }

/* -------------------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { background: var(--c-ink-90); border-top: 1px solid var(--c-line); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-7); }
.footer-brand { display: grid; gap: var(--sp-4); max-width: 36ch; }
.footer-logo { display: inline-block; }
/* Logo real del cliente (vertical, blanco sobre negro): el blend "screen"
   elimina el fondo negro y deja solo el logo. Los márgenes negativos recortan
   el espacio vacío del PNG para integrarlo bien. */
.footer-logo__img {
  width: clamp(150px, 46%, 188px); height: auto;
  mix-blend-mode: screen;
  margin: -1.1rem 0 -2.1rem -1.4rem;
}
@media (prefers-reduced-transparency: reduce) { .footer-logo__img { mix-blend-mode: normal; } }
.footer-brand p { color: var(--on-surface-muted); font-size: var(--fs-300); }

.footer-col h4 { font-family: var(--font-display); font-size: var(--fs-300); letter-spacing: .18em; text-transform: uppercase; color: var(--on-surface-muted); margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: var(--sp-3); }
.footer-col a { color: var(--on-surface-muted); font-size: var(--fs-400); transition: color var(--t) var(--ease); }
.footer-col a:hover { color: var(--accent); }

.social { display: flex; gap: .7rem; }
.social a {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-line-strong); color: var(--on-surface);
  display: grid; place-content: center;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between;
  font-size: var(--fs-300); color: var(--on-surface-muted);
}
.footer-bottom a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
   15. WHATSAPP FLOTANTE
   ------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90; display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #06250f;
  padding: .8rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow); font-weight: 700; font-family: var(--font-display);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), padding var(--t) var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex: 0 0 auto; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--t) var(--ease); }
.wa-float:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); padding-right: 1.2rem; }
.wa-float:hover .wa-float__label { max-width: 180px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, #25D366 60%, transparent);
  animation: wa-ping 2.4s var(--ease) infinite; z-index: -1;
}
@keyframes wa-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #25D366 55%, transparent); } 70%,100% { box-shadow: 0 0 0 18px transparent; } }

/* -------------------------------------------------------------------------
   16. COOKIE BANNER
   ------------------------------------------------------------------------- */
.cookie {
  position: fixed; inset: auto 0 0 0; z-index: 95;
  background: color-mix(in srgb, var(--c-ink) 96%, #000);
  border-top: 2px solid var(--accent);
  padding: var(--sp-4) var(--gutter);
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%); transition: transform var(--t) var(--ease);
  box-shadow: 0 -10px 40px -20px #000;
}
.cookie.is-visible { transform: none; }
.cookie__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
}
.cookie p { font-size: var(--fs-300); color: var(--on-surface-muted); max-width: 70ch; }
.cookie a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: var(--sp-3); align-items: center; }
.cookie .btn { min-height: 42px; padding: .55rem 1.4rem; }

/* -------------------------------------------------------------------------
   17. REVEAL ON SCROLL
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
/* Fallback: si no hay JS, todo visible */
.no-js .reveal { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   17b. PÁGINAS INTERNAS (page-hero, breadcrumb, servicio, sobre-mí, legal)
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--surface-2); border-bottom: 1px solid var(--c-line);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-800); max-width: 18ch; }
.page-hero p { margin-top: var(--sp-4); color: var(--on-surface-muted); font-size: var(--fs-500); max-width: 60ch; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-300); color: var(--on-surface-muted); margin-bottom: var(--sp-4); }
.breadcrumb a { transition: color var(--t) var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--on-surface); }
.breadcrumb .sep { opacity: .5; }

/* Detalle de servicio */
.service { scroll-margin-top: calc(var(--header-h) + 1rem); }
.service + .service { margin-top: var(--section-y); }
.service__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--c-slate), var(--c-ink));
}
.service h2 { font-size: var(--fs-700); margin-top: var(--sp-3); }
.service > * + p, .service__body > * + p { margin-top: var(--sp-4); }
.service__body > p { color: var(--on-surface-muted); }

.check-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .ic { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-content: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); margin-top: .15rem; }
.check-list .ic svg { width: 14px; height: 14px; }

.service-panel {
  margin-top: var(--sp-6); border: 1px solid var(--c-line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--c-bone) 4%, transparent); padding: var(--sp-5); display: grid; gap: var(--sp-4);
}
.service-panel__row { display: flex; align-items: center; gap: var(--sp-4); justify-content: space-between; }
.service-panel__row + .service-panel__row { border-top: 1px solid var(--c-line); padding-top: var(--sp-4); }
.service-panel__row .k { display: flex; align-items: center; gap: .6rem; color: var(--on-surface-muted); font-size: var(--fs-300); }
.service-panel__row .k svg { width: 18px; height: 18px; color: var(--accent); }
.service-panel__row .v { font-family: var(--font-display); font-weight: 600; text-align: right; }

/* Sobre mí: stats + valores */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.stat b { font-family: var(--font-display); font-size: var(--fs-800); color: var(--accent); display: block; line-height: 1; }
.stat span { color: var(--on-surface-muted); font-size: var(--fs-300); }
.values { display: grid; gap: var(--sp-5); }
.value { padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--surface-2); }
.value .ic { width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); margin-bottom: var(--sp-4); }
.value .ic svg { width: 22px; height: 22px; }
.value h3 { font-size: var(--fs-600); }
.value p { margin-top: var(--sp-2); color: var(--on-surface-muted); }

/* Legal / prose */
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: var(--fs-600); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-500); margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--on-surface-muted); }
.prose > p + p { margin-top: var(--sp-4); }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { font-size: var(--fs-300); color: var(--on-surface-muted); }
.placeholder {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  padding: .05em .4em; border-radius: 5px; color: var(--on-surface); font-weight: 600;
}

/* -------------------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --header-h: 80px; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: auto auto; gap: var(--sp-6) var(--sp-7); }
  .step:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--c-line); padding-bottom: var(--sp-5); }
  .step:nth-child(2) { border-bottom: 0; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .testimonial { flex-basis: 50%; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 92svh; }
}

/* Container query: tarjeta de servicio ancha → layout horizontal del pie */
@container (min-width: 420px) {
  .card__body { padding: var(--sp-6); }
}

/* -------------------------------------------------------------------------
   19. PREFERS-REDUCED-MOTION  &  PRINT
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* -------------------------------------------------------------------------
   20. VER MÁS en testimonios (solo móvil)
   ------------------------------------------------------------------------- */
/* Botón siempre oculto en desktop */
.btn-ver-mas { display: none; }

@media (max-width: 767px) {
  .blockquote--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-ver-mas {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: var(--fs-300);
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--sp-2);
  }
  .btn-ver-mas:hover { opacity: .8; }
}
