/* ==========================================================================
   EMPIR IMPERMEABILIZACIONES Y CORCHO PROYECTADO - ESTILOS PRINCIPALES
   Diseño Responsive, Limpio, Moderno y Optimizado
   ========================================================================== */

:root {
  --color-primary: #006fb9;
  --color-primary-dark: #00558f;
  --color-primary-light: #66c1fd;
  --color-accent: #68ccd1;
  --color-dark: #222222;
  --color-text: #444444;
  --color-text-light: #666666;
  --color-bg-light: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-whatsapp: #25d366;
  --font-heading: 'Fjalla One', system-ui, -apple-system, sans-serif;
  --font-body: 'Heebo', system-ui, -apple-system, sans-serif;
  --container-max: 1200px;
  --header-height: 85px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 6px;
  --transition: all 0.3s ease;
}

/* Reset y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-card {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1.5px solid rgba(0, 111, 185, 0.35);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-outline-card:hover {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 111, 185, 0.25);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  color: var(--color-white);
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f6f6f6;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Nav Desktop */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
  border-radius: var(--radius);
  gap: 0.35rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(0, 111, 185, 0.06);
}

/* Separador en menú desktop como el original */
.nav-item:not(:last-child)::after {
  content: "/";
  color: #ccc;
  margin-left: 0.35rem;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--color-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

/* Botón Hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO / BANNER DE PÁGINA
   ========================================================================== */
.hero-home {
  position: relative;
  background-image: linear-gradient(rgba(0, 35, 60, 0.65), rgba(0, 35, 60, 0.65)), url('../img/tejado-doctor-espina-18-2304w.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}

.hero-home .container {
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-home h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-home p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ==========================================================================
   ANIMACIONES (FadeInUp, FadeIn, Reveal on Scroll)
   ========================================================================== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes flipInHorizontally {
  0% {
    transform: perspective(600px) rotateY(90deg);
    opacity: 0;
  }
  40% {
    transform: perspective(600px) rotateY(-10deg);
  }
  70% {
    transform: perspective(600px) rotateY(10deg);
  }
  100% {
    transform: perspective(600px) rotateY(0deg);
    opacity: 1;
  }
}

/* Animación de volteo horizontal directo (al cargar la página) */
.animate-flip-in {
  backface-visibility: visible !important;
  animation: flipInHorizontally 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  transform-origin: center center;
}

/* Clases utilitarias de animación al hacer scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.page-banner {
  background-color: #2b3a4a;
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 3px solid var(--color-primary);
  animation: fadeIn 0.8s ease both;
}

.page-banner h1 {
  color: var(--color-white);
  font-size: 2.4rem;
  margin: 0;
}

/* ==========================================================================
   SECCIONES Y LAYOUTS
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--color-bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--color-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--color-primary);
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0.5rem auto 0 auto;
}

/* Grid de Columnas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Tarjetas */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--color-text);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-footer {
  margin-top: 1.25rem;
}

/* Features / Ventajas */
.feature-box {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   SECCIÓN INTERACTIVA: ¿QUÉ PROBLEMA TIENES? (Interactive Problem Solver)
   ========================================================================== */
.section-problems {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.problems-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.problem-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.problem-chip .chip-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.problem-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.problem-chip.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(0, 111, 185, 0.28);
  transform: translateY(-2px);
}

.problem-chip.active .chip-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.problem-display {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.problem-card-panel {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
  padding: 3rem;
}

.problem-card-panel.active {
  display: grid;
  animation: fadeInProblem 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInProblem {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.problem-card-content {
  display: flex;
  flex-direction: column;
}

.problem-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #e4effa;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.problem-card-content h3 {
  font-size: 1.85rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.problem-description {
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.problem-procedure {
  background-color: #f8fbfe;
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.25rem;
}

.problem-procedure h4 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.problem-procedure p {
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.55;
  margin: 0;
}

/* Pastilla de Síntomas Cotidianos (Problem Solver) */
.problem-symptoms {
  background: #fdfaf4;
  border-left: 3.5px solid #d97706;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.06);
}

.symptoms-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.symptoms-header .symptoms-icon {
  font-size: 1rem;
}

.symptoms-text {
  font-size: 0.93rem;
  color: #451a03;
  line-height: 1.55;
  margin: 0;
}

.problem-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.problem-benefits li {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.45;
}

.problem-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-whatsapp-problem {
  background-color: #25d366;
  border-color: #25d366;
  color: var(--color-white);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp-problem:hover {
  background-color: #20bd5a;
  border-color: #20bd5a;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.problem-card-media {
  position: relative;
  width: 100%;
}

/* Selector interactivo de vista: Obra Real vs Esquema 3D */
.media-toggle-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  background: rgba(0, 35, 60, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.media-toggle-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.media-toggle-btn:hover {
  color: var(--color-white);
}

.media-toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 111, 185, 0.45);
}

.media-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background-color: #0b1a26;
}

.media-view {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.media-view.active {
  display: block;
}

.media-view .problem-img,
.media-view video.problem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-view video.problem-video {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Ocultar cualquier control nativo del motor webkit/blink */
.media-view video::-webkit-media-controls,
.media-view video::-webkit-media-controls-enclosure,
.media-view video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

/* Ocultar botón 'skip-button' inyectado por navegadores como Opera GX */
#skip-button,
[id="skip-button"],
[id*="skip-button"],
.skip-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Escudo protector transparente: absorbe el cursor del ratón e impide que Edge/Chrome inyecten botones de reinicio */
.video-shield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
  pointer-events: auto;
}

.problem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.media-wrapper:hover .problem-img {
  transform: scale(1.04);
}

.media-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(0, 35, 60, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* ==========================================================================
   SECCIÓN: CÓMO TRABAJAMOS (Proceso transparente en 3 pasos)
   ========================================================================== */
.section-process {
  background-color: var(--color-white);
  padding: 5.5rem 0;
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 2.5rem;
  position: relative;
}

.process-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 2.25rem 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.process-step-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 111, 185, 0.25);
}

.process-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background-color: #e4effa;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.process-card:hover .process-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.08);
}

.process-card h3 {
  font-size: 1.45rem;
  color: var(--color-dark);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.process-card p {
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.process-detail {
  background: rgba(0, 111, 185, 0.06);
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  line-height: 1.45;
}

.process-cta {
  text-align: center;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1.5rem;
  background-color: #f8fbfe;
  border-radius: var(--radius);
  border: 1px dashed rgba(0, 111, 185, 0.3);
}

.process-cta p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

/* ==========================================================================
   COMPROMISO DE DIAGNÓSTICO HONESTO (Equipo Empir)
   ========================================================================== */
.honesty-commitment-banner {
  background: linear-gradient(135deg, #f7faff 0%, #eaf3fb 100%);
  border: 1.5px solid rgba(0, 111, 185, 0.22);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 6px 22px rgba(0, 60, 130, 0.06);
  position: relative;
  overflow: hidden;
}

.honesty-commitment-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.honesty-icon-wrap {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 4px 14px rgba(0, 111, 185, 0.14);
  border: 1.5px solid rgba(0, 111, 185, 0.18);
}

.honesty-content {
  flex-grow: 1;
}

.honesty-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-white);
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 111, 185, 0.2);
  margin-bottom: 0.65rem;
}

.honesty-content h3 {
  font-size: 1.35rem;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.honesty-content p {
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.honesty-content strong {
  color: var(--color-dark);
}

/* ==========================================================================
   SECCIÓN COMPARATIVA: EL PARCHE TRADICIONAL VS MÉTODO TÉCNICO EMPIR
   ========================================================================== */
.section-comparison {
  background: linear-gradient(180deg, #f4f8fc 0%, #e8f2fa 100%);
  padding: 5.5rem 0;
  border-top: 1px solid rgba(0, 111, 185, 0.12);
  border-bottom: 1px solid rgba(0, 111, 185, 0.12);
  position: relative;
}

.section-subtitle-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 111, 185, 0.2);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  margin-top: 2.75rem;
  align-items: stretch;
}

.comparison-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-5px);
}

/* Columna Parche Tradicional (Alerta suave / Negativo) */
.comparison-bad {
  border: 1.5px solid #fecaca;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.05);
}

.comparison-bad:hover {
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.1);
}

/* Columna Método Empir (Destacado corporativo / Certificado) */
.comparison-good {
  border: 2px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 111, 185, 0.12);
  position: relative;
}

.comparison-good:hover {
  box-shadow: 0 14px 38px rgba(0, 111, 185, 0.18);
}

.comparison-header {
  padding: 2.25rem 2.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.comparison-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.badge-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.badge-success {
  background-color: #e4effa;
  color: var(--color-primary-dark);
  border: 1px solid rgba(0, 111, 185, 0.3);
}

.comparison-header h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.comparison-summary {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
}

.comparison-list {
  list-style: none;
  padding: 1.75rem 2.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.list-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 2px;
}

.icon-bad {
  background-color: #fee2e2;
  color: #dc2626;
}

.icon-good {
  background-color: #dcfce7;
  color: #15803d;
}

.comparison-list strong {
  display: block;
  font-size: 0.96rem;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.comparison-list p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

.comparison-footer {
  padding: 1.25rem 2.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-bad {
  background-color: #fff8f8;
  border-top: 1px solid #fee2e2;
  color: #991b1b;
}

.footer-good {
  background-color: #f2f8fd;
  border-top: 1px solid rgba(0, 111, 185, 0.2);
  color: var(--color-primary-dark);
}

.comparison-cta {
  text-align: center;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.comparison-cta p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

/* Bloque Dónde Trabajamos / Etiquetas de Ubicación */
.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--color-dark);
  font-weight: 500;
  transition: var(--transition);
}

.location-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(0, 111, 185, 0.06);
  transform: translateY(-1px);
}

.location-tag.tag-highlight {
  background-color: rgba(0, 111, 185, 0.08);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Sección Nuestra Experiencia con Fondo Parallax */
.section-parallax-experience {
  position: relative;
  background-image: linear-gradient(rgba(0, 30, 52, 0.82), rgba(0, 30, 52, 0.82)), url('../img/307172152_595860202232780_7259056323235899140_n-1920w.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 6rem 0;
  color: var(--color-white);
}

.section-parallax-experience .section-title h2 {
  color: var(--color-white);
}

.section-parallax-experience .section-title h2::after {
  background-color: var(--color-primary-light);
}

.section-parallax-experience p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.section-parallax-experience strong {
  color: var(--color-white);
}

.section-parallax-experience .experience-media img {
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.section-parallax-experience .experience-media:hover img {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Sección Pilares con Fondo Parallax (como en la web original) */
.section-parallax-pillars {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/307124482_595859438899523_7174659428810003100_n-1920w.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 6.5rem 0;
  color: var(--color-white);
}

.section-parallax-pillars .section-title h2 {
  color: var(--color-white);
}

.section-parallax-pillars .section-title p {
  color: rgba(255, 255, 255, 0.9);
}

/* Sección Dónde Trabajamos con Fondo Parallax */
.section-parallax-locations {
  position: relative;
  background-image: linear-gradient(rgba(0, 35, 60, 0.65), rgba(0, 35, 60, 0.65)), url('../img/villalba-honorio-1-1920w.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 6rem 0;
  color: var(--color-white);
}

.section-parallax-locations .section-title h2 {
  color: var(--color-white);
}

.section-parallax-locations .section-title p {
  color: rgba(255, 255, 255, 0.95);
}

.section-parallax-locations .card {
  color: var(--color-text);
  background-color: var(--color-white);
}

.section-parallax-locations .card h3 {
  color: var(--color-dark);
}

.section-parallax-locations .card p,
.section-parallax-locations .card li {
  color: var(--color-text);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.pillar-card {
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-card:hover {
  transform: translateY(-6px);
}

/* Tarjeta izquierda y derecha: fondo suave semitransparente (#e4effa con opacidad) */
.pillar-card-soft {
  background-color: rgba(228, 239, 250, 0.9);
  color: #222222;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pillar-card-soft .pillar-icon {
  color: var(--color-primary);
}

.pillar-card-soft h3 {
  color: #1a1a1a;
  font-size: 1.5rem;
  margin: 1.25rem 0 1rem;
}

.pillar-card-soft p {
  color: #333333;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* Tarjeta central destacada: fondo azul corporativo (#006fb9) */
.pillar-card-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

.pillar-card-primary:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pillar-card-primary .pillar-icon {
  color: var(--color-white);
}

.pillar-card-primary h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin: 1.25rem 0 1rem;
}

.pillar-card-primary p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
  font-size: 0.95rem;
}

.pillar-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pillar-card-primary {
    transform: none;
  }
  .pillar-card-primary:hover {
    transform: translateY(-6px);
  }
  .section-parallax-pillars {
    background-attachment: scroll; /* Mejor rendimiento y compatibilidad en móviles táctiles */
    padding: 4.5rem 0;
  }
}

/* Lista con viñetas estilizadas */
.service-list {
  margin: 1.5rem 0;
}

.service-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.service-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card::before {
  content: "“";
  font-size: 4rem;
  color: rgba(0, 111, 185, 0.15);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: serif;
}

.testimonial-text {
  position: relative;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   GALERÍA DE TRABAJOS
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-badge-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 35, 60, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.03);
}

.gallery-info {
  padding: 1.25rem;
}

.gallery-info h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.gallery-info p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Lightbox Modal Profesional */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 10, 20, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

/* Ocultar botón de accesibilidad (UserWay) y WhatsApp flotante al abrir el visor */
body.lightbox-open .uai,
body.lightbox-open #userwayAccessibilityIcon,
body.lightbox-open .userway_p1,
body.lightbox-open [id^="userway"],
body.lightbox-open .floating-actions {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.lightbox-wrapper {
  position: relative;
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-content {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85);
  transition: opacity 0.2s ease, transform 0.25s ease;
  user-select: none;
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  max-width: 900px;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2.75rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 2600;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: #ffffff;
  background: rgba(220, 38, 38, 0.85);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.25s ease;
  z-index: 2600;
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 96vw;
    max-height: 70vh;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
  .lightbox-caption {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}

/* Habitissimo Hero Banner */
.habitissimo-hero-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0;
}

.habitissimo-hero-grid {
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  gap: 2.25rem;
  align-items: stretch;
}

.habitissimo-widget-box {
  background-color: var(--color-white);
  padding: 1.5rem 1.35rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 35, 60, 0.22);
  border: 1px solid rgba(230, 126, 34, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.habitissimo-card-verified {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  width: 100%;
}

.habitissimo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.habitissimo-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.habitissimo-brand svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.habitissimo-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff6600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.badge-verified-pro {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #ecfdf5;
  color: #065f46;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-check-icon {
  width: 14px;
  height: 14px;
  color: #059669;
}

.habitissimo-card-body {
  margin-bottom: 1.25rem;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.habitissimo-rating-display {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.habitissimo-score {
  font-size: 2.85rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  letter-spacing: -0.03em;
}

.habitissimo-rating-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.habitissimo-stars {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.star-half {
  position: relative;
  display: inline-block;
  color: #cbd5e1;
}

.star-half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  overflow: hidden;
  color: #f59e0b;
}

.habitissimo-reviews-count {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.habitissimo-business-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.habitissimo-category {
  font-size: 0.83rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habitissimo-card-footer {
  margin-top: auto;
}

.btn-habitissimo-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background: #ff6600;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.72rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}

.btn-habitissimo-view:hover {
  background: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.35);
  color: #ffffff !important;
}

/* Tarjeta de Confianza Oficial Google Maps */
.google-widget-box {
  border-color: rgba(66, 133, 244, 0.28);
}

.google-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.google-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3c4043;
  letter-spacing: -0.02em;
  line-height: 1;
}

.badge-verified-google {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.badge-verified-google .badge-check-icon {
  color: #2563eb;
}

.btn-google-view {
  background: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

.btn-google-view:hover {
  background: #1557b0;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.35);
}

.habitissimo-hero-content {
  text-align: center;
}

.habitissimo-hero-content h1 {
  color: var(--color-white);
  font-size: 2.45rem;
  margin-bottom: 1rem;
}

.habitissimo-hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

@media (max-width: 1080px) {
  .habitissimo-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .habitissimo-hero-content {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 0.5rem;
  }
  .habitissimo-hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 680px) {
  .habitissimo-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .habitissimo-hero-content h1 {
    font-size: 1.95rem;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
}

/* ==========================================================================
   LOGOS DE PROVEEDORES / PARTNERS (SECCIÓN SOBRE NOSOTROS)
   ========================================================================== */
.section-about-intro {
  background-color: #e4effa; /* Fondo azul claro original */
}

.section-partners-blue {
  background-color: var(--color-primary); /* Azul intenso corporativo #006fb9 */
  color: var(--color-white);
  padding: 5rem 0;
}

.section-partners-blue .section-title h2 {
  color: var(--color-white);
}

.section-partners-blue .section-title p {
  color: rgba(255, 255, 255, 0.9);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.partner-item {
  background: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 110px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.partner-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.partner-item img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-box {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(0, 111, 185, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.contact-maps-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.contact-form-box {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 111, 185, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.form-checkbox input {
  margin-top: 0.2rem;
}

/* ==========================================================================
   SECCIÓN CTA GLOBAL
   ========================================================================== */
.cta-banner {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 2rem auto;
  opacity: 0.95;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #1e293b;
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr 1.4fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  background-color: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.02);
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary-light);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary-light);
  padding-left: 0.25rem;
}

.footer-contact-info p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: #cbd5e1;
}

.footer-contact-info a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.footer-contact-info a:hover {
  color: var(--color-primary-light);
}

.footer-schedule {
  white-space: nowrap;
}

.footer-maps-link {
  color: #93c5fd;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-maps-link:hover {
  color: var(--color-white);
  text-decoration: underline;
  transform: translateX(2px);
}

/* Redes Sociales en Footer */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer-social-link.social-facebook:hover {
  background-color: #1877f2;
}

.footer-social-link.social-tiktok:hover {
  background-color: #000000;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 40px;
  width: auto;
  opacity: 0.85;
}

/* ==========================================================================
   BOTONES FLOTANTES (WHATSAPP & LLAMADA)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-whatsapp {
  background-color: var(--color-whatsapp);
}

.float-whatsapp img {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal-content {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem-card-panel {
    grid-template-columns: 1fr;
    padding: 2.25rem;
    gap: 2rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   SECCIÓN DE GOOGLE REVIEWS Y TESTIMONIOS
   ========================================================================== */
.section-google-reviews {
  background: linear-gradient(180deg, #d8eaf8 0%, #e4effa 100%);
  padding: 5rem 0;
  border-bottom: 1px solid rgba(0, 111, 185, 0.22);
}

.google-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  padding: 0.65rem 1.35rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 60, 120, 0.1);
  border: 1px solid rgba(0, 111, 185, 0.25);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.google-badge-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 60, 120, 0.16);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.habitissimo-badge-header {
  border-color: rgba(230, 126, 34, 0.35);
}

a.habitissimo-badge-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.18);
  border-color: #e67e22;
  color: #d35400;
}

.google-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.google-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.google-review-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 111, 185, 0.18);
  border-radius: var(--radius);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 50, 110, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.google-review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 60, 130, 0.14);
  border-color: var(--color-primary);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.author-details h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.2;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.badge-local-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.72rem;
}

.review-stars-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.review-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: #059669;
  font-weight: 500;
}

/* Sección y Tarjetas de Testimonios Generales / Habitissimo */
.section-habitissimo-reviews {
  background: linear-gradient(180deg, #e4effa 0%, #d8eaf8 100%);
  padding: 5.5rem 0;
  border-top: 1px solid rgba(0, 111, 185, 0.15);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 111, 185, 0.18);
  border-radius: var(--radius);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 50, 110, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 60, 130, 0.14);
  border-color: var(--color-primary);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  font-style: italic;
  position: relative;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hero-home {
    background-image: linear-gradient(rgba(0, 35, 60, 0.65), rgba(0, 35, 60, 0.65)), url('../img/tejado-doctor-espina-768w.jpg');
    background-attachment: scroll; /* Mejora drástica de rendimiento en scroll móvil */
  }
  
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-item:not(:last-child)::after {
    display: none;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-bg-alt);
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--color-bg-light);
    padding: 0.25rem 0 0.5rem 1.5rem;
    display: none;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .grid-2, .grid-3, .grid-4, .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-home h1 {
    font-size: 2.1rem;
  }

  .hero-home p {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 0;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .problems-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.85rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .problem-chip {
    flex-shrink: 0;
  }

  .problem-card-panel {
    padding: 1.75rem 1.25rem;
  }

  .problem-card-content h3 {
    font-size: 1.5rem;
  }

  .problem-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .problem-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .section-parallax-pillars,
  .section-parallax-locations,
  .section-parallax-experience {
    background-attachment: scroll;
  }

  .honesty-commitment-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }

  .honesty-commitment-banner::before {
    width: 100%;
    height: 5px;
    bottom: auto;
  }

  .honesty-content h3 {
    font-size: 1.25rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .comparison-header,
  .comparison-list,
  .comparison-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Ergonomía táctil para botones flotantes en móviles */
  .floating-actions {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
  }

  .float-whatsapp img {
    width: 28px;
    height: 28px;
  }
}


