/* =========================================================================
   Construcciones Kraft — hoja de estilos principal
   -------------------------------------------------------------------------
   Índice
   1. Reset y ajustes base
   2. Variables de diseño (colores, tipografías, sombras)
   3. Tipografía y utilidades
   4. Estructura: contenedor y secciones
   5. Botones
   6. Cabecera y navegación
   7. Portada (héroe)
   8. Barra de confianza
   9. Servicios
  10. Comparador antes / después
  11. Galería y visor de fotos
  12. Banda de llamada a la acción
  13. Proceso de trabajo
  14. Nuestra forma de trabajar
  15. Preguntas frecuentes
  16. Contacto y formulario
  17. Pie de página
  18. Botones flotantes
  19. Página 404
  20. Animaciones de entrada
  ========================================================================= */

/* ---------------------------------------------------------------
   1. Reset y ajustes base
   --------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

/* ---------------------------------------------------------------
   2. Variables de diseño
   --------------------------------------------------------------- */

:root {
  /* Marca */
  --brand-50: #eef4ff;
  --brand-100: #d9e6ff;
  --brand-200: #bcd2ff;
  --brand-300: #8eb5ff;
  --brand-400: #598cff;
  --brand-500: #3363f7;
  --brand-600: #1d43e4;
  --brand-700: #1733c4;
  --brand-800: #182d9e;
  --brand-900: #1a2c7d;

  /* Acento */
  --sun-400: #fbbf24;
  --sun-500: #f59e0b;

  /* Neutros */
  --ink-950: #080c14;
  --ink-900: #0d1320;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #0d1320;
  --text-muted: #5a6478;
  --border: #e4e8ef;
  --whatsapp: #25d366;

  /* Tipografías */
  --font-body: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-display: "Sora", "Poppins", ui-sans-serif, system-ui, sans-serif;

  /* Formas */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-card: 0 1px 2px rgb(13 19 32 / 0.04),
    0 12px 32px -12px rgb(13 19 32 / 0.18);
  --shadow-lift: 0 2px 4px rgb(13 19 32 / 0.06),
    0 28px 60px -24px rgb(13 19 32 / 0.32);

  /* Trama técnica que se repite en los fondos oscuros */
  --grid-pattern: linear-gradient(
      to right,
      rgb(255 255 255 / 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgb(255 255 255 / 0.06) 1px, transparent 1px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background-color: var(--brand-600);
  color: #fff;
}

/* ---------------------------------------------------------------
   3. Tipografía y utilidades
   --------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.visually-hidden {
  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: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--brand-600);
  border-radius: var(--radius-full);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Biblioteca de iconos: se oculta sin display:none para que los degradados
   definidos dentro sigan resolviéndose al usarlos con <use> */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Todos los iconos SVG heredan el tamaño del texto salvo indicación propia */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.text-gradient {
  background-image: linear-gradient(
    100deg,
    var(--brand-400) 0%,
    var(--sun-400) 60%,
    var(--brand-300) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------
   4. Estructura: contenedor y secciones
   --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 80px;
}

.section--tight-top {
  padding-top: 0;
}

.section--soft {
  background-color: var(--bg-soft);
}

.section--dark {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-950);
  color: #fff;
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-desc {
  color: rgb(255 255 255 / 0.7);
}

.pattern {
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  background-size: 56px 56px;
  opacity: 0.3;
  pointer-events: none;
}

.glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 540px;
  height: 540px;
  transform: translateX(-50%);
  background-color: rgb(29 67 228 / 0.25);
  filter: blur(130px);
  border-radius: 50%;
  pointer-events: none;
}

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
  background-color: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-full);
}

.eyebrow--light {
  color: var(--brand-200);
  background-color: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.15);
}

.section-title {
  margin-top: 1.25rem;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.75rem);
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------
   5. Botones
   --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

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

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

.btn .icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn--wa {
  color: #fff;
  background-color: var(--whatsapp);
  box-shadow: 0 18px 40px -18px rgb(37 211 102 / 0.9);
}

.btn--wa:hover {
  background-color: #1fbe5b;
}

.btn--outline {
  color: var(--text);
  border-color: var(--border);
  background-color: var(--white);
}

.btn--outline:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.btn--outline-light {
  color: #fff;
  border-color: rgb(255 255 255 / 0.28);
  background-color: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background-color: rgb(255 255 255 / 0.16);
}

.btn--dark {
  color: #fff;
  background-color: var(--ink-900);
}

.btn--dark:hover {
  background-color: var(--brand-700);
}

.btn--light {
  color: var(--brand-700);
  background-color: #fff;
}

.btn--lg {
  padding: 1.05rem 1.9rem;
  font-size: 1.02rem;
}

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

/* ---------------------------------------------------------------
   6. Cabecera y navegación
   --------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background-color: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 0 rgb(13 19 32 / 0.08),
    0 10px 30px -24px rgb(13 19 32 / 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo__mark {
  width: 44px;
  height: 44px;
}

.logo__text {
  line-height: 1.05;
}

.logo__top {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
}

.logo__bottom {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-300);
  transition: color 0.3s ease;
}

.is-scrolled .logo__top,
.is-open .logo__top {
  color: var(--text);
}

.is-scrolled .logo__bottom,
.is-open .logo__bottom {
  color: var(--brand-600);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.85);
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  background-color: rgb(255 255 255 / 0.12);
  color: #fff;
}

.is-scrolled .nav__link {
  color: rgb(13 19 32 / 0.75);
}

.is-scrolled .nav__link:hover {
  background-color: var(--brand-50);
  color: var(--brand-700);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.header-phone:hover {
  background-color: rgb(255 255 255 / 0.12);
}

.is-scrolled .header-phone {
  color: var(--text);
  border-color: var(--border);
}

.is-scrolled .header-phone:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background-color: transparent;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--whatsapp);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 24px -12px rgb(37 211 102 / 0.9);
  transition: transform 0.2s ease;
}

.header-cta:hover {
  transform: scale(1.03);
}

.header-cta__label {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-full);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.is-scrolled .menu-toggle,
.is-open .menu-toggle {
  color: var(--text);
  border-color: var(--border);
}

.menu-toggle__close {
  display: none;
}

.is-open .menu-toggle__open {
  display: none;
}

.is-open .menu-toggle__close {
  display: block;
}

.mobile-menu {
  display: none;
  background-color: #fff;
  border-top: 1px solid var(--border);
}

.site-header.is-open .mobile-menu {
  display: block;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  padding-block: 0.5rem 1.25rem;
}

.mobile-menu__link {
  padding-block: 0.9rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__link:last-of-type {
  border-bottom: 0;
}

.mobile-menu .btn {
  margin-top: 1rem;
}

/* ---------------------------------------------------------------
   7. Portada (héroe)
   --------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  padding-top: 7rem;
  padding-bottom: 3.5rem;
  background-color: var(--ink-950);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    rgb(8 12 20 / 0.94) 0%,
    rgb(8 12 20 / 0.86) 38%,
    rgb(8 12 20 / 0.5) 68%,
    rgb(8 12 20 / 0.38) 100%
  );
}

.hero__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: -1;
  height: 220px;
  background: linear-gradient(to top, var(--ink-950), transparent);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grid-pattern);
  background-size: 56px 56px;
  opacity: 0.4;
}

.hero__content {
  max-width: 640px;
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.9);
  background-color: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.chip__dot {
  width: 6px;
  height: 6px;
  background-color: var(--sun-400);
  border-radius: 50%;
}

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.15rem);
  line-height: 1.04;
}

.hero__text {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: rgb(255 255 255 / 0.78);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.82);
}

.check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--sun-400);
  background-color: rgb(245 158 11 / 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.check-dot .icon {
  width: 13px;
  height: 13px;
}

/* ---------------------------------------------------------------
   8. Barra de confianza
   --------------------------------------------------------------- */

.trust {
  background-color: var(--ink-950);
  padding-bottom: 64px;
}

.trust__grid {
  display: grid;
  gap: 1px;
  background-color: rgb(255 255 255 / 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trust__item {
  padding: 1.6rem;
  background-color: var(--ink-950);
}

.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--brand-300);
  background-color: rgb(51 99 247 / 0.16);
  border-radius: var(--radius-sm);
}

.trust__title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.trust__text {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.6);
}

/* ---------------------------------------------------------------
   9. Servicios
   --------------------------------------------------------------- */

.services__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.07);
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(8 12 20 / 0.75),
    rgb(8 12 20 / 0.08) 60%,
    transparent
  );
}

.service-card__icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--brand-600);
  background-color: rgb(255 255 255 / 0.95);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 20px -10px rgb(13 19 32 / 0.6);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.service-card__summary {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-card__list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.service-card__list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgb(13 19 32 / 0.8);
}

.service-card__list .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--brand-600);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-700);
  transition: color 0.2s ease;
}

.service-card__link:hover {
  color: var(--brand-500);
}

.service-card__link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.service-card__link:hover .icon {
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------------
   10. Comparador antes / después
   --------------------------------------------------------------- */

.compare {
  position: relative;
  max-width: 960px;
  margin: 3rem auto 0;
  overflow: hidden;
  background-color: var(--ink-950);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  user-select: none;
}

.compare__frame {
  position: relative;
  aspect-ratio: 16 / 10;
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare__img--before {
  clip-path: inset(0 50% 0 0);
}

.compare__tag {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.compare__tag--before {
  left: 1rem;
  background-color: rgb(8 12 20 / 0.75);
}

.compare__tag--after {
  right: 1rem;
  background-color: rgb(29 67 228 / 0.9);
}

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 2px;
  background-color: rgb(255 255 255 / 0.9);
  box-shadow: 0 0 18px rgb(0 0 0 / 0.45);
  pointer-events: none;
}

.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background-color: rgb(255 255 255 / 0.2);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ---------------------------------------------------------------
   11. Galería y visor de fotos
   --------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(13 19 32 / 0.7);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.filter-btn[aria-pressed="true"] {
  color: #fff;
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  box-shadow: 0 12px 26px -16px var(--brand-700);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-soft);
  border-radius: var(--radius);
  padding: 0;
}

.gallery__item[hidden] {
  display: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  color: #fff;
  background: linear-gradient(
    to top,
    rgb(8 12 20 / 0.88),
    rgb(8 12 20 / 0.15) 70%,
    transparent
  );
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery__zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-color: rgb(255 255 255 / 0.2);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

/* Visor a pantalla completa. El elemento <dialog> trae márgenes y anchos
   máximos propios del navegador: se anulan para que ocupe toda la pantalla. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 1rem;
  background-color: rgb(8 12 20 / 0.95);
  backdrop-filter: blur(6px);
  border: 0;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background-color: rgb(8 12 20 / 0.9);
}

.lightbox__figure {
  max-width: 1000px;
  margin: 0;
}

.lightbox__img {
  max-height: 76svh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.9);
}

.lightbox__caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.72);
}

.lightbox__counter {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.45);
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background-color: rgb(255 255 255 / 0.12);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.lightbox__btn:hover {
  background-color: rgb(255 255 255 / 0.24);
}

.lightbox__btn--close {
  top: 1rem;
  right: 1rem;
}

.lightbox__btn--prev {
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
}

.lightbox__btn--next {
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
}

/* ---------------------------------------------------------------
   12. Banda de llamada a la acción
   --------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    115deg,
    var(--brand-700) 0%,
    var(--brand-600) 45%,
    var(--brand-500) 100%
  );
}

.cta-band__glow {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  background-color: rgb(251 191 36 / 0.28);
  filter: blur(90px);
  border-radius: 50%;
}

.cta-band__inner {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band__title {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.4rem);
  color: #fff;
}

.cta-band__text {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgb(255 255 255 / 0.82);
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------
   13. Proceso de trabajo
   --------------------------------------------------------------- */

.process__list {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.process__item {
  position: relative;
  height: 100%;
  padding: 1.6rem;
  background-color: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.process__item:hover {
  background-color: rgb(255 255 255 / 0.08);
  border-color: rgb(89 140 255 / 0.4);
}

.process__step {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.16);
}

.process__title {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.process__text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.62);
}

/* ---------------------------------------------------------------
   14. Nuestra forma de trabajar
   --------------------------------------------------------------- */

.method {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.method__title {
  margin-top: 1.25rem;
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.6rem);
}

.method__intro {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.method__list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.method__item {
  display: flex;
  gap: 1rem;
}

.method__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  flex-shrink: 0;
  color: #fff;
  background-color: var(--brand-600);
  border-radius: 50%;
}

.method__check .icon {
  width: 16px;
  height: 16px;
}

.method__item h3 {
  font-size: 1rem;
  font-weight: 600;
}

.method__item p {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.method__media {
  position: relative;
}

.method__photo {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}

.method__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.method__inset {
  position: absolute;
  bottom: -24px;
  left: -8px;
  width: 176px;
  overflow: hidden;
  border: 4px solid var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.method__inset img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.method__badge {
  position: absolute;
  top: -20px;
  right: -8px;
  padding: 1rem 1.25rem;
  color: var(--ink-950);
  background-color: var(--sun-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.method__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.method__badge span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.82;
}

/* ---------------------------------------------------------------
   15. Preguntas frecuentes
   --------------------------------------------------------------- */

.faq {
  max-width: 780px;
  margin: 3rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item.is-open {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-card);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.35rem;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
}

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: rgb(13 19 32 / 0.6);
  background-color: var(--bg-soft);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  color: #fff;
  background-color: var(--brand-600);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer > div {
  overflow: hidden;
}

.faq__answer p {
  padding: 0 1.35rem 1.35rem;
  font-size: 0.97rem;
  color: var(--text-muted);
}

.faq__more {
  margin-top: 2.5rem;
  text-align: center;
}

.faq__more a {
  font-weight: 600;
  color: var(--brand-700);
  text-underline-offset: 4px;
}

.faq__more a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   16. Contacto y formulario
   --------------------------------------------------------------- */

.contact__grid {
  display: grid;
  gap: 3rem;
}

.contact__title {
  margin-top: 1.25rem;
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.6rem);
  color: #fff;
}

.contact__text {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgb(255 255 255 / 0.7);
}

.contact__cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background-color: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

a.contact-card:hover {
  background-color: rgb(255 255 255 / 0.08);
  border-color: rgb(89 140 255 / 0.5);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.contact-card__icon--wa {
  color: var(--whatsapp);
  background-color: rgb(37 211 102 / 0.14);
}

.contact-card__icon--tel {
  color: var(--brand-300);
  background-color: rgb(51 99 247 / 0.16);
}

.contact-card__icon--map {
  color: var(--sun-400);
  background-color: rgb(245 158 11 / 0.14);
}

.contact-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.45);
}

.contact-card__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.form {
  padding: 1.6rem;
  background-color: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.form__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.form__subtitle {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: rgb(255 255 255 / 0.55);
}

.form__fields {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.75);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  color: #fff;
  background-color: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgb(255 255 255 / 0.4);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  background-color: rgb(255 255 255 / 0.1);
}

.field select {
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px 20px;
}

.field select option {
  color: #fff;
  background-color: var(--ink-900);
}

.form .btn {
  margin-top: 1.5rem;
}

.form__note {
  margin-top: 0.75rem;
  font-size: 0.76rem;
  text-align: center;
  color: rgb(255 255 255 / 0.42);
}

/* ---------------------------------------------------------------
   17. Pie de página
   --------------------------------------------------------------- */

.site-footer {
  padding-block: 56px 32px;
  background-color: var(--ink-950);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.7);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__about {
  max-width: 24rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.55);
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.42);
}

.site-footer__links {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.site-footer__links a {
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.site-footer__area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.55);
}

.site-footer__area .icon {
  color: var(--brand-300);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.4);
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

/* ---------------------------------------------------------------
   18. Botones flotantes
   --------------------------------------------------------------- */

.fabs {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.fab-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.fab-top:hover {
  color: var(--brand-700);
  border-color: var(--brand-300);
}

.fab-wa {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background-color: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 18px 36px -14px rgb(37 211 102 / 0.95);
  transition: transform 0.2s ease;
}

.fab-wa:hover {
  transform: scale(1.06);
}

.fab-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgb(37 211 102 / 0.4);
  animation: ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.fab-wa .icon {
  position: relative;
  width: 28px;
  height: 28px;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------
   19. Página 404
   --------------------------------------------------------------- */

.error-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 4rem 1.25rem;
  overflow: hidden;
  text-align: center;
  background-color: var(--ink-950);
  color: #fff;
}

.error-page__inner {
  position: relative;
}

.error-page__code {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: rgb(255 255 255 / 0.1);
}

.error-page__title {
  margin-top: -1.5rem;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.4rem);
}

.error-page__text {
  max-width: 30rem;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  color: rgb(255 255 255 / 0.62);
}

.error-page__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.error-page__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 0.6);
  transition: color 0.2s ease;
}

.error-page__phone:hover {
  color: #fff;
}

/* ---------------------------------------------------------------
   20. Animaciones de entrada
   --------------------------------------------------------------- */

/* Solo se ocultan si hay JavaScript: sin él, todo se ve igualmente. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   Puntos de ruptura
   ========================================================================= */

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }

  .section {
    padding-block: 96px;
  }

  .hero {
    padding-bottom: 5rem;
  }

  .hero__actions,
  .cta-band__actions,
  .error-page__actions {
    flex-direction: row;
  }

  .cta-band__actions,
  .error-page__actions {
    justify-content: center;
  }

  .header-cta__label {
    display: inline;
  }

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

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

  .gallery {
    grid-auto-rows: 200px;
    gap: 1rem;
  }

  .cta-band {
    padding: 4rem 3rem;
  }

  .form {
    padding: 2rem;
  }

  .site-footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .method__inset {
    left: -24px;
    width: 224px;
  }

  .method__badge {
    right: -20px;
  }

  .fabs {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .fab-wa {
    width: 64px;
    height: 64px;
  }

  .lightbox__btn--prev {
    left: 1.5rem;
  }

  .lightbox__btn--next {
    right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-phone {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 32px;
  }

  .section {
    padding-block: 112px;
  }

  .site-header__inner {
    height: 80px;
  }

  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .site-header.is-open .mobile-menu {
    display: none;
  }

  .hero {
    align-items: center;
    min-height: 100svh;
  }

  .trust__grid,
  .services__grid,
  .process__list {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }

  .method {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .method__media {
    order: 2;
  }

  .contact__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
