:root {
  --color-primary: #0b2a4a;
  --color-primary-strong: #123f6d;
  --color-secondary: #1f7aa5;
  --color-accent: #13b0a5;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-text: #1b2733;
  --color-text-soft: #69b6fd;
  --color-border: #d8e0e8;
  --color-success: #18a957;
  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.2rem;
  --shadow-soft: 0 10px 30px rgba(11, 42, 74, 0.08);
  --shadow-card: 0 16px 32px rgba(11, 42, 74, 0.12);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --hero-image: url("../img/hero.webp");
}

body.page-home { --hero-image: url("../img/hero.webp"); }
body.page-servicios { --hero-image: url("../img/unidad_industrial_service.webp"); }
body.page-servicio-instalacion { --hero-image: url("../img/split_unidad_externa.webp"); }
body.page-servicio-mantenimiento { --hero-image: url("../img/unidad_industrial_service.webp"); }
body.page-servicio-reparacion { --hero-image: url("../img/split_unidad_interna.webp"); }
body.page-zonas { --hero-image: url("../img/hero.webp"); }
body.page-zona-template { --hero-image: url("../img/hero.webp"); }
body.page-zona-la-plata { --hero-image: url("../img/hero.webp"); }
body.page-zona-berisso { --hero-image: url("../img/hero.webp"); }
body.page-zona-city-bell { --hero-image: url("../img/hero.webp"); }
body.page-zona-ensenada { --hero-image: url("../img/hero.webp"); }
body.page-zona-gonnet { --hero-image: url("../img/hero.webp"); }
body.page-zona-ringuelet { --hero-image: url("../img/hero.webp"); }
body.page-zona-tolosa { --hero-image: url("../img/hero.webp"); }
body.page-zona-villa-elisa { --hero-image: url("../img/hero.webp"); }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  opacity: 1;
  transition: opacity 0.4s ease;
  overflow-x: clip;
}

body.page-ready {
  opacity: 1;
}

body.page-entering .hero-bg {
  animation: pageHeroBgIn 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

body.page-entering .hero-content {
  animation: pageHeroContentIn 0.8s cubic-bezier(0.2, 0.9, 0.28, 1) both;
}

body.page-entering .hero-actions,
body.page-entering .hero-points,
body.page-entering .microcopy {
  animation: pageHeroDetailIn 0.95s cubic-bezier(0.2, 0.9, 0.28, 1) both;
}

body.page-entering .section:first-of-type .card,
body.page-entering .section:first-of-type .badge-item {
  animation: pageFirstSectionIn 0.7s ease both;
}

body.page-entering .section:first-of-type .card:nth-child(2),
body.page-entering .section:first-of-type .badge-item:nth-child(2) {
  animation-delay: 0.05s;
}

body.page-entering .section:first-of-type .card:nth-child(3),
body.page-entering .section:first-of-type .badge-item:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes pageHeroBgIn {
  0% {
    opacity: 0;
    transform: scale(1.12);
    filter: saturate(0.72) blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
    filter: saturate(0.88) blur(0);
  }
}

@keyframes pageHeroContentIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pageHeroDetailIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFirstSectionIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, rgba(243, 178, 111, 0.2), transparent 40%),
    radial-gradient(circle at 80% 82%, rgba(58, 113, 247, 0.2), transparent 42%),
    rgba(9, 20, 50, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 1300;
  transition: opacity 0.35s ease;
}

.page-transition.is-service {
  background:
    radial-gradient(circle at 20% 18%, rgba(243, 178, 111, 0.24), transparent 40%),
    radial-gradient(circle at 80% 82%, rgba(62, 124, 255, 0.26), transparent 42%),
    rgba(9, 20, 50, 0.92);
}

.page-transition.is-zone {
  background:
    radial-gradient(circle at 20% 18%, rgba(88, 214, 146, 0.24), transparent 40%),
    radial-gradient(circle at 80% 82%, rgba(52, 152, 219, 0.25), transparent 42%),
    rgba(8, 26, 48, 0.92);
}

.page-transition.is-commercial {
  background:
    radial-gradient(circle at 20% 18%, rgba(245, 176, 65, 0.24), transparent 40%),
    radial-gradient(circle at 80% 82%, rgba(155, 89, 182, 0.26), transparent 42%),
    rgba(26, 17, 52, 0.92);
}

.page-transition.is-active {
  opacity: 1;
  pointer-events: all;
}

.transition-brand {
  position: fixed;
  left: 50%;
  top: 50%;
  margin: 0;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  isolation: isolate;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88) translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-transition.is-active .transition-brand {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) translateY(0);
}

.transition-ring {
  background: white; 
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.transition-ring.ring-a {
  width: 148px;
  height: 148px;
  opacity: 0.55;
}

.transition-ring.ring-b {
  width: 188px;
  height: 188px;
  opacity: 0.3;
}

.transition-logo {
  width: 104px;
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.transition-context {
  margin-top: 0;
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .transition-brand {
    transition: none;
  }

  .transition-ring {
    animation: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 42, 74, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 84px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: transform 0.25s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-primary);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-list a.is-active {
  color: var(--color-primary);
}

.nav-list a.is-active::after {
  transform: scaleX(1);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, #0b2a4a, #144a7d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 42, 74, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(120deg, #123f6d, #18558f);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.25) 50%, transparent 80%);
  transition: transform 0.65s ease;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateX(120%);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #17658a;
}

.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-primary);
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 8vh, 4rem) 0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate3d(0, var(--hero-parallax-bg, 0px), 0) scale(1.08);
  transition: transform 0.06s linear;
  will-change: transform;
  background: var(--hero-image) center center / cover no-repeat;
  filter: saturate(0.88) contrast(1.08) brightness(0.96);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 140% 120% at 0% 0%, rgba(8, 20, 35, 0.72) 0%, rgba(8, 20, 35, 0.28) 42%, transparent 62%),
    linear-gradient(115deg, rgba(8, 20, 35, 0.52) 0%, rgba(8, 20, 35, 0.32) 32%, rgba(8, 20, 35, 0.08) 52%, transparent 68%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 950px at 8% 12%, rgba(8, 24, 38, 0.28) 0%, transparent 52%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  margin-left: 3rem;
  grid-template-columns: 3fr;
  gap: var(--space-4);
  align-items: center;
}

.hero-content {
  position: relative;
  padding: clamp(2.5rem, 4.5vw, 3.5rem);
  padding-left: 0px;
  transform: translate3d(0, var(--hero-parallax-content, 0px), 0);
  transition: transform 0.08s linear;
  will-change: transform;
  max-width: 820px;
  text-align: left;
  margin: 0;
}

.eyebrow {
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero .eyebrow {
  color: #a8dff5;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.38),
    0 1px 3px rgba(0, 0, 0, 0.28);
  font-weight: 700;
}

h1,
h2,
h3 {
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-top: var(--space-2);
}

.hero h1 {
  color: #ffffff;
  text-shadow: 
    0 3px 18px rgba(0, 0, 0, 0.42),
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.28);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: var(--space-2);
}

.hero-copy {
  font-size: 1.1rem;
  max-width: 52ch;
  margin: var(--space-4) 0;
}

.hero .hero-copy {
  margin-left: 0;
  margin-right: 0;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero-actions .btn-ghost:hover,
.hero-actions .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.hero-points {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.hero-points i {
  color: #9be6d0;
}

.hero-points .hero-check {
  color: #9be6d0;
  font-weight: 800;
}

.hero .hero-copy {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 1px 4px rgba(0, 0, 0, 0.25);
  font-weight: 500;
}

.hero .microcopy {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.32),
    0 1px 3px rgba(0, 0, 0, 0.22);
}

.section-subtitle,
.microcopy,
p {
  color: var(--color-text);
}

.section-subtitle {
  max-width: 74ch;
  color: #425b73;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.hero .microcopy {
  color: #d9e7f5;
}

.microcopy {
  margin-top: var(--space-4);
  font-size: 0.9rem;
}

.section {
  padding: var(--space-7) 0;
}

.authority {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.authority .section-heading {
  grid-column: 1 / -1;
}

.trust-badges {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  padding: var(--space-5) 0;
  border-top: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  color: #fff;
  transition: transform 0.3s ease;
}

.badge-item:hover {
  transform: translateY(-5px);
}

.badge-item i {
  font-size: 2.5rem;
  color: var(--color-accent);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.badge-item span {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.section-alt {
  background: var(--color-bg-alt);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.service-card,
.review-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d8e3ee;
  border-radius: var(--radius-md);
  padding: clamp(1.05rem, 1.55vw, 1.5rem);
  box-shadow: 0 14px 28px rgba(11, 42, 74, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card h3,
.service-card h3,
.review-card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.04rem, 1.1vw, 1.2rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.card p,
.service-card p,
.review-card p {
  color: #3f5268;
  line-height: 1.65;
  font-size: 0.96rem;
  margin: 0;
  text-wrap: pretty;
}

.card-icon {
  position: relative;
  padding-top: calc(var(--space-4) + 2.5rem);
}

.card-icon-badge {
  position: absolute;
  top: .5rem;
  left: var(--space-4);
  font-size: 2.5rem;
  color: var(--color-accent);
  opacity: 0.9;
}

.card:hover,
.service-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 176, 165, 0.45);
  box-shadow: 0 20px 38px rgba(11, 42, 74, 0.16);
}

.card.premium-tilt,
.service-card-premium.premium-tilt,
.testimonial-card.premium-tilt,
.gallery-item.premium-tilt,
.feature-item.premium-tilt,
.stat-card.premium-tilt {
  transform: perspective(950px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px));
  will-change: transform;
}

.card.premium-tilt:hover,
.service-card-premium.premium-tilt:hover,
.testimonial-card.premium-tilt:hover,
.gallery-item.premium-tilt:hover,
.feature-item.premium-tilt:hover,
.stat-card.premium-tilt:hover {
  transform: perspective(950px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, -4px));
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-icon:hover .card-icon-badge {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.service-card {
  border-left: 4px solid var(--color-accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.service-card-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  border: 1px solid #d8e3ee;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(11, 42, 74, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(11, 42, 74, 0.18);
  border-color: var(--color-accent);
}

.service-header {
  background: linear-gradient(140deg, #0b2a4a, #144a7d 58%, #1f7aa5 100%);
  color: #fff;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.service-header i {
  font-size: 2rem;
  opacity: 0.9;
}

.service-header h3 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  line-height: 1.35;
  text-wrap: balance;
}

.service-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-description {
  margin-bottom: var(--space-3);
  color: #3f5268;
  line-height: 1.68;
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.service-includes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.5;
}

.service-includes i {
  color: var(--color-accent);
  font-size: 1rem;
}

.service-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8fd 100%);
  margin-top: auto;
}

.service-link {
  margin-top: var(--space-3);
  width: 100%;
}

.service-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.service-time,
.service-warranty {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.85rem;
  color: var(--color-text);
}

.service-time i,
.service-warranty i {
  color: var(--color-secondary);
}

.service-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-label {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.price-value {
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.services-note {
  background: linear-gradient(135deg, rgba(31, 122, 165, 0.08), rgba(19, 176, 165, 0.08));
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.services-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.services-note strong {
  color: var(--color-primary);
}

.review-card {
  margin: 0;
}

.review-card cite {
  display: inline-block;
  margin-top: var(--space-2);
  font-style: normal;
  color: var(--color-primary);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid #d8e3ee;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 26px rgba(11, 42, 74, 0.09);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e8f1f8, #d4e5f0);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
  padding: var(--space-3);
  margin-bottom: 0.45rem;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
  background: linear-gradient(135deg, #d4e5f0, #c0d8e8);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 176, 165, 0.45);
  box-shadow: 0 18px 36px rgba(11, 42, 74, 0.16);
}

.gallery-item h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.gallery-item p {
  font-size: 0.9rem;
  color: #4b6178;
  margin: 0;
  line-height: 1.55;
}

.gallery-item p strong {
  color: #0f3155;
  font-weight: 700;
}

.gallery-item p + p {
  font-size: 0.82rem;
  color: #334155;
  padding-top: 0.25rem;
  border-top: 1px dashed #d7e2ee;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.testimonial-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid #dbe6f0;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: 0 14px 30px rgba(11, 42, 74, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(11, 42, 74, 0.16);
}

.testimonial-card .stars {
  color: #fbb500;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-2);
  display: block;
}

.testimonial-card p {
  font-size: 0.96rem;
  line-height: 1.66;
  margin: var(--space-2) 0;
  color: #3f5268;
  text-wrap: pretty;
}

.testimonial-context {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.testimonial-author strong {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-top: 0.25rem;
}

.reviews-cta {
  text-align: center;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(13, 80, 132, 0.08), rgba(19, 176, 165, 0.1));
  border: 1px solid rgba(19, 176, 165, 0.24);
  border-radius: var(--radius-md);
}

.reviews-cta p {
  margin: 0 0 var(--space-3) 0;
  color: var(--color-primary);
  font-weight: 600;
}

.reviews-cta .btn {
  margin-top: var(--space-2);
}

.video-section {
  background: var(--color-bg-alt);
}

.video-container {
  margin: var(--space-5) 0;
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b2a4a, #144a7d);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-placeholder:hover::before {
  opacity: 1;
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.video-placeholder i {
  font-size: 4rem;
  margin-bottom: var(--space-3);
  transition: transform 0.3s ease;
}

.video-placeholder:hover i {
  transform: scale(1.15);
}

.video-placeholder p {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.video-placeholder span {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: var(--space-2);
}

.video-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.feature-item i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.feature-item span {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.infographic-section {
  background: linear-gradient(135deg, #f8fbfd, #f0f6fb);
}

.infographic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.stat-card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(11, 42, 74, 0.16);
}

.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-3);
  background: linear-gradient(135deg, rgba(19, 176, 165, 0.1), rgba(31, 122, 165, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 2rem;
  color: var(--color-accent);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

.infographic-cta {
  text-align: center;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(19, 176, 165, 0.12), rgba(31, 122, 165, 0.12));
  border-radius: var(--radius-lg);
  margin-top: var(--space-5);
}

.infographic-cta p {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin: 0 0 var(--space-3) 0;
}

.infographic-cta .btn {
  font-size: 1rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.steps li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: var(--space-6) auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-secondary));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-left: 100px;
  padding-bottom: var(--space-6);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11, 42, 74, 0.25), 0 0 0 4px #fff;
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(11, 42, 74, 0.35), 0 0 0 4px #fff;
}

.timeline-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-marker i {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 0.15rem;
}

.timeline-content {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(11, 42, 74, 0.14);
  transform: translateX(8px);
}

.timeline-content h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
}

.timeline-content p {
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.timeline-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 600;
}

.timeline-meta i {
  font-size: 1rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-4) 0;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  transform: translate3d(0, var(--band-parallax, 0px), 0);
  will-change: transform;
  background:
    radial-gradient(34rem 14rem at 12% 30%, rgba(19, 176, 165, 0.26), transparent 60%),
    radial-gradient(24rem 10rem at 88% 70%, rgba(255, 255, 255, 0.12), transparent 60%);
}

.cta-band-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cta-band p {
  color: #dce7f2;
  margin: 0;
  font-weight: 600;
}

.cta-band .btn {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.narrow {
  max-width: 820px;
}

details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: var(--space-3) var(--space-4);
}

details + details {
  margin-top: var(--space-3);
}

summary {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.lead-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-2);
}

.form-helper {
  margin: 0 0 var(--space-2);
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.lead-form label {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.checkbox-row input {
  width: 1rem;
  margin-top: 0.2rem;
}

.form-status {
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.form-status.ok {
  color: var(--color-success);
}

.form-status.error {
  color: #b72a2a;
}

.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0 calc(var(--space-4) + 72px);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #23b35f, #1a9e5a);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(35, 179, 95, 0.4), 0 8px 24px rgba(35, 179, 95, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1);
  font-size: 28px;
}

.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 20px rgba(35, 179, 95, 0.6), 0 12px 32px rgba(35, 179, 95, 0.3);
}

/* ── Tablas de contenido ── */
.container.narrow table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}
.container.narrow table th,
.container.narrow table td {
  border: 1px solid #d1d5db;
  padding: 0.65rem 1rem;
  text-align: left;
  vertical-align: top;
}
.container.narrow table thead th {
  background: #f0f4f8;
  font-weight: 600;
  color: #1e293b;
}
.container.narrow table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.whatsapp-fab:active {
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .whatsapp-fab {
    width: 56px;
    height: 56px;
    right: 1rem;
    bottom: 1.5rem;
    font-size: 24px;
  }
}

.btn-pulse {
  animation: pulseCta 8s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseCta {
  0%,
  88%,
  100% {
    box-shadow: 0 12px 28px rgba(11, 42, 74, 0.28);
    transform: translateY(0);
  }
  92% {
    box-shadow: 0 0 0 0 rgba(19, 176, 165, 0.28), 0 12px 28px rgba(11, 42, 74, 0.28);
  }
  96% {
    box-shadow: 0 0 0 12px rgba(19, 176, 165, 0), 0 12px 28px rgba(11, 42, 74, 0.28);
  }
}

.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(980px, 100%);
  background: #ffffffee;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  z-index: 55;
  box-shadow: 0 -8px 24px rgba(11, 42, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sticky-cta.active {
  opacity: 1;
  visibility: visible;
}

.sticky-cta p {
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .steps,
  .authority-grid,
  .gallery-grid,
  .testimonials-grid,
  .services-grid,
  .infographic-grid,
  .badges-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-list,
  .nav-cta {
    display: none;
  }

  .brand img {
    height: 36px;
  }

  .hero-grid {
    margin-left: 0;
  }

  .hero-content {
    padding-left: clamp(1rem, 4vw, 2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infographic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .testimonials-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .video-features {
    grid-template-columns: 1fr;
  }

  .service-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .card-icon {
    padding-top: 1rem;
  }

  .card-icon-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.45rem;
    font-size: 1.6rem;
    line-height: 1;
  }

  .service-header h3,
  .gallery-item h3,
  .card h3 {
    font-size: 1.03rem;
    line-height: 1.38;
  }

  .card p,
  .gallery-item p,
  .service-description,
  .testimonial-card p {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 65px;
  }

  .timeline-marker {
    width: 50px;
    height: 50px;
  }

  .timeline-marker i {
    font-size: 1.2rem;
  }

  .timeline-number {
    font-size: 0.65rem;
  }

  .stat-card {
    padding: var(--space-4);
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
  }

  .stat-icon i {
    font-size: 1.75rem;
  }

  .cta-band-wrap,
  .footer-wrap,
  .sticky-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-cta {
    width: 100%;
    left: 0;
    transform: none;
    border-radius: 0;
  }

  .floating-whatsapp {
    bottom: 6.3rem;
  }
}

@media (max-width: 640px) {
  .infographic-grid,
  .badges-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-card,
  .review-card,
  .gallery-item,
  .testimonial-card {
    padding: 1rem;
  }

  .card-icon {
    padding-top: 0.85rem;
  }

  .card-icon-badge {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
  }

  .card h3,
  .gallery-item h3,
  .service-header h3,
  .timeline-content h3 {
    font-size: 0.94rem;
    line-height: 1.36;
    letter-spacing: 0;
  }

  .card p,
  .gallery-item p,
  .service-description,
  .testimonial-card p,
  .timeline-content p {
    font-size: 0.91rem;
    line-height: 1.58;
  }

  h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .whatsapp-fab {
    width: 56px;
    height: 56px;
    right: 1rem;
    bottom: 1.5rem;
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-bg,
  .hero::before,
  .hero-content,
  .cta-band::before {
    transform: none !important;
  }

  body.page-entering .hero-bg,
  body.page-entering .hero-content,
  body.page-entering .hero-actions,
  body.page-entering .hero-points,
  body.page-entering .microcopy,
  body.page-entering .section:first-of-type .card,
  body.page-entering .section:first-of-type .badge-item {
    animation: none !important;
  }

  .premium-tilt,
  .premium-tilt:hover {
    transform: none !important;
  }

  body {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
