/* ============================================
   STOP DE GOTERAS - SOY JUAN
   Paleta: Rojo #D42027, Azul Marino #1B2A4A
   Fondo: Blanco #FFFFFF
   ============================================ */

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

:root {
  --red: #D42027;
  --red-dark: #B01A20;
  --red-light: #F2D5D6;
  --navy: #1B2A4A;
  --navy-dark: #111D35;
  --navy-light: #2E4470;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.08);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.10);
  --shadow-lg: 0 8px 32px rgba(27,42,74,0.12);
  --shadow-xl: 0 16px 48px rgba(27,42,74,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 64px);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,32,39,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,42,74,0.3);
}
.btn--outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--outline-red:hover {
  background: var(--red);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.header__logo-img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}
.header__nav { margin-left: auto; margin-right: 32px; }
.header__menu { display: flex; gap: 24px; }
.header__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.header__link:hover, .header__link.active { color: var(--red); }
.header__link:hover::after, .header__link.active::after { width: 100%; }

.header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  padding: 10px 20px;
  border: 2px solid var(--red);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.header__cta:hover { background: var(--red); color: var(--white); }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 8px;
}

@media (max-width: 900px) {
  .header__cta { display: none; }
  .header__burger { display: flex; }
  .header__nav { margin-right: 8px; }
}

.header__burger span {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.3s ease;
}
.header__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- HERO (index.html) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
  padding-top: 80px;
}

/* Rain canvas */
.hero__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===== HOUSE SCENE (premium) ===== */
/* Timeline: 0-4s exposed | 4-6s roof descends | 6s+ protected */

.hero__scene {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 560px;
  z-index: 2;
  pointer-events: none;
}
.hero__scene-svg { width: 100%; height: auto; }

/* House entrance */
.scene__house { animation: house-appear 1s ease-out 0.5s both; }
@keyframes house-appear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Indoor rain */
.indoor-drop {
  animation: idrop-fall 0.7s linear infinite, idrop-fade 8s ease forwards;
}
.indoor-drop:nth-child(2) { animation-delay: 0.1s, 0s; }
.indoor-drop:nth-child(3) { animation-delay: 0.25s, 0s; }
.indoor-drop:nth-child(4) { animation-delay: 0.4s, 0s; }
.indoor-drop:nth-child(5) { animation-delay: 0.55s, 0s; }
.indoor-drop:nth-child(6) { animation-delay: 0.15s, 0s; }
.indoor-drop:nth-child(7) { animation-delay: 0.45s, 0s; }

@keyframes idrop-fall {
  0%   { transform: translateY(-20px); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}
@keyframes idrop-fade {
  0%, 40% { visibility: visible; }
  55%     { visibility: hidden; }
  100%    { visibility: hidden; }
}

/* Puddles */
.indoor-puddle {
  animation: puddle 8s ease forwards;
}
.indoor-puddle--2 { animation-delay: 0.3s; }
@keyframes puddle {
  0%        { rx: 0; opacity: 0; }
  10%       { rx: 25; opacity: 0.2; }
  45%       { rx: 28; opacity: 0.2; }
  65%       { rx: 5; opacity: 0; }
  100%      { rx: 0; opacity: 0; }
}

/* Alert icon */
.scene__alert {
  animation: alert-pulse 0.8s ease-in-out infinite alternate, alert-out 8s ease forwards;
}
@keyframes alert-pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}
@keyframes alert-out {
  0%, 35% { opacity: 1; }
  50%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* Roof descends */
.scene__roof {
  animation: roof-drop 8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes roof-drop {
  0%, 42% { transform: translateY(-260px) scale(0.9); opacity: 0; }
  45%     { opacity: 1; }
  62%     { transform: translateY(0) scale(1); }
  66%     { transform: translateY(5px) scale(1.01); }
  72%     { transform: translateY(0) scale(1); }
  100%    { transform: translateY(0) scale(1); opacity: 1; }
}

/* Splashes SVG hidden - collision handled by canvas */
.scene__splashes { display: none; }

/* Shield */
.scene__shield {
  animation: shield-pop 8s ease forwards;
}
@keyframes shield-pop {
  0%, 74% { opacity: 0; transform: scale(0.3) translateY(10px); }
  82%     { opacity: 1; transform: scale(1.2) translateY(-5px); }
  88%     { transform: scale(0.92) translateY(2px); }
  94%     { transform: scale(1.05) translateY(-1px); }
  100%    { opacity: 1; transform: scale(1) translateY(0); }
}

/* Window warm glow when protected */
.scene__window-glow {
  opacity: 0;
  animation: win-glow 8s ease forwards;
}
@keyframes win-glow {
  0%, 72% { opacity: 0; }
  85%     { opacity: 1; }
  100%    { opacity: 1; }
}
.scene__window {
  animation: win-flicker 8s ease forwards;
}
@keyframes win-flicker {
  0%, 72% { fill: url(#windowGlow); }
  80%     { fill: rgba(255,200,80,0.2); }
  85%     { fill: rgba(255,200,80,0.12); }
  90%     { fill: rgba(255,200,80,0.22); }
  100%    { fill: rgba(255,200,80,0.18); }
}

/* Sparks canvas */
.hero__sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 10;
  padding: 80px 0;
  padding-left: clamp(0px, 3vw, 40px);
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  background: rgba(212,32,39,0.12);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(212,32,39,0.25);
  animation: badge-enter 0.8s ease-out 0.3s both;
}
@keyframes badge-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title-line--1 {
  animation: title-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero__title-line--2 {
  color: var(--red);
  animation: title-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
@keyframes title-slide-up {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 36px;
  animation: fade-in-up 0.8s ease-out 0.9s both;
}
.hero__subtitle strong { color: var(--white); }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fade-in-up 0.8s ease-out 1.1s both;
}

/* CTA pulse ring */
.hero__cta-pulse {
  position: relative;
}
.hero__cta-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--red);
  animation: cta-ring 2s ease-out infinite;
}
@keyframes cta-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fade-in-up 0.8s ease-out 1.3s both;
}
.hero__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.hero__stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  display: block;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero wave */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  z-index: 5;
  line-height: 0;
}
.hero__wave svg {
  width: 100%;
  height: 80px;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 14px;
  max-width: 520px;
  animation: title-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.25;
}
.page-hero__subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto;
  animation: fade-in-up 0.8s ease-out 0.5s both;
  overflow-wrap: break-word;
}
.page-hero__roof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.page-hero__roof svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 720px) {
  .page-hero__roof { display: none; }
}

.page-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
}
.page-hero__wave svg { width: 100%; height: 60px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  animation: fade-in-up 0.6s ease-out 0.2s both;
}
.breadcrumb a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { color: rgba(255,255,255,0.3); font-size: 12px; }
.breadcrumb__current {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 12px;
}
.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header__desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- SERVICES (servicios.html) ---------- */
.services {
  padding: 100px 0;
  background: var(--white);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 64px; height: 64px;
  background: var(--red-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
  transition: all var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--red);
  color: var(--white);
}
.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
}
.service-card__link:hover { gap: 12px; }

/* Service detail cards (individual service) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail:last-child { border-bottom: none; }

.service-detail__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.service-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-detail__content h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.service-detail__content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}
.service-detail__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.service-detail__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.service-detail__feature svg { color: var(--red); flex-shrink: 0; }

/* ---------- ABOUT (nosotros.html) ---------- */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about__experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.about__experience-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.about__experience-text {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}
.about__content .section-header__tag,
.about__content .section-header__title { text-align: left; }
.about__text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about__text strong { color: var(--navy); }
.about__features {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.about__feature svg { flex-shrink: 0; color: var(--red); }

/* Values grid (nosotros.html) */
.values {
  padding: 80px 0;
  background: var(--gray-50);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.value-card__icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.value-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.value-card__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- GALLERY (trabajos.html) ---------- */
.gallery {
  padding: 100px 0;
  background: var(--white);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--gray-200);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__category {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 64px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-band__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}
.cta-band__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- CONTACT (contacto.html) ---------- */
.contact {
  padding: 100px 0;
  background: var(--white);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.contact__form {
  background: var(--gray-50);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group--full { grid-column: 1 / -1; }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-label span { color: var(--red); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212,32,39,0.1);
}
.form-input::placeholder { color: var(--gray-400); }
.form-input--textarea { resize: vertical; min-height: 120px; }
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-submit {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  border: none;
  font-size: 16px;
  padding: 16px;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.contact__info-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gray-300);
}
.contact__info-icon {
  width: 48px; height: 48px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.contact__info-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.contact__info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  display: block;
}
.contact__info-value--sub {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
}
a.contact__info-value:hover { color: var(--red); }

/* Map embed */
.contact__map {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.contact__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer__logo {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}
.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}
.footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom { padding: 24px 0; }
.footer__bottom-inner {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  width: 48px; height: 48px;
  font-size: 32px;
  color: var(--white);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.25); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about__inner { gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail:nth-child(even) { direction: ltr; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header__inner { height: 70px; }
  .header__logo-img { height: 48px; }
  .header__nav {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    margin: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .header__nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .header__menu { flex-direction: column; gap: 0; }
  .header__link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-100);
  }
  .header__link::after { display: none; }

  .hero { min-height: auto; padding: 110px 0 90px; }
  .hero__scene { display: none; }
  .hero__title { font-size: clamp(30px, 8vw, 48px); }
  .hero__subtitle { font-size: 16px; }
  .hero__stats { flex-direction: column; gap: 20px; padding-top: 28px; }
  .hero__stat { display: flex; align-items: center; gap: 12px; }
  .hero__stat-number { font-size: 32px; }
  .hero__stat-label { margin-top: 0; font-size: 13px; }

  .page-hero { padding: 120px 0 50px; }
  .page-hero__title { font-size: clamp(20px, 5.5vw, 32px); }
  .page-hero__subtitle { font-size: 14px; padding: 0 8px; }

  .section-header { margin-bottom: 40px; }

  .services { padding: 60px 0; }
  .services__grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }

  .about { padding: 60px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__experience-badge { bottom: -16px; right: 16px; padding: 16px 20px; }
  .about__experience-number { font-size: 32px; }

  .values { padding: 60px 0; }
  .values__grid { grid-template-columns: 1fr; gap: 16px; }

  .gallery { padding: 60px 0; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .cta-band { padding: 48px 0; }
  .cta-band__title { font-size: clamp(20px, 5vw, 28px); }

  .contact { padding: 60px 0; }
  .contact__form { grid-template-columns: 1fr; padding: 24px 20px; }

  .contact__info-value { font-size: 14px; word-break: break-all; }

  .footer { padding-top: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 70px; }
  .hero__badge { font-size: 11px; padding: 6px 14px; letter-spacing: 1px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .gallery__grid { grid-template-columns: 1fr; }

  .cta-band__actions { flex-direction: column; width: 100%; }
  .cta-band__actions .btn { width: 100%; justify-content: center; }

  .about__features { gap: 10px; }
  .about__feature { font-size: 14px; }

  .service-detail { padding: 40px 0; }
  .service-detail__content h3 { font-size: 22px; }
}

@media (max-width: 360px) {
  .hero__title { font-size: 28px; }
  .hero__stat-number { font-size: 28px; }
  .btn--lg { padding: 12px 20px; font-size: 14px; }
  .contact__form { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}

/* ---------- OPINIONES ---------- */
.reviews { padding: 40px 0 20px; }
.reviews__summary {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.reviews__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 40px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  max-width: 100%;
  text-align: center;
}
.reviews__score-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.reviews__stars { display: inline-flex; gap: 2px; color: #F5A623; }
.reviews__score-label { font-size: 13px; color: var(--gray-500); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  padding-bottom: 40px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-card__stars { display: inline-flex; gap: 2px; color: #F5A623; }
.review-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  font-style: italic;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}
.review-card__author { min-width: 0; flex-wrap: wrap; }
.review-card__author > div { min-width: 0; flex: 1; }
.review-card__name,
.review-card__meta { overflow-wrap: break-word; word-wrap: break-word; }
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}
.review-card__name {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}
.review-card__meta {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
}

.review-form-section {
  padding: 60px 0;
  background: var(--gray-50);
}
.review-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.review-form .form-group--full { grid-column: 1 / -1; }
.review-form .form-submit { grid-column: 1 / -1; justify-self: start; }
.review-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}
.review-form__consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.review-form__consent a { color: var(--red); text-decoration: underline; }
.review-form__note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
}
@media (max-width: 720px) {
  .review-form { grid-template-columns: 1fr; padding: 28px 20px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__score { padding: 20px 24px; }
  .reviews__score-number { font-size: 40px; }
  .review-card { padding: 22px 20px; }
}
@media (max-width: 380px) {
  .review-card { padding: 18px 16px; }
  .review-card__text { font-size: 14px; }
  .reviews__score-number { font-size: 34px; }
}

/* ---------- LEGAL ---------- */
.legal { padding: 40px 0 80px; }
.legal__container {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
}
.legal__updated {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.legal__container h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 14px;
  font-weight: 700;
}
.legal__container p { margin-bottom: 14px; }
.legal__container ul { padding-left: 22px; margin-bottom: 16px; list-style: disc; }
.legal__container li { margin-bottom: 6px; }
.legal__container a { color: var(--red); text-decoration: underline; }
.legal__container strong { color: var(--navy); }
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal__table th,
.legal__table td {
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal__table th {
  background: var(--gray-50);
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-heading);
}
@media (max-width: 600px) {
  .legal__table { font-size: 13px; }
  .legal__table th, .legal__table td { padding: 8px 10px; }
}

/* ---------- FOOTER LEGAL ---------- */
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 12px;
}
.footer__legal a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--white); }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.9);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-banner__text {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  flex: 1 1 320px;
}
.cookie-banner__text a { color: #F5A623; text-decoration: underline; }
.cookie-banner__actions { flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 10px 24px; font-size: 14px; }

/* ---------- SERVICE DETAIL ILLUSTRATED ---------- */
.service-detail__img--illustrated {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.service-detail__img--illustrated svg {
  width: 100%;
  height: auto;
  display: block;
}