/* ==========================================================================
   SISTEMA DE DISEÑO DE LUJO CÁLIDO - FUNERARIA CRISTO REY (REBRANDING)
   ========================================================================== */

/* Importación de Fuentes Premium de Google */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Variables de Diseño Actualizadas (Basadas en el Logo Verde/Dorado) */
:root {
  /* Paleta Cromática Orgánica y Premium */
  --primary: #06261d;          /* Verde esmeralda profundo (seriedad y respeto) */
  --primary-light: #153c31;    /* Verde oliva profundo */
  --primary-dark: #03130f;     /* Verde bosque casi negro (sin negro puro) */
  --accent: #c5a059;           /* Dorado suave / acento premium (nobleza y fe) */
  --accent-hover: #b28e46;     /* Dorado oscuro */
  --accent-light: #f3f6f5;     /* Fondo secundario gris verdoso ultra suave */
  --accent-glow: rgba(197, 160, 89, 0.25);
  
  /* Fondos y Textos */
  --bg-light: #f3f6f5;
  --bg-card: #ffffff;
  --text-main: #1f302b;        /* Gris esmerilado carbón de alta legibilidad */
  --text-muted: #526661;      /* Verde esmeralda grisáceo suave */
  --text-light: #ffffff;
  
  /* Cobertura de Emergencia Sin Rojo (Verde Oliva con Brillo Dorado) */
  --urgent: #1b3f35;
  --urgent-hover: #295347;
  --urgent-glow: rgba(197, 160, 89, 0.4);
  --success: #3a7d44;          /* Verde de éxito cálido */
  
  /* Tipografías */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Cinzel', serif;
  
  /* Sombras y Efectos de Lujo */
  --shadow-sm: 0 4px 12px rgba(6, 38, 29, 0.02), 0 2px 4px rgba(6, 38, 29, 0.01);
  --shadow-md: 0 12px 30px rgba(6, 38, 29, 0.04), 0 4px 8px rgba(6, 38, 29, 0.02);
  --shadow-lg: 0 24px 50px rgba(6, 38, 29, 0.06), 0 10px 20px rgba(6, 38, 29, 0.03);
  --glass-bg: rgba(6, 38, 29, 0.96);
  --glass-border: rgba(197, 160, 89, 0.15);
  
  /* Bordes, Transiciones y Paddings */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  /* Dimensiones */
  --header-height: 115px;
  --container-max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  overflow-x: hidden; /* Evita cualquier desborde horizontal a nivel raíz */
  width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Enlaces y Enfoque */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

/* Títulos con Lora (Serif de Confianza y Calidez) */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

/* Divisor sutil y elegante de Títulos h2 */
.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 1.25rem auto 0;
}

.section-title p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0.75rem auto 0;
  font-size: 1.15rem;
  font-weight: 300;
}

/* ==========================================================================
   CLASES DE UTILIDAD
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0; /* Mayor espacio de respiración visual */
}

.bg-light-sec {
  background-color: var(--bg-light);
}

.text-accent {
  color: var(--accent);
}

.text-white {
  color: var(--text-light);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MICRO-ANIMACIONES DE ENTRADA (SCROLL REVEAL)
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Retardos escalonados para listas de elementos */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px; /* Bordes redondeados elegantes */
  gap: 0.6rem;
  transition: var(--transition-smooth);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--text-light);
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 4px 15px rgba(6, 38, 29, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
  border-color: var(--accent);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--text-light);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.25);
}

/* Botón Urgente 24h: Verde oliva profundo con brillo dorado palpitante (Sin rojos agresivos) */
.btn-urgent {
  background: linear-gradient(135deg, var(--urgent) 0%, var(--primary-dark) 100%);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 16px var(--urgent-glow);
  animation: pulse-gold 2.5s infinite;
}

.btn-urgent:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
  border-color: var(--accent);
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(197, 160, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
  }
}

/* ==========================================================================
   NAVEGACIÓN (HEADER & NAVBAR)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  height: 92px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 96px; /* Aumentado de 80px a 96px para mayor presencia */
  width: 96px;  /* Cuadrado perfecto para que sea circular */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent); /* Borde dorado noble */
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.25); /* Resplandor dorado sutil */
  transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
  height: 72px; /* Mayor presencia al hacer scroll */
  width: 72px;
}

.logo-text {
  display: none; /* Ahora usamos el logo PNG que ya incluye la marca de forma corporativa */
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.nav-item a {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

.nav-item a:hover {
  color: var(--text-light);
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

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

/* Hamburger Menú */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 1px;
  transition: var(--transition-smooth);
}

/* CTA móviles ocultos por defecto en Desktop */
.mobile-call-btn {
  display: none;
}

.mobile-drawer-cta {
  display: none;
}

/* ==========================================================================
   HERO SECTION (INICIO)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  color: var(--text-light);
  overflow: hidden;
  background-color: var(--primary-dark);
}

/* Imagen de fondo institucional real (Fachada de Funeraria Cristo Rey) con overlay de alta legibilidad */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Degradado lineal de izquierda a derecha en pantallas grandes para una excelente lectura del texto a la izquierda, */
  /* y máxima visualización nítida y brillante de la fachada física del local a la derecha. */
  background-image: linear-gradient(90deg, rgba(3, 19, 15, 0.95) 0%, rgba(3, 19, 15, 0.78) 50%, rgba(3, 19, 15, 0.2) 100%), 
                    url('funeraria.jpeg');
  background-size: cover;
  background-position: center 30%;
  z-index: 1;
  transform: scale(1.05);
  animation: zoomBackground 15s ease-out forwards;
}

@keyframes zoomBackground {
  to {
    transform: scale(1);
  }
}

.hero .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  padding-top: var(--header-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  /* Fondo ligeramente más oscuro con blur sofisticado para máxima lectura */
  background-color: rgba(6, 38, 29, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: 4rem; /* Título sofisticado con Cormorant Garamond */
  font-weight: 500; /* Ligeramente más grueso para mejorar la legibilidad sobre la fotografía */
  margin-bottom: 1.75rem;
  line-height: 1.1;
  color: var(--text-light);
  text-shadow: 0 4px 18px rgba(3, 19, 15, 0.65); /* Sombra de definición de alta calidad */
}

.hero-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95); /* Mayor contraste */
  margin-bottom: 3.5rem;
  font-weight: 300;
  max-width: 680px;
  text-shadow: 0 2px 10px rgba(3, 19, 15, 0.6); /* Sombra sutil de alta legibilidad */
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   SOBRE NOSOTROS (TRAYECTORIA)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6rem;
  align-items: center;
}

.about-pretitle {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: block;
}

.about-title {
  font-size: 3rem;
  margin-bottom: 1.75rem;
}

.about-paragraph {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
  font-weight: 300;
}

.about-paragraph strong {
  color: var(--primary);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}

.stat-item {
  border-left: 1px solid var(--accent);
  padding-left: 2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-visual:hover .about-image {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--glass-border);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.about-badge-icon {
  width: 52px;
  height: 52px;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--primary-dark);
}

.about-badge-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-dark);
}

.about-badge-text h4 {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about-badge-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   SECCIÓN DE PILARES INTERACTIVOS (NUESTAS COBERTURAS)
   ========================================================================== */
.pillars-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4.5rem;
  flex-wrap: wrap;
}

.pillar-tab {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 2.5rem;
  background-color: var(--bg-card);
  border: 1px solid rgba(6, 38, 29, 0.06);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.pillar-tab svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: var(--transition-smooth);
}

.pillar-tab:hover {
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-tab.active {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pillar-tab.active svg {
  fill: var(--accent);
}

.pillar-content-wrapper {
  position: relative;
  min-height: 480px;
}

.pillar-panel {
  display: none;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  grid-template-columns: 1.05fr 0.95fr;
  gap: 6rem;
  align-items: center;
}

.pillar-panel.active {
  display: grid;
}

.pillar-panel-info {
  display: flex;
  flex-direction: column;
}

.pillar-panel-badge {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pillar-panel-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.pillar-panel-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  font-weight: 300;
}

.pillar-features-list {
  list-style: none;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pillar-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 400;
}

.pillar-feature-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-weight: 700;
}

.pillar-panel-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/11;
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.pillar-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.pillar-panel-visual:hover .pillar-panel-img {
  transform: scale(1.04);
}

/* ==========================================================================
   CARDS GENERALES Y REDISEÑO DE SECCIONES
   ========================================================================== */

/* 1. Servicios Funerarios */
.funeral-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4.5rem;
}

.funeral-card {
  background-color: var(--bg-card);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 160, 89, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.funeral-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.4);
}

.funeral-card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.funeral-card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-light);
}

.funeral-card:hover .funeral-card-icon {
  background-color: var(--accent);
}

.funeral-card:hover .funeral-card-icon svg {
  fill: var(--primary-dark);
}

.funeral-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.funeral-card-desc {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.funeral-card-action {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.funeral-card-action svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  transition: var(--transition-fast);
}

.funeral-card:hover .funeral-card-action svg {
  transform: translateX(6px);
  fill: var(--accent-hover);
}

.funeral-card:hover .funeral-card-action {
  color: var(--accent-hover);
}

/* 2. Cementerio Previsión */
.cemetery-prevision {
  display: flex;
  background-color: var(--primary-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text-light);
  margin-top: 4.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.cemetery-prevision-text {
  flex: 1.15;
  padding: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cemetery-prevision-title {
  color: var(--text-light);
  font-size: 2.75rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.cemetery-prevision-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3.5rem;
  font-size: 1.1rem;
  font-weight: 300;
}

.cemetery-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.benefit-card-dark {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.benefit-card-dark svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.benefit-card-dark h4 {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.benefit-card-dark p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 300;
}

.cemetery-prevision-img-sec {
  flex: 0.85;
  position: relative;
}

.cemetery-prevision-img-sec::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, var(--primary-dark) 0%, transparent 60%);
}

.cemetery-prevision-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* UniVidas Intro Card Styles */
.unividas-intro-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  margin-bottom: 6rem;
  background-color: var(--accent-light);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 160, 89, 0.12);
}

.unividas-intro-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.unividas-intro-logo {
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--accent);
  background-color: var(--bg-card);
  align-self: flex-start;
}

.unividas-intro-title {
  font-size: 2rem;
  margin-top: 1rem;
  color: var(--primary);
  font-family: var(--font-serif);
  font-weight: 500;
}

.unividas-intro-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

.unividas-intro-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(197, 160, 89, 0.15);
  height: 100%;
  min-height: 320px;
}

.unividas-intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.unividas-intro-card:hover .unividas-intro-img {
  transform: scale(1.02);
}

/* 3. Seguros de Vida */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4.5rem;
}

.insurance-card {
  background-color: var(--bg-card);
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 160, 89, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.insurance-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.4);
}

.insurance-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1.5px solid var(--accent);
  transition: var(--transition-smooth);
}

.insurance-card:hover .insurance-card-img {
  transform: scale(1.04);
}

.insurance-card-body {
  padding: 2.5rem 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insurance-card.featured {
  border: 1.5px solid var(--accent);
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.insurance-card.featured .insurance-title,
.insurance-card.featured h4 {
  color: var(--text-light);
}

.insurance-card.featured .insurance-desc {
  color: rgba(255, 255, 255, 0.85);
}

.insurance-badge {
  position: absolute;
  top: 1.75rem;
  right: -2.5rem;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 3rem;
  transform: rotate(45deg);
  letter-spacing: 0.08em;
}

.insurance-card-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.insurance-card-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent);
}

.insurance-title {
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.insurance-subtitle {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  display: block;
}

.insurance-desc {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.insurance-features {
  list-style: none;
  margin-bottom: 3rem;
}

.insurance-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.insurance-features li svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

.insurance-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   TESTIMONIOS (CONSUELO Y CALIDEZ EMOCIONAL)
   ========================================================================== */
.testimonials {
  position: relative;
  background-color: var(--bg-light);
  overflow: hidden;
}

.testimonials-slider {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  display: none;
  animation: fadeIn 0.6s ease;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 4rem;
}

.testimonial-slide.active {
  display: flex;
}

.testimonial-quote-icon {
  width: 56px;
  height: 56px;
  fill: rgba(197, 160, 89, 0.18);
  margin-bottom: 2rem;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--primary-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 850px;
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Indicadores de Testimonios */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 3.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(6, 38, 29, 0.12);
  transition: var(--transition-smooth);
}

.testimonial-dot.active {
  background-color: var(--accent);
  transform: scale(1.3);
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.testimonial-arrow svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

.testimonial-arrow:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.testimonial-arrow:hover svg {
  fill: var(--text-light);
}

.testimonial-arrow.prev { left: -1.5rem; }
.testimonial-arrow.next { right: -1.5rem; }

/* ==========================================================================
   CONTACTO, MAPA Y FORMULARIO PREMIUM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  font-weight: 300;
}

.contact-details {
  list-style: none;
  margin-bottom: 3.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary-light);
}

.contact-detail-text h4 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
}

.contact-detail-text p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  overflow-wrap: break-word; /* Previene desbordes por palabras largas o emails en smartphones */
  word-break: break-word;
}

/* Mapa Ficticio Corporativo */
.contact-map-wrapper {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(197, 160, 89, 0.15);
  height: 220px;
  position: relative;
}

.contact-map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  background-image: linear-gradient(135deg, rgba(6, 38, 29, 0.02) 25%, transparent 25%, transparent 50%, rgba(6, 38, 29, 0.02) 50%, rgba(6, 38, 29, 0.02) 75%, transparent 75%, transparent 100%);
  background-size: 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.map-marker {
  width: 44px;
  height: 44px;
  fill: var(--accent);
  margin-bottom: 0.5rem;
  animation: float-marker 3s ease-in-out infinite;
}

.map-btn {
  margin-top: 1rem;
  background: var(--primary);
  color: var(--text-light);
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

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

/* Formulario Elegante */
.contact-form-wrapper {
  background-color: var(--bg-card);
  padding: 4.5rem 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 160, 89, 0.08);
}

.contact-form-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.contact-form-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.6rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-light);
  border: 1px solid rgba(6, 38, 29, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1.1rem;
}

/* Estado del formulario */
.form-status {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(58, 125, 68, 0.1);
  color: var(--success);
  border: 1px solid rgba(58, 125, 68, 0.2);
}

/* ==========================================================================
   WIDGETS Y BOTÓN DE WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.whatsapp-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-bubble svg {
  width: 34px;
  height: 34px;
  fill: var(--text-light);
}

.whatsapp-bubble:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5);
}

.whatsapp-badge {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition-smooth);
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-widget:hover .whatsapp-badge {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   SECCIÓN DE UBICACIONES (CÓMO LLEGAR)
   ========================================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  margin-top: 4.5rem;
}

.location-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 160, 89, 0.12);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 320px;
  transition: var(--transition-smooth);
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.3);
}

.location-card-body {
  padding: 3.5rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.location-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--accent-light);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}

.location-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.location-icon {
  width: 52px;
  height: 52px;
  background-color: var(--primary-light);
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
}

.location-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.location-title {
  font-size: 1.65rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.location-subtitle {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.location-desc {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.location-details-list {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(197, 160, 89, 0.08);
  padding-top: 1.5rem;
}

.location-details-list li {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 300;
}

.location-details-list li strong {
  font-weight: 500;
  color: var(--primary);
}

.location-btn {
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
}

.location-map-sec {
  position: relative;
  width: 100%;
  height: 100%;
  border-top: 1.5px solid rgba(197, 160, 89, 0.15);
}

.location-map {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(15%) contrast(95%);
  transition: var(--transition-smooth);
}

.location-card:hover .location-map {
  filter: grayscale(0%) contrast(100%);
}

/* ==========================================================================
   FOOTER PREMIUM Y CORPORATIVO
   ========================================================================== */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 6.5rem 0 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1.25fr;
  gap: 4.5rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo-img {
  height: 96px; /* Aumentado para visibilidad y consistencia */
  width: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
  align-self: flex-start;
}

.footer-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 160, 89, 0.15);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.social-link:hover svg {
  fill: var(--primary-dark);
  transform: scale(1.1);
}

.footer-col h4 {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copy {
  margin: 0;
  font-weight: 300;
}

.footer-copyright-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.footer-credit {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  margin: 0;
}

.footer-credit a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer-credit a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.footer-bottom-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-bottom-links a {
  font-weight: 300;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   MEDIA QUERIES (DISEÑO RESPONSIVO - MOBILE FIRST)
   ========================================================================== */

/* Laptop / Desktop Mediano (hasta 1100px) */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

/* Tablet Grande / Laptop (hasta 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .section-padding {
    padding: 6rem 0;
  }

  h2 {
    font-size: 2.25rem;
  }

  /* Grid Layouts */
  .about-grid,
  .pillar-panel,
  .contact-grid,
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-visual,
  .location-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .about-visual {
    aspect-ratio: 16/10;
  }

  .funeral-cards-grid,
  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cemetery-prevision {
    flex-direction: column;
  }

  .cemetery-prevision-img-sec {
    height: 350px;
    order: -1;
  }

  .cemetery-prevision-img-sec::after {
    background-image: linear-gradient(to bottom, transparent 60%, var(--primary-dark) 100%);
  }

  .cemetery-prevision-text {
    padding: 4rem 3rem;
  }

  .unividas-intro-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
  }
  
  .unividas-intro-visual {
    min-height: 280px;
    height: 320px;
  }
}

/* Tablet Pequeña / Pantallas Medianas (hasta 900px) */
@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

  .header.scrolled {
    height: 64px;
  }

  /* Menú Hamburguesa & Cabecera Móvil Premium */
  .menu-toggle {
    display: flex;
  }

  .logo-img {
    height: 64px;
    width: 64px;
    transition: var(--transition-smooth);
  }

  .header.scrolled .logo-img {
    height: 52px;
    width: 52px;
  }

  /* Botón de llamada directa circular (Urgencias 24h) en header bar */
  .mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--urgent) 0%, var(--primary-dark) 100%);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 15px var(--urgent-glow);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1050;
    margin-left: auto;
    margin-right: 1.25rem;
  }

  .mobile-call-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    transition: var(--transition-fast);
  }

  .mobile-call-btn:hover, .mobile-call-btn:active {
    transform: scale(1.08);
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
  }

  .mobile-call-btn:hover svg, .mobile-call-btn:active svg {
    fill: var(--primary-dark);
  }

  /* Menú Desplegable Lateral Seguro y Premium mediante Hardware-Accelerated Transforms */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1.5px solid var(--glass-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 7.5rem 3rem 4rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    box-shadow: -10px 0 35px rgba(3, 19, 15, 0.6);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Animación de entrada staggered para los ítems del menú móvil */
  .nav-links .nav-item {
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active .nav-item:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.active .nav-item:nth-child(2) { transition-delay: 0.10s; }
  .nav-links.active .nav-item:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active .nav-item:nth-child(4) { transition-delay: 0.20s; }
  .nav-links.active .nav-item:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.active .nav-item:nth-child(6) { transition-delay: 0.30s; }

  .nav-links .nav-item a {
    font-size: 1.15rem;
    font-weight: 500;
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    letter-spacing: 0.1em;
  }

  .nav-links .nav-item a:hover,
  .nav-links .nav-item.active a {
    color: var(--accent);
  }

  .nav-links .nav-item a::after {
    display: none; /* Quitamos la línea de hover de escritorio */
  }

  /* Botón de urgencias dentro del drawer (mobile-only) */
  .mobile-drawer-cta {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-drawer-cta .btn-urgent {
    width: 100%;
    padding: 1.1rem;
    font-size: 0.95rem;
    display: inline-flex;
    justify-content: center;
  }

  .nav-actions {
    display: none; /* Consolidado en responsive */
  }

  /* Animación del Hamburger Toggle */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--accent);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--accent);
  }

  /* Hero Section Responsivo con centrado elegante */
  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
  }

  .hero .container {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
    padding-top: 0;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(2.25rem, 6vw, 3.25rem); /* Tipografía fluida responsiva */
    line-height: 1.15;
  }

  .hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.75rem;
    line-height: 1.6;
    max-width: 580px;
  }

  .hero-actions {
    justify-content: center;
    gap: 1.25rem;
  }

  /* Carrusel de Pilares Interactivos Swipeable sin Márgenes Negativos Peligrosos */
  .pillars-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0.5rem 0 1.5rem;
    margin-bottom: 3rem;
    gap: 1rem;
    width: 100%;
  }

  .pillars-nav::-webkit-scrollbar {
    display: none; /* Oculta barra de desplazamiento */
  }

  .pillar-tab {
    flex: 0 0 auto; /* Evita compresión */
    padding: 1rem 1.75rem;
    font-size: 0.85rem;
  }
}

/* Móvil Grande / Tablet (hasta 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }

  /* Resguardo del padding del contenedor global en tablets */
  .container {
    padding: 0 1.5rem;
  }

  /* Grid en Columna Única Proporcionada */
  .funeral-cards-grid,
  .insurance-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  /* Tarjetas centradas y proporcionadas con paddings reducidos en móvil */
  .funeral-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
  }
  
  .insurance-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .insurance-card-img {
    aspect-ratio: 16/10;
    height: auto;
  }

  .insurance-card-body {
    padding: 2.25rem 1.75rem 2.5rem;
  }

  /* Rediseño de Pilares para Móvil */
  .pillar-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .pillar-panel-visual {
    order: -1;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 16/10;
  }

  .pillar-panel-info {
    text-align: center;
    align-items: center;
  }

  .pillar-panel-title {
    font-size: 2rem;
  }

  .pillar-panel-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .pillar-features-list {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 2.5rem;
    text-align: left;
  }

  .pillar-feature-item {
    justify-content: flex-start;
  }

  /* Cementerio Previsión */
  .cemetery-prevision-text {
    padding: 3.5rem 2rem;
    text-align: center;
    align-items: center;
  }

  .cemetery-prevision-title {
    font-size: 2.25rem;
  }

  .cemetery-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: left;
    width: 100%;
    max-width: 420px;
  }

  /* Testimonios adaptados */
  .testimonial-text {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .testimonial-slide {
    padding: 1.5rem 3.5rem; /* Aumentado padding horizontal para alojar flechas en móvil */
  }

  .testimonial-quote-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.25rem;
  }

  .testimonial-dots {
    margin-top: 2rem;
  }

  .testimonial-dot {
    width: 12px; /* Más grandes para facilitar el toque con el dedo */
    height: 12px;
  }

  .testimonial-arrow {
    display: flex;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
  }

  .testimonial-arrow.prev {
    left: 0.5rem;
  }

  .testimonial-arrow.next {
    right: 0.5rem;
  }

  /* Formulario de Contacto */
  .contact-form-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .form-control {
    font-size: 16px; /* Impide el molesto auto-zoom de iOS Safari */
    padding: 0.9rem 1.1rem;
    white-space: normal;
    word-break: break-word;
  }

  /* Footer Sencillo, Centrado y Elegante */
  .footer {
    padding: 5rem 0 2.5rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand .logo-img {
    align-self: center;
    height: 80px;
    width: 80px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col h4 {
    margin-bottom: 1.25rem;
  }

  .footer-links {
    display: inline-block;
    text-align: center;
  }

  .footer-links a {
    word-break: break-all;
    display: block;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    flex-direction: column;
    padding-top: 2rem;
  }

  .footer-copyright-group {
    text-align: center;
    align-items: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .whatsapp-badge {
    display: none; /* Desactivado en móvil para no tapar pantalla */
  }

  .whatsapp-bubble {
    width: 56px;
    height: 56px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .whatsapp-widget {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-bubble svg {
    width: 30px;
    height: 30px;
  }
}

/* Móvil Pequeño / Pantallas Angostas (hasta 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .header.scrolled {
    height: 54px;
  }

  /* Máximo aprovechamiento de pantalla en teléfonos pequeños */
  .container {
    padding: 0 1.25rem;
  }

  .logo-img {
    height: 48px;
    width: 48px;
  }

  .mobile-call-btn {
    width: 38px;
    height: 38px;
    margin-right: 0.85rem;
  }

  .mobile-call-btn svg {
    width: 16px;
    height: 16px;
  }

  .header.scrolled .logo-img {
    height: 40px;
    width: 40px;
  }

  .section-padding {
    padding: 3rem 0;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  p, .about-paragraph, .funeral-card-desc, .location-desc, .insurance-desc, .contact-info-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 300;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .stat-item {
    padding-left: 1.5rem;
  }

  .stat-number {
    font-size: 2.75rem;
  }

  /* visual about responsive */
  .about-visual {
    aspect-ratio: 4/3;
  }

  .about-badge {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .about-badge-icon {
    width: 36px;
    height: 36px;
  }

  .about-badge-icon svg {
    width: 18px;
    height: 18px;
  }

  .about-badge-text h4 {
    font-size: 0.85rem;
  }

  .about-badge-text p {
    font-size: 0.7rem;
  }

  /* Elementos de Hero Stacking */
  .hero {
    padding: 6.5rem 0 4.5rem;
  }

  .hero-badge {
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: 1.85rem;
    margin-bottom: 1rem;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 1rem 1.75rem;
  }

  /* Pilares interactivos nav responsive sin desbordes */
  .pillars-nav {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .pillar-panel-visual {
    aspect-ratio: 16/11;
  }

  /* UniVidas Intro Card Mobile Style Overrides */
  .unividas-intro-card {
    padding: 2rem 1.25rem;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .unividas-intro-logo {
    max-width: 200px;
    align-self: center;
  }

  .unividas-intro-content {
    text-align: center;
    gap: 1rem;
  }

  .unividas-intro-title {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    text-align: center;
  }

  .unividas-intro-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
  }

  .unividas-intro-visual {
    min-height: 200px;
    height: 240px;
  }

  /* Ajuste fino de padding en tarjetas de seguros para pantallas angostas */
  .insurance-card-body {
    padding: 2rem 1.25rem 2.25rem;
  }

  /* Cementerio previsión imagen */
  .cemetery-prevision-img-sec {
    height: 250px;
  }

  /* Ubicaciones responsivo */
  .location-card {
    grid-template-rows: auto 240px;
  }

  .location-card-body {
    padding: 2.5rem 1.75rem 2rem;
  }

  .location-badge {
    margin-bottom: 1.25rem;
  }

  .location-title {
    font-size: 1.45rem;
  }

  .location-details-list {
    margin-bottom: 1.75rem;
  }
}
