/* =============================================================================
   base.css — Sistema de diseño compartido (portesylimpiezas.es)
   Reset + Design Tokens + Layout + Componentes comunes
   ========================================================================== */

/* ---------- Tipografía autoalojada (Inter) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
}

/* ---------- Design Tokens (comunes) ---------- */
:root {
  /* Tipografía */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Radios */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Sombras de elevación */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 10px 24px -6px rgba(15, 23, 42, 0.12);
  --shadow-3: 0 12px 24px -8px rgba(15, 23, 42, 0.16), 0 28px 60px -20px rgba(15, 23, 42, 0.28);

  /* Movimiento */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.45s;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --promo-h: 44px;

  /* Foco accesible */
  --focus-ring: 0 0 0 3px var(--accent-soft, rgba(2, 62, 138, 0.35));

  /* Datos de contacto */
  --phone-display: "+34 647 08 14 62";
}

/* ---------- Utilidades ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head--center .eyebrow::before {
  display: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-soft);
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-shadow: var(--accent-shadow, 0 10px 24px -10px rgba(0, 0, 0, 0.5));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: var(--btn-shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow), var(--focus-ring);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--heading);
  --btn-shadow: inset 0 0 0 2px var(--border-strong, rgba(0, 0, 0, 0.18));
}

.btn--ghost:hover {
  --btn-bg: var(--surface);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--accent);
  --btn-shadow: var(--shadow-2);
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong, var(--accent));
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Tarjetas ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1.1rem;
  background: var(--accent-soft);
  color: var(--accent-strong, var(--accent));
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Promo bar cross-service ---------- */
.promo-bar {
  position: relative;
  z-index: 90;
  min-height: var(--promo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem var(--gutter);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--promo-bg);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.promo-bar a {
  color: var(--promo-accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.promo-bar a:hover {
  color: #fff;
}

/* Colapsa a botón flotante al hacer scroll */
body.promo-collapsed .promo-bar {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.promo-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--promo-fab-bg, #111827);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out);
}

.promo-fab:hover {
  color: var(--promo-accent, #fff);
}

body.promo-collapsed .promo-fab {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.promo-fab__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--promo-accent, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--promo-accent, #fff) 30%, transparent);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 10px 24px -8px rgba(37, 211, 102, 0.65),
    0 18px 40px -18px rgba(15, 23, 42, 0.45);
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: waPulse 2.6s var(--ease-out) infinite;
  pointer-events: none;
}

.wa-fab svg {
  width: 30px;
  height: 30px;
}

.wa-fab:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.05);
}

.wa-fab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, var(--focus-ring);
}

.wa-fab__tip {
  position: absolute;
  right: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease-out);
}

.wa-fab:hover .wa-fab__tip,
.wa-fab:focus-visible .wa-fab__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  60% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 760px) {
  .wa-fab {
    width: 56px;
    height: 56px;
  }
  .wa-fab svg {
    width: 27px;
    height: 27px;
  }
  .wa-fab__tip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab::before {
    animation: none;
  }
  .wa-fab,
  .wa-fab:hover {
    transition: none;
    transform: none;
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--accent-shadow, var(--shadow-1));
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__img {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Logo del header: máximo tamaño sin alterar la altura del nav (72px) */
.site-header .brand__img {
  height: 68px;
}

@media (max-width: 980px) {
  .site-header .brand__img {
    height: 62px;
  }
}

.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--heading);
  background: var(--accent-soft);
}

.nav a[aria-current="page"] {
  color: var(--accent-strong, var(--accent));
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  place-items: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--heading);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: inherit;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

body.menu-open .nav-toggle span {
  background: transparent;
}

body.menu-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer móvil */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  width: min(86vw, 360px);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

body.menu-open .drawer {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.drawer__close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer nav a {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--heading);
}

.drawer nav a[aria-current="page"],
.drawer nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong, var(--accent));
}

.drawer .btn {
  margin-top: 0.5rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

body.menu-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero interior ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  background:
    radial-gradient(900px 420px at 12% 0%, var(--hero-glow-a), transparent 60%),
    radial-gradient(760px 380px at 88% 10%, var(--hero-glow-b), transparent 62%),
    linear-gradient(180deg, var(--hero-bg-a), var(--hero-bg-b));
  color: var(--hero-fg, var(--text));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Ilustración animada del hero */
.hero__side {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-content: center;
}

.hero__art {
  width: min(100%, 430px);
  margin-inline: auto;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  pointer-events: none;
  user-select: none;
  animation: heroArtIn 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  animation: heroArtFloat 9s 1.5s ease-in-out infinite;
}

@keyframes heroArtIn {
  to {
    opacity: var(--hero-art-opacity, 0.9);
    transform: translateY(0) scale(1);
  }
}

@keyframes heroArtFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 760px) {
  .hero__art {
    width: min(100%, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art {
    animation: none;
    opacity: var(--hero-art-opacity, 0.9);
    transform: none;
  }
  .hero__art img {
    animation: none;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  color: var(--hero-title, #fff);
  margin-bottom: 1rem;
}

.hero .lead {
  color: var(--hero-fg, rgba(255, 255, 255, 0.86));
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  color: var(--hero-fg, rgba(255, 255, 255, 0.86));
  font-size: 0.93rem;
  font-weight: 600;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__points svg {
  width: 18px;
  height: 18px;
  color: var(--hero-accent, #fff);
  flex: none;
}

.hero__panel {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  padding: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
}

.hero__panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.hero__panel > p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* ---------- Carrusel de imágenes del hero ---------- */
.hero-carousel {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  background: rgba(10, 12, 16, 0.35);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}

.hero-carousel__viewport {
  position: relative;
  height: clamp(230px, 30vw, 420px);
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0s;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.18) 0%, rgba(6, 8, 12, 0) 42%, rgba(6, 8, 12, 0.78) 100%);
  pointer-events: none;
}

.hero-carousel__caption {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  bottom: 1.15rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
  max-width: min(46rem, calc(100% - 8rem));
  color: #fff;
  pointer-events: none;
}

.hero-carousel__caption strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-carousel__caption span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 12, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.2s var(--ease);
}

.hero-carousel__arrow--prev {
  left: max(0.75rem, calc((100% - var(--container)) / 2));
}

.hero-carousel__arrow--next {
  right: max(0.75rem, calc((100% - var(--container)) / 2));
}

.hero-carousel:hover .hero-carousel__arrow,
.hero-carousel:focus-within .hero-carousel__arrow {
  opacity: 1;
}

.hero-carousel__arrow:hover {
  background: rgba(10, 12, 16, 0.78);
}

.hero-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.hero-carousel__dots {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-carousel__dot[aria-current="true"] {
  background: #fff;
  transform: scale(1.35);
}

.hero-carousel__arrow:focus-visible,
.hero-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (hover: none) {
  .hero-carousel__arrow {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .hero-carousel__caption span {
    display: none;
  }
  .hero-carousel__dots {
    bottom: 0.9rem;
  }
  .hero-carousel__caption {
    bottom: 0.85rem;
  }
}

/* ---------- Franja de datos ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-strong, var(--accent));
  line-height: 1.1;
}

.stat span {
  font-size: 0.86rem;
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- Bloque destacado ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-1);
}

.panel--accent {
  background: linear-gradient(140deg, var(--accent), var(--accent-strong, var(--accent)));
  border-color: transparent;
  color: #fff;
}

.panel--accent h2,
.panel--accent h3 {
  color: #fff;
}

.panel--accent p {
  color: rgba(255, 255, 255, 0.9);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* ---------- Listas con check ---------- */
.check-list {
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-soft);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--accent-strong, var(--accent));
}

/* ---------- Sección del responsable ---------- */
.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.8rem, 4.5vw, 3.5rem);
  align-items: center;
}

.founder__media {
  position: relative;
}

.founder__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  background: var(--surface);
}

.founder__badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  max-width: calc(100% - 1.8rem);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(12, 14, 18, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.founder__body h2 {
  margin-bottom: 1rem;
}

.founder__body .lead {
  margin-bottom: 1rem;
}

.founder__body > p:not(.eyebrow):not(.lead) {
  color: var(--text-soft);
}

.founder__body .check-list {
  margin-top: 1.4rem;
}

.founder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

@media (max-width: 900px) {
  .founder {
    grid-template-columns: 1fr;
  }
  .founder__media {
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ---------- Testimonios ---------- */
.stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.testimonial blockquote {
  font-size: 1.02rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

.testimonial figcaption {
  font-weight: 700;
  color: var(--heading);
}

.testimonial figcaption span {
  display: block;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* ---------- Formularios ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
}

.field .hint {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong, var(--border));
  background: var(--bg-input, #fff);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: var(--valid, #2a9d8f);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error, #e63946);
}

.field__error {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--error, #e63946);
  min-height: 1.1em;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.form-consent {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-consent a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- CTA final ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong, var(--accent)));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-3);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.7rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
  margin: 0 auto 1.6rem;
}

.cta-band .hero__actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--footer-bg, #0f172a);
  color: var(--footer-fg, rgba(255, 255, 255, 0.78));
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.site-footer h3,
.site-footer .brand {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer p {
  font-size: 0.93rem;
  max-width: 38ch;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- Ficha de servicio (compartida) ---------- */
.service-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.service-spec + .service-spec {
  margin-top: 1.4rem;
}

.service-spec__meta {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
}

.service-spec__meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 0.55rem;
}

.service-spec__meta div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-spec__meta span:first-child {
  color: var(--text-soft);
  font-weight: 600;
}

.service-spec__meta strong {
  color: var(--heading);
  text-align: right;
}

@media (max-width: 900px) {
  .service-spec {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.24s;
}
.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.32s;
}
.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive base ---------- */
@media (max-width: 980px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__grid,
  .split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .nav,
  .header-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
}

@media (max-width: 760px) {
  .form-grid,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .promo-bar {
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .promo-bar .promo-extra {
    display: none;
  }
}
