/* ==========================================================================
   CSS PRINCIPAL - FUNERARIA VELARÍA
   Estilo Premium de Lujo: Respeto, Dignidad, Compasión
   ========================================================================== */

/* 1. CONFIGURACIÓN DE VARIABLES Y SISTEMA DE DISEÑO */
:root {
  /* Paleta de Colores Velaría (Borgoña y Cobre) */
  --color-primary: #B87333; /* Cobre suave */
  --color-primary-light: #D8A07B; /* Soft Copper */
  --color-primary-dark: #C47A52; /* Copper Gold */
  --color-accent: #D8A07B;
  --color-accent-light: #F3E8DE; /* Warm Ivory */
  
  /* Fallbacks para estilos en línea */
  --accent-gold: #B87333;
  --accent-light-gold: #D8A07B;
  
  /* Escala de Grises / Neutros (Tonos cálidos y Borgoña) */
  --bg-dark: #2B0710; /* Deep Wine (Borgoña profundo) */
  --bg-dark-alt: #4B0F1D; /* Borgoña Velvet */
  --bg-light: #FDF9F1; /* Color Hueso */
  --bg-light-alt: #F0E3D1; /* Color Beige claro */
  --text-dark: #2B0710; /* Borgoña profundo para el texto */
  --text-dark-muted: #6E6461; /* Smoke Gray */
  --text-light: #FAF8F5;
  --text-light-muted: #D8A07B;
  
  /* Gradientes de Cobre Premium */
  --gold-gradient: linear-gradient(135deg, #D8A07B 0%, #B87333 50%, #C47A52 100%);
  --gold-gradient-hover: linear-gradient(135deg, #F3E8DE 0%, #D8A07B 50%, #B87333 100%);
  --dark-gradient: linear-gradient(180deg, rgba(43, 7, 16, 0.9) 0%, rgba(75, 15, 29, 0.95) 100%);

  /* Fuentes */
  --font-headings: 'Playfair Display', Georgia, serif;
  --font-body: 'Mulish', Arial, sans-serif;
  
  /* Sombras y Efectos */
  --shadow-sm: 0 2px 8px rgba(43, 7, 16, 0.05);
  --shadow-md: 0 8px 30px rgba(43, 7, 16, 0.12);
  --shadow-lg: 0 16px 40px rgba(184, 115, 51, 0.15); /* Sombra cobre */
  --shadow-gold: 0 0 20px rgba(184, 115, 51, 0.3);
  --glass-bg: rgba(43, 7, 16, 0.95); /* Deep Wine (Borgoña profundo) */
  --glass-border: rgba(184, 115, 51, 0.25);
  
  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Medidas de Contenedor */
  --container-width: 1200px;
}

/* 2. REINICIO Y ESTILOS GENERALES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.3;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.text-center {
  text-align: center;
}

.text-white h1, 
.text-white h2, 
.text-white h3, 
.text-white h4, 
.text-white p,
.inner-hero-section h1,
.inner-hero-section h2,
.inner-hero-section h3,
.inner-hero-section p,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.step-card.highlight h1,
.step-card.highlight h2,
.step-card.highlight h3,
.step-card.highlight p {
  color: var(--text-light) !important;
}

/* 3. BOTONES Y COMPONENTES REUTILIZABLES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #121214 !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background-color: transparent !important;
  color: var(--bg-dark) !important; /* Charcoal for perfect contrast on light backgrounds */
  border: 1.5px solid var(--color-primary) !important;
}

.btn-secondary:hover {
  background-color: var(--color-primary) !important;
  color: #121214 !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Modificadores para botones secundarios en secciones con fondo oscuro */
.hero-section .btn-secondary,
.text-white .btn-secondary,
.inner-hero-section .btn-secondary,
.inner-hero-content .btn-secondary,
.step-card.highlight .btn-secondary {
  background-color: transparent !important;
  color: var(--text-light) !important;
  border-color: var(--color-primary-light) !important;
}

.hero-section .btn-secondary:hover,
.text-white .btn-secondary:hover,
.inner-hero-section .btn-secondary:hover,
.inner-hero-content .btn-secondary:hover,
.step-card.highlight .btn-secondary:hover {
  background-color: var(--color-primary) !important;
  color: #121214 !important;
  border-color: var(--color-primary) !important;
}

.btn-secondary-plan {
  background-color: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
}

.btn-secondary-plan:hover {
  background: var(--gold-gradient);
  color: #121214 !important;
  border-color: transparent;
  transform: translateY(-2px);
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.icon-btn {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Etiquetas de Sección */
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.section-tag-gold {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent) !important;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-dark-muted);
  max-width: 700px;
  margin: 0 auto 60px auto;
}

/* ==================== 1. BARRA DE EMERGENCIA (TOP BAR) ==================== */
.top-emergency-bar {
  background-color: #0b0b0c;
  color: var(--text-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
  font-size: 0.85rem;
  position: relative;
  z-index: 1001;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.emergency-badge {
  background-color: rgba(220, 53, 69, 0.15);
  color: #ff6b6b;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ff6b6b;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

.emergency-text {
  font-weight: 500;
  color: var(--text-light);
}

.emergency-phone-link {
  color: var(--color-accent) !important;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.emergency-phone-link:hover {
  color: var(--text-light) !important;
  text-shadow: var(--shadow-gold);
}

.icon-phone-inline {
  width: 14px;
  height: 14px;
}

/* ==================== 2. HEADER Y NAVEGACIÓN (GLASS HEADER) ==================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 110px; /* Aumentado de 52px para mayor visibilidad */
  pointer-events: none; /* Permite clickear el enlace padre */
  /* Aumentamos el brillo y saturación del logo mismo para que resalte sobre el fondo oscuro sin ensuciarlo con sombras claras */
  filter: brightness(1.6) saturate(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Menú de Navegación */
.nav-menu > ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light-muted) !important;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover, 
.nav-link.active {
  color: var(--text-light) !important;
}

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

/* --- Dropdown Menu Estilos --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 12px 0;
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  flex-direction: column !important; /* Forzar columna */
  gap: 0 !important;
  list-style: none;
  margin-top: 10px;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: var(--bg-dark);
  border-left: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
}

.dropdown-menu::after {
  /* Puente invisible para evitar que se cierre el menú al pasar el cursor por el espacio en blanco */
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-item {
  display: block;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light-muted) !important;
  transition: var(--transition-fast);
  text-align: left;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item.active {
  color: var(--text-light) !important;
  background-color: rgba(197, 168, 128, 0.15);
  padding-left: 28px;
}

/* Mostrar Dropdown en escritorio (Controlado estrictamente por JS para evitar bugs) */
@media (min-width: 769px) {
  .dropdown.open-desktop .dropdown-menu {
    display: flex !important;
  }
}

.arrow {
  font-size: 0.65rem;
  margin-left: 3px;
  display: inline-block;
  transition: var(--transition-fast);
  color: var(--color-accent);
}

.dropdown:hover .arrow, .dropdown.open .arrow {
  transform: rotate(180deg);
}

/* Botón de WhatsApp en Header */
.btn-whatsapp-header {
  background-color: #25d366;
  color: #ffffff !important;
  font-size: 0.8rem;
  padding: 10px 18px;
  gap: 8px;
  font-weight: 700;
}

.btn-whatsapp-header:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.icon-whatsapp {
  width: 15px;
  height: 15px;
}

/* Toggle del Menú Móvil */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-fast);
}

/* ==================== 3. HERO RESPETUOSO (HERO SECTION) ==================== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 680px;
}

.hero-subtitle {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
}

.icon-badge {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

/* ==================== 4. ASISTENCIA INMEDIATA (SOS SECTION) ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.step-card:nth-child(2) {
  margin-top: 40px;
}

.step-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 20px 20px 4px 20px; /* Unique asymmetrical shape */
  border-top: 3px solid var(--color-primary-light);
  padding: 40px 30px;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(165, 121, 73, 0.1);
  line-height: 1;
}

.step-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(165, 121, 73, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.step-card:hover .step-icon-wrapper {
  background: var(--gold-gradient);
  color: #121214;
}

.step-icon {
  width: 28px;
  height: 28px;
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 15px;
  color: var(--bg-dark);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.step-link {
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
}

.step-link:hover {
  color: var(--color-accent);
}

/* Tarjeta Destacada */
.step-card.highlight {
  background-color: var(--bg-dark);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.step-card.highlight .step-title {
  color: var(--text-light);
}

.step-card.highlight .step-desc {
  color: rgba(255, 255, 255, 0.7);
}

.step-card.highlight .step-icon-wrapper {
  background: var(--gold-gradient);
  color: #121214;
}

.step-tag-highlight {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  background-color: rgba(197, 168, 128, 0.15);
  padding: 4px 12px;
  border-radius: 4px;
}

/* ==================== 5. QUIÉNES SOMOS (TRUST SECTION) ==================== */
.nosotros-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-visual {
  position: relative;
  padding-right: 30px;
}

.image-wrapper {
  position: relative;
  z-index: 2;
}

.rounded {
  border-radius: 8px;
}

.shadow {
  box-shadow: var(--shadow-md);
}

.badge-float {
  position: absolute;
  bottom: -20px;
  right: 0;
  z-index: 10;
  background-color: var(--bg-dark);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 24px;
  width: 200px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

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

.badge-float-num {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.badge-float-text {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nosotros-content p {
  font-size: 1.05rem;
  color: var(--text-dark-muted);
  margin-bottom: 24px;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 35px;
}

.value-item {
  display: flex;
  gap: 16px;
}

.value-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(165, 121, 73, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--bg-dark);
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.92rem;
  color: var(--text-dark-muted);
  margin-bottom: 0;
}

/* ==================== 6. NUESTROS SERVICIOS ==================== */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.service-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(197, 168, 128, 0.1);
  border-radius: 8px;
  padding: 35px 25px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 380px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background-color: rgba(165, 121, 73, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--gold-gradient);
  color: #121214;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--bg-dark);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-action-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.service-action-link:hover {
  color: var(--color-accent);
}

.service-badge-include {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background-color: rgba(165, 121, 73, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

/* ==================== 7. PLANES FUNERARIOS DE SEPELIO ==================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 8px;
  padding: 40px 24px;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.plan-header {
  text-align: center;
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.5rem;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

.plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-dark);
  background-color: rgba(165, 121, 73, 0.08);
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.plan-subtitle {
  font-size: 0.82rem;
  color: var(--text-dark-muted);
  line-height: 1.4;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-dark-muted);
  margin-bottom: 35px;
  flex-grow: 1;
}

.plan-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.plan-footer {
  margin-top: auto;
}

.bullet-check {
  color: var(--color-primary);
  margin-right: 6px;
  font-weight: bold;
}

/* Plan Recomendado Destacado */
.plan-card.recommended {
  background-color: var(--bg-dark);
  border: 2px solid var(--color-primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.plan-card.recommended:hover {
  box-shadow: var(--shadow-gold);
}

.recommended-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold-gradient);
  color: #121214;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 30px;
  width: 80%;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.plan-card.recommended .plan-name {
  color: var(--text-light);
}

.plan-card.recommended .plan-tag {
  background-color: rgba(197, 168, 128, 0.2);
  color: var(--color-accent);
}

.plan-card.recommended .plan-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.plan-card.recommended .plan-features {
  color: rgba(255, 255, 255, 0.8);
}

.plan-card.recommended .bullet-check {
  color: var(--color-accent);
}

.plan-card.recommended .plan-header {
  border-bottom-color: rgba(197, 168, 128, 0.2);
}

/* ==================== 8. SERVICIO DE CREMACIÓN ==================== */
.cremacion-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cremacion-content .section-title {
  margin-bottom: 24px;
}

.cremacion-content p {
  font-size: 1.05rem;
  color: var(--text-dark-muted);
  margin-bottom: 30px;
}

.cremacion-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.c-bullet {
  display: flex;
  gap: 16px;
}

.c-bullet-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: rgba(165, 121, 73, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.c-bullet-text {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.5;
}

.cremacion-cta-block {
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  padding-top: 30px;
}

.cta-price-info {
  font-size: 0.88rem !important;
  font-style: italic;
  margin-bottom: 16px !important;
}

/* ==================== 9. PLANES PREVENTIVOS (PREVISIÓN) ==================== */
.prevision-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.prevision-title {
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.prevision-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 6px;
  padding: 24px;
}

.benefit-card h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-accent) !important;
  margin-bottom: 10px;
  font-weight: 700;
}

.benefit-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Tarjeta de Formulario */
.prevision-form-card {
  background-color: var(--bg-light);
  border: 1px solid var(--color-primary-light);
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark) !important;
}

.prevision-form-card h3 {
  font-size: 1.5rem;
  color: var(--bg-dark) !important;
  margin-bottom: 10px;
  text-align: center;
}

.prevision-form-card p {
  font-size: 0.85rem;
  color: var(--text-dark-muted) !important;
  margin-bottom: 30px;
  text-align: center;
}

/* Estilos para Formularios Modificados */
.styled-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.styled-form label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  letter-spacing: 0.5px;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  font-family: var(--font-body);
  padding: 12px 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(165, 121, 73, 0.25);
  background-color: var(--bg-light-alt);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(165, 121, 73, 0.15);
  background-color: var(--bg-light);
}

.form-success-alert {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 10. PREGUNTAS FRECUENTES (FAQ ACORDEÓN) ==================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: 6px;
  background-color: var(--bg-light);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-dark);
  transition: var(--transition-fast);
}

.faq-question:focus {
  outline: none;
}

.faq-icon-arrow {
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active {
  border-color: var(--color-primary);
}

.faq-item.active .faq-question {
  color: var(--color-primary-dark);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 30px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

/* ==================== 11. TESTIMONIOS ==================== */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.testimonial-text {
  font-family: var(--font-headings);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--bg-dark);
  line-height: 1.6;
  margin-bottom: 30px;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  font-weight: 500;
}

/* Controles de Slider */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background: var(--gold-gradient);
  color: #121214;
  border-color: transparent;
}

/* ==================== 12. CONTACTO, FORMULARIO Y MAPA ==================== */
.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.contacto-intro {
  font-size: 1.05rem;
  color: var(--text-dark-muted);
  margin-bottom: 40px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: rgba(165, 121, 73, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark-muted);
  margin-bottom: 4px;
}

.info-text a,
.info-text span {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.info-text a:hover {
  color: var(--color-primary);
}

/* Simulación de Mapa */
.map-placeholder {
  position: relative;
  background-color: #1c1c1e;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  height: 200px;
  overflow: hidden;
}

.map-placeholder .btn-secondary {
  background-color: transparent !important;
  color: var(--text-light) !important;
  border: 1.5px solid var(--color-primary-light) !important;
}

.map-placeholder .btn-secondary:hover {
  background-color: var(--color-primary) !important;
  color: #121214 !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.map-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 30px rgba(165, 121, 73, 0.1);
  pointer-events: none;
  z-index: 2;
}

.map-link-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
}

/* Tarjeta Formulario de Contacto */
.contacto-form-wrapper {
  position: sticky;
  top: 100px;
}

.contacto-form-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(197, 168, 128, 0.2);
  padding: 40px 30px;
}

.contacto-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contacto-form-card p {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
  margin-bottom: 30px;
}

/* ==================== 13. PIE DE PÁGINA (FOOTER) ==================== */
.main-footer {
  background-color: #0b0b0c;
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 20px 0;
  border-top: 1px solid rgba(197, 168, 128, 0.1);
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-desc {
  margin-top: 20px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-logo {
  height: 90px; /* Aumentado de 48px para mayor visibilidad */
  pointer-events: none;
  filter: brightness(1.6) saturate(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 168, 128, 0.15);
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--gold-gradient);
  color: #121214;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.85rem;
}

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

.footer-contact p {
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact strong {
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.footer-link-tel {
  color: var(--color-accent) !important;
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 0.78rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.4) !important;
}

.footer-legal-links a:hover {
  color: var(--color-accent) !important;
}

/* Widget Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #ffffff !important;
  height: 54px;
  border-radius: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-icon {
  width: 26px;
  height: 26px;
}

.whatsapp-float-tooltip {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   4. ESTILOS RESPONSIVOS (MOBILE-FIRST & BREAKPOINTS)
   ========================================================================== */

/* Tablet y Pantallas Medianas (max-width: 1024px) */
@media (max-width: 1024px) {
  .services-grid {
    /* Centrado dinámico con flexbox */
  }
  
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .plan-card.recommended {
    transform: none; /* Evita que rompa layout al no estar centrada en 4 columnas */
  }
  
  .plan-card.recommended .recommended-badge {
    width: 70%;
  }

  .contacto-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contacto-form-wrapper {
    position: static;
  }

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

/* Phablets y Tablets Pequeñas (max-width: 768px) */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
  }
  
  /* Cabecera y Menú Móvil */
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 77px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 77px);
    background-color: var(--bg-dark);
    padding: 40px 24px;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(197, 168, 128, 0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  /* Dropdown en móvil */
  .nav-menu .dropdown {
    width: 100%;
  }
  
  .nav-menu .dropdown-menu {
    display: none !important;
    position: static !important;
    transform: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 5px 20px !important;
    min-width: auto !important;
    margin-top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  .nav-menu .dropdown-menu::before {
    display: none !important;
  }
  
  .nav-menu .dropdown-item {
    padding: 6px 12px !important;
    font-size: 1.05rem !important;
    color: var(--text-light-muted) !important;
  }
  
  .nav-menu .dropdown-item:hover,
  .nav-menu .dropdown-item.active {
    color: var(--text-light) !important;
    background-color: transparent !important;
    padding-left: 16px !important;
  }
  
  .nav-menu .arrow {
    display: none !important;
  }
  
  /* Hero */
  .hero-section {
    padding: 100px 0 60px 0;
    min-height: auto;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }
  
  /* SOS Steps */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Nosotros */
  .nosotros-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nosotros-visual {
    padding-right: 0;
  }

  .nosotros-content {
    text-align: center;
  }

  .nosotros-content .btn {
    margin: 15px auto 0 auto;
  }
  
  /* Cremación */
  .cremacion-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cremacion-visual {
    order: -1;
  }

  .cremacion-content {
    text-align: center;
  }

  .cremacion-bullets {
    align-items: center;
    text-align: left;
  }

  .cremacion-content .btn {
    margin: 15px auto 0 auto;
  }

  /* Previsión */
  .prevision-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .prevision-content-left {
    text-align: center;
  }

  .prevision-content-left .btn {
    margin: 15px auto 0 auto;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  /* Contacto */
  .contacto-info {
    text-align: center;
  }

  .contacto-info .info-items {
    align-items: center;
    text-align: left;
  }

  .contacto-info .btn {
    margin: 15px auto 0 auto;
  }
}

/* Teléfonos Móviles Pequeños (max-width: 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .top-emergency-bar {
    font-size: 0.78rem;
    text-align: center;
  }
  
  .top-bar-content {
    justify-content: center;
    flex-direction: column;
  }
  
  .header-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .btn-whatsapp-header {
    display: none; /* Oculta botón en header para dar espacio */
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .services-grid {
    /* Adaptado por flexbox */
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .plan-card {
    padding: 30px 16px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==================== ESTILOS ADICIONALES PARA PÁGINAS INTERNAS ==================== */
.inner-hero-section {
  position: relative;
  background-color: var(--bg-dark);
  padding: 120px 0 60px 0;
  text-align: center;
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.inner-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.inner-hero-title {
  font-size: 2.8rem;
  color: var(--text-light) !important;
  margin-bottom: 15px;
}

.inner-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light-muted) !important;
}

@media (max-width: 768px) {
  .inner-hero-section {
    padding: 100px 0 50px 0;
  }
  .inner-hero-title {
    font-size: 2rem;
  }
  .inner-hero-subtitle {
    font-size: 0.95rem;
  }
}

/* ==================== 10. PESTAÑAS DE SERVICIOS (TABS) Y RESPONSIVIDAD ADICIONAL ==================== */

/* Barra pegajosa para el selector de pestañas */
.services-tab-navigation-bar {
  background-color: #FAF8F5 !important;
  border-bottom: 1px solid rgba(165, 121, 73, 0.12) !important;
  padding: 30px 0 25px 0 !important;
  position: sticky !important;
  top: 76px !important;
  z-index: 99 !important;
}

.services-tab-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: #FAF8F5 !important;
  border: 1px solid rgba(165, 121, 73, 0.18) !important;
  border-radius: 60px !important;
  padding: 6px !important;
  gap: 6px !important;
  max-width: 1100px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-shadow: 0 6px 20px rgba(165, 121, 73, 0.04) !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
}

.services-tab-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-dark-muted) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 12px 22px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

.services-tab-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  transition: transform 0.3s ease !important;
}

.services-tab-btn:hover {
  color: var(--color-primary) !important;
  background-color: rgba(165, 121, 73, 0.08) !important;
}

.services-tab-btn:hover svg {
  transform: translateY(-1px) !important;
}

.services-tab-btn.active {
  background: var(--gold-gradient) !important;
  color: #121214 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(165, 121, 73, 0.28) !important;
}

.services-tab-btn.active svg {
  fill: #121214 !important;
}

/* Paneles de Contenido (Fade In & Slide Up) */




@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mejoras de Contraste y Legibilidad en Fondos Oscuros --- */
.bg-dark,
.section-prevision,
[style*="background: var(--bg-dark)"],
[style*="background-color: var(--bg-dark)"],
.prevision-container,
.tab-panel .section-prevision,
.prevision-content-left {
  color: var(--text-light) !important;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.section-prevision h1, .section-prevision h2, .section-prevision h3, .section-prevision h4,
[style*="background: var(--bg-dark)"] h1, [style*="background: var(--bg-dark)"] h2, [style*="background: var(--bg-dark)"] h3, [style*="background: var(--bg-dark)"] h4,
[style*="background-color: var(--bg-dark)"] h1, [style*="background-color: var(--bg-dark)"] h2, [style*="background-color: var(--bg-dark)"] h3, [style*="background-color: var(--bg-dark)"] h4,
.prevision-container h1, .prevision-container h2, .prevision-container h3, .prevision-container h4,
.prevision-content-left h1, .prevision-content-left h2, .prevision-content-left h3, .prevision-content-left h4 {
  color: var(--text-light) !important;
}

.bg-dark p,
.section-prevision p,
[style*="background: var(--bg-dark)"] p,
[style*="background-color: var(--bg-dark)"] p,
.prevision-container p,
.prevision-content-left p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Salvaguardar Botones en Secciones Oscuras */
.bg-dark .btn-secondary,
.section-prevision .btn-secondary,
[style*="background: var(--bg-dark)"] .btn-secondary,
[style*="background-color: var(--bg-dark)"] .btn-secondary,
.prevision-container .btn-secondary {
  color: var(--text-light) !important;
  border-color: var(--color-primary-light) !important;
}

.bg-dark .btn-secondary:hover,
.section-prevision .btn-secondary:hover,
[style*="background: var(--bg-dark)"] .btn-secondary:hover,
[style*="background-color: var(--bg-dark)"] .btn-secondary:hover,
.prevision-container .btn-secondary:hover {
  background-color: var(--color-primary) !important;
  color: #121214 !important;
  border-color: var(--color-primary) !important;
}

/* --- Mejoras de Centrado e Información --- */
.text-center {
  text-align: center !important;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  text-align: center !important;
  color: var(--text-dark-muted) !important;
  line-height: 1.6;
}

.section-prevision .section-tag-gold,
.section-prevision h2 {
  text-align: left;
}

/* --- Responsividad Adicional (Tablets y Dispositivos Medianos) --- */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 768px) {
  .services-tab-navigation-bar {
    top: 72px; /* Adaptación para pantallas táctiles */
  }

  .services-tab-container {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    padding: 8px !important;
    gap: 8px !important;
    border-radius: 30px !important;
    scrollbar-width: none !important;
  }
  .services-tab-container::-webkit-scrollbar {
    display: none !important;
  }

  .services-tab-btn {
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
  }

  .prevision-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .prevision-content-left {
    text-align: center;
  }

  .prevision-content-left h2,
  .prevision-content-left p,
  .prevision-content-left .section-tag-gold {
    text-align: center !important;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .cremacion-container {
    flex-direction: column;
    gap: 35px !important;
  }

  .cremacion-content, .cremacion-visual {
    flex: 1 1 100% !important;
    text-align: center !important;
  }
  
  .cremacion-bullets {
    align-items: flex-start;
    text-align: left;
    max-width: 550px;
    margin: 30px auto 0 auto;
  }
}

@media (max-width: 600px) {
  .plans-grid {
    grid-template-columns: 1fr !important;
  }

  .benefits-grid {
    grid-template-columns: 1fr !important;
  }

  .prevision-form-card {
    padding: 30px 20px !important;
  }
}

/* ==========================================================================
   5. FORO VISUAL CARDS
   ========================================================================== */
.foro-visual-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.foro-visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.foro-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.foro-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.foro-card-body h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.foro-card-body p {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.foro-card-divider {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

.foro-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a2b3c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foro-read-more:hover {
  color: var(--color-primary);
}

.foro-read-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.foro-read-more:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   6. NUEVOS ESTILOS: MISIÓN/VISIÓN Y BOTÓN FLOTANTE DE LLAMADA
   ========================================================================== */
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(165, 121, 73, 0.08) !important;
  border-color: var(--color-primary) !important;
}

.call-float {
  position: fixed;
  bottom: 92px; /* Encima del botón de WhatsApp (bottom: 24px + height: 54px + gap: 14px) */
  right: 24px;
  background: var(--gold-gradient);
  color: #121214 !important;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  z-index: 999;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.call-float:hover {
  transform: translateY(-4px);
  background: var(--gold-gradient-hover);
  box-shadow: 0 6px 20px rgba(165, 121, 73, 0.45);
}

.call-float-icon {
  width: 22px;
  height: 22px;
  fill: #121214;
}

.call-float-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.call-float-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.85;
}

.call-float-number {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Ajustes en pantallas pequeñas para que no se superpongan o se achiquen adecuadamente */
@media (max-width: 480px) {
  .call-float {
    padding: 0 16px;
    gap: 8px;
    height: 50px;
    border-radius: 25px;
    bottom: 84px;
    right: 16px;
  }
  .call-float-label {
    font-size: 0.65rem;
  }
  .call-float-number {
    font-size: 0.85rem;
  }
  .call-float-icon {
    width: 18px;
    height: 18px;
  }
}

  .nav-menu .dropdown.open .dropdown-menu {
    display: flex !important;
  }


.tab-panel {
  display: none !important;
}

.tab-panel.active {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  animation: fadeInTab 0.5s ease-in-out forwards !important;
}
