/* ==========================================================================
   VETS HEALTH - SITIO WEB PREMIUM
   CSS PRINCIPAL (DISEÑO BOUTIQUE, MINIMALISTA Y EMOCIONAL)
   ========================================================================== */

/* Variables y Tokens de Diseño (Paleta 75% Morados, 15% Blanco, 10% Rosa) */
:root {
  /* Morados Corporativos (75%) */
  --primary-nebuloso: #130924;   /* Morado ultra-oscuro de alta gama (Texto y fondos de contraste) */
  --primary-junior: #5e359c;     /* Morado corporativo de marca */
  --primary-encuentro: #8f64d3;   /* Morado medio para detalles e interactividad */
  --primary-lavanda: #f4f0fa;     /* Fondo suave lavanda para separación de secciones */
  --primary-lavanda-light: #faf8fc;
  
  /* Blanco y Neutros (15%) */
  --white: #ffffff;
  --gray-text: #594f68;          /* Gris cálido con matiz morado para textos de apoyo */
  --gray-border: rgba(94, 53, 156, 0.08);
  
  /* Rosa de Conversión (10% - Exclusivo para CTA e hitos de interacción) */
  --accent-pink: #ff2e74;        /* Rosa vibrante y sofisticado */
  --accent-pink-hover: #e01b5c;  
  
  /* Sombras y Efectos */
  --shadow-soft: 0 10px 40px rgba(19, 9, 36, 0.03);
  --shadow-medium: 0 20px 50px rgba(19, 9, 36, 0.06);
  --shadow-glass: 0 8px 32px 0 rgba(94, 53, 156, 0.05);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  
  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* ==========================================================================
   Estilos Base y Reseteo
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Evita que el header fijo tape el inicio de sección */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--primary-nebuloso);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-nebuloso);
}

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

ul {
  list-style: none;
}

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

svg {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   Componentes Globales y Botones Premium
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Insignia / Badge */
.section-tag, .hero-badge {
  display: inline-block;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-junior);
  background-color: var(--primary-lavanda);
  border-radius: 50px;
  margin-bottom: 16px;
}

/* Encabezados de Sección */
.section-header {
  margin-bottom: 64px;
  max-width: 700px;
}
.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--gray-text);
  font-weight: 400;
}

/* Botones Premium */
.btn-pink, .btn-primary, .btn-secondary, .btn-secondary-white, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

/* Botón Rosa de Conversión (10% de peso visual) */
.btn-pink {
  background-color: var(--accent-pink);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 46, 116, 0.25);
}
.btn-pink:hover {
  background-color: var(--accent-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 46, 116, 0.35);
}
.btn-pink:active {
  transform: translateY(0);
}

/* Botón Morado Primario */
.btn-primary {
  background-color: var(--primary-junior);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(94, 53, 156, 0.20);
}
.btn-primary:hover {
  background-color: var(--primary-nebuloso);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(94, 53, 156, 0.30);
}

/* Botón Secundario (Fondo claro morado) */
.btn-secondary {
  background-color: var(--primary-lavanda);
  color: var(--primary-junior);
}
.btn-secondary:hover {
  background-color: var(--primary-junior);
  color: var(--white);
  transform: translateY(-2px);
}

/* Botón Secundario Blanco */
.btn-secondary-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}
.btn-secondary-white:hover {
  background-color: var(--white);
  color: var(--primary-nebuloso);
  transform: translateY(-2px);
}

/* Botón WhatsApp */
.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

/* Iconos SVG genéricos */
.icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Estructuración de Secciones Generales */
section {
  padding: 100px 0;
  position: relative;
}

/* Alternancia de color de fondo para mantener la limpieza */
section:nth-of-type(even) {
  background-color: var(--primary-lavanda-light);
}

/* ==========================================================================
   Header / Navegación (Sticky Glassmorphism)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

/* Estado al hacer Scroll */
.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: var(--shadow-soft);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-lavanda);
}
.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-nebuloso);
  background: linear-gradient(135deg, var(--primary-nebuloso), var(--primary-junior));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-text);
  padding: 8px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-junior);
  transition: var(--transition-fast);
  border-radius: 50px;
}
.nav-link:hover {
  color: var(--primary-junior);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--primary-junior);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-whatsapp {
  padding: 10px 22px;
  font-size: 14px;
  background-color: var(--primary-junior);
  color: var(--white);
}
.btn-header-whatsapp:hover {
  background-color: var(--primary-nebuloso);
  transform: translateY(-1px);
}

.mobile-only {
  display: none !important;
}

/* Toggle Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-nebuloso);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 160px;
  padding-bottom: 120px;
  background: radial-gradient(circle at 80% 20%, var(--primary-lavanda) 0%, rgba(255,255,255,0) 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}
.hero-badge {
  margin-bottom: 24px;
}
.hero-title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary-nebuloso) 50%, var(--primary-junior) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--gray-border);
  padding-top: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-junior);
}
.stat-text {
  font-size: 13px;
  color: var(--gray-text);
  font-weight: 500;
}

/* Contenedor de Imagen de Hero */
.hero-image-wrapper {
  position: relative;
  width: 100%;
}
.hero-img-main {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  object-fit: cover;
  aspect-ratio: 4/4;
}
.image-overlay-bg {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 100%;
  height: 100%;
  background-color: var(--primary-lavanda);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.floating-badge {
  position: absolute;
  bottom: 28px;
  left: -20px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: float 6s ease-in-out infinite;
}

.badge-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-pink);
  flex-shrink: 0;
}
.floating-badge h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.floating-badge p {
  font-size: 12px;
  color: var(--gray-text);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: translateY(1px);
}
.hero-wave svg {
  width: 100%;
  height: 48px;
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  margin-bottom: 56px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(94, 53, 156, 0.15);
}

.service-img-container {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(19, 9, 36, 0.7);
  backdrop-filter: blur(5px);
  color: var(--white);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-title-card {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}
.service-footer {
  margin-top: auto;
}

.section-cta {
  margin-top: 48px;
  padding: 30px;
  background-color: var(--primary-lavanda);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.section-cta p {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-nebuloso);
}

/* ==========================================================================
   ¿Por qué elegir Vets Health?
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-card {
  background-color: var(--white);
  padding: 36px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(94, 53, 156, 0.15);
}

.why-icon-container {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-lavanda);
  color: var(--primary-junior);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.why-icon-container svg {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.why-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}

.why-card.full-width-card {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px;
}
.why-card.full-width-card .why-icon-container {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.why-card.full-width-card .why-icon-container svg {
  width: 32px;
  height: 32px;
}
.full-width-text {
  flex-grow: 1;
}

/* ==========================================================================
   ¿Cómo trabajamos? (Timeline)
   ========================================================================== */
.workflow-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 48px;
  margin-bottom: 56px;
}

/* Línea de base del proceso */
.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-lavanda) 0%, var(--primary-junior) 50%, var(--primary-lavanda) 100%);
  z-index: 1;
}

.timeline-step {
  width: 18%;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 72px;
  height: 72px;
  background-color: var(--white);
  border: 2px solid var(--primary-junior);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-junior);
  margin: 0 auto 24px auto;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.timeline-step:hover .step-number {
  background-color: var(--primary-junior);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(94, 53, 156, 0.25);
}

.step-content {
  text-align: center;
  padding: 0 10px;
}
.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
}
.step-meta {
  display: none;
}

/* ==========================================================================
   Galería Masonry
   ========================================================================== */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(19, 9, 36, 0.85) 0%, rgba(19, 9, 36, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-fast);
}

.overlay-text h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 4px;
}
.overlay-text p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 12px;
}

/* Hover de Galería */
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Variaciones del Masonry */
.size-large {
  grid-column: span 2;
  grid-row: span 2;
}
.size-tall {
  grid-row: span 2;
}
.size-wide {
  grid-column: span 2;
}

/* ==========================================================================
   Reviews / Reseñas (Slider de Google)
   ========================================================================== */
.reviews-slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto 56px auto;
  overflow: hidden;
  padding: 20px;
}

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

.review-slide {
  min-width: 100%;
  flex-shrink: 0;
  background-color: var(--white);
  padding: 48px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-medium);
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s, transform 0.5s;
}

.review-slide.active {
  opacity: 1;
  transform: scale(1);
}

.stars {
  color: #ffb400;
  font-size: 22px;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.review-comment {
  font-size: 18px;
  line-height: 1.7;
  color: var(--primary-nebuloso);
  font-style: italic;
  margin-bottom: 32px;
}

.review-author {
  display: flex;
  justify-content: center;
  align-items: center;
}
.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-junior);
}
.author-info p {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 2px;
}

/* Controles de Slider */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.slider-btn {
  background-color: var(--white);
  border: 1px solid var(--gray-border);
  color: var(--primary-junior);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
}
.slider-btn:hover {
  background-color: var(--primary-junior);
  color: var(--white);
  border-color: var(--primary-junior);
  transform: scale(1.05);
}
.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  gap: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-lavanda);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}
.dot.active {
  background-color: var(--accent-pink);
  width: 24px;
  border-radius: 4px;
}

/* Google Rating Card */
.google-rating-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--primary-lavanda-light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.google-logo-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}
.google-icon {
  width: 24px;
  height: 24px;
}
.google-stars {
  font-weight: 700;
  color: var(--primary-nebuloso);
  font-size: 15px;
}
.google-stars span {
  color: var(--gray-text);
  font-weight: 500;
  margin-left: 6px;
}
.google-rating-card p {
  font-size: 13px;
  color: var(--gray-text);
}
.google-rating-card .btn-secondary {
  margin-top: 8px;
}

/* ==========================================================================
   Preguntas Frecuentes Accordion
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-border);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.faq-trigger {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-nebuloso);
  transition: var(--transition-fast);
}

.faq-icon-arrow {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.faq-icon-arrow::before, .faq-icon-arrow::after {
  content: '';
  position: absolute;
  background-color: var(--primary-junior);
  border-radius: 2px;
}
.faq-icon-arrow::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}
.faq-icon-arrow::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
  transition: var(--transition-smooth);
}

.faq-trigger:hover .faq-title {
  color: var(--primary-junior);
}

/* Lógica Expandida */
.faq-item.expanded {
  border-color: rgba(94, 53, 156, 0.20);
  box-shadow: var(--shadow-medium);
}
.faq-item.expanded .faq-icon-arrow {
  transform: rotate(45deg);
}
.faq-item.expanded .faq-icon-arrow::after {
  opacity: 0; /* Oculta vertical para formar el menos (-) */
}

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

.faq-text {
  padding: 0 32px 28px 32px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-text);
}

/* ==========================================================================
   Contacto y Formulario
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

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

.info-item-block {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-lavanda);
  color: var(--primary-junior);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text-block h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--primary-junior);
}
.info-text-block p {
  font-size: 15px;
  color: var(--gray-text);
}
.phone-link, .email-link {
  font-weight: 600;
  color: var(--primary-nebuloso);
}
.phone-link:hover, .email-link:hover {
  color: var(--primary-junior);
}

/* Mapa e Iframe */
.map-wrapper {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-border);
}
.map-actions {
  display: flex;
  background-color: var(--white);
  padding: 12px 20px;
  gap: 16px;
  border-top: 1px solid var(--gray-border);
}
.btn-map, .btn-call {
  padding: 10px 20px;
  font-size: 13px;
  flex-grow: 1;
}

/* Tarjeta del Formulario Premium */
.form-container-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-medium);
}
.form-container-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.form-container-card p {
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 32px;
}

/* Campos de Formulario */
.premium-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-nebuloso);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: 1px solid rgba(94, 53, 156, 0.15);
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-lavanda-light);
  color: var(--primary-nebuloso);
  outline: none;
  transition: var(--transition-fast);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: #a49cb0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-junior);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(94, 53, 156, 0.08);
}

/* Estado de Éxito del Formulario */
.form-success-box {
  text-align: center;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.1);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.success-icon-wrapper svg {
  width: 32px;
  height: 32px;
}
.form-success-box h3 {
  font-size: 26px;
  color: #25d366;
}
.form-success-box p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}
.btn-reset-form {
  margin-top: 16px;
}
.btn-text-link {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--gray-text);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.btn-text-link:hover {
  color: var(--primary-junior);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Banner Final (CTA)
   ========================================================================== */
.final-banner-section {
  padding: 0;
  overflow: hidden;
  background-color: var(--primary-nebuloso);
  color: var(--white);
}

.final-banner-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 50%, rgba(94, 53, 156, 0.45) 0%, rgba(19, 9, 36, 0) 70%);
  z-index: 1;
}

.final-banner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  position: relative;
  z-index: 2;
}

.final-banner-content {
  padding: 100px 0 100px 0;
  max-width: 600px;
}
.final-banner-content h2 {
  color: var(--white);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.final-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 40px;
}
.final-banner-actions {
  display: flex;
  gap: 16px;
}

.final-banner-image {
  height: 100%;
  align-self: stretch;
  position: relative;
}
.final-banner-img-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 450px;
}

/* ==========================================================================
   Main Footer
   ========================================================================== */
.main-footer {
  background-color: var(--primary-nebuloso);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

/* Columna Marca */
.col-brand {
  max-width: 280px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.brand-tagline {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.footer-socials a:hover {
  background-color: var(--accent-pink);
  transform: translateY(-2px);
}
.social-icon {
  width: 18px;
  height: 18px;
}

/* Links de Navegación */
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover {
  color: var(--accent-pink);
  padding-left: 4px;
}

/* Información de Contacto */
.footer-contact-info li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 13px;
}
.footer-contact-info svg {
  color: var(--primary-encuentro);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-info a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-info a:hover {
  color: var(--white);
}

/* Columna CTA Reserva */
.col-cta p {
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.col-cta .btn-block {
  margin-bottom: 12px;
  padding: 12px;
  font-size: 14px;
}

/* Sub-Footer */
.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  font-size: 12px;
}
.sub-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sub-footer-links {
  display: flex;
  gap: 24px;
}
.sub-footer-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   Botón Flotante de WhatsApp y Elementos Flotantes
   ========================================================================== */
.btn-whatsapp-floating {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-whatsapp-floating:hover {
  transform: scale(1.08) rotate(8deg);
  background-color: #20ba59;
}

.whatsapp-floating-icon {
  width: 32px;
  height: 32px;
}

/* Tooltip Persuasivo */
.whatsapp-floating-tooltip {
  position: absolute;
  right: 80px;
  background-color: var(--white);
  color: var(--primary-nebuloso);
  padding: 10px 18px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--gray-border);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition-smooth);
}
.btn-whatsapp-floating:hover .whatsapp-floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulsación sutil en el botón */
.btn-whatsapp-floating::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  z-index: -1;
  opacity: 0.7;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

/* ==========================================================================
   Modales (Aviso de Privacidad)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(19, 9, 36, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  background-color: var(--white);
  width: 100%;
  max-width: 650px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  animation: modal-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 20px;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--gray-text);
  cursor: pointer;
  line-height: 0;
  padding: 8px;
}
.modal-close-btn:hover {
  color: var(--primary-junior);
}

.modal-body-content {
  padding: 32px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}
.modal-body-content p {
  margin-bottom: 16px;
}
.modal-body-content h4 {
  color: var(--primary-junior);
  margin: 24px 0 12px 0;
  font-size: 15px;
  text-transform: uppercase;
}
.modal-body-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 16px;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--gray-border);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Microanimaciones y Keyframes
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px) translateX(-50% -20px); }
  50% { transform: translateY(-10px) translateX(-50% -20px); }
  100% { transform: translateY(0px) translateX(-50% -20px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clases utilitarias de aparición gradual (Scroll Reveal) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Animaciones del Hero en carga inicial */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
}
.hero-section.loaded .fade-in-element {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section.loaded .hero-badge { transition-delay: 0.1s; }
.hero-section.loaded .hero-title { transition-delay: 0.25s; }
.hero-section.loaded .hero-subtitle { transition-delay: 0.4s; }
.hero-section.loaded .hero-actions { transition-delay: 0.55s; }
.hero-section.loaded .hero-stats { transition-delay: 0.7s; }
.hero-section.loaded .hero-image-wrapper { 
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.3s;
}

/* ==========================================================================
   Adaptabilidad / Media Queries (Mobile-First y Responsive Design)
   ========================================================================== */

/* Pantallas grandes y portátiles (hasta 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 46px;
  }
  .why-grid {
    gap: 20px;
  }
  .why-card {
    padding: 24px;
  }
}

/* Tablets en formato horizontal/vertical (hasta 992px) */
@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    width: 100%;
    justify-content: center;
  }
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  .floating-badge {
    left: 10px;
    bottom: 20px;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-card.full-width-card {
    grid-column: span 2;
  }
  
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .size-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .size-tall {
    grid-row: span 2;
  }
  .size-wide {
    grid-column: span 2;
  }
  
  .workflow-timeline {
    flex-direction: column;
    gap: 40px;
    margin-top: 32px;
  }
  .workflow-timeline::before {
    display: none; /* Elimina la línea horizontal */
  }
  .timeline-step {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
  }
  .step-number {
    margin: 0;
    flex-shrink: 0;
  }
  .step-content {
    text-align: left;
    padding: 0;
  }
  .step-meta {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-encuentro);
    letter-spacing: 0.05em;
    margin-top: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .final-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .final-banner-content {
    padding: 80px 24px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .final-banner-actions {
    justify-content: center;
  }
  .final-banner-image {
    display: none; /* Oculta la imagen en tablet/móvil para simplificar */
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

/* Dispositivos Móviles (hasta 768px) */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -10px 0 30px rgba(19, 9, 36, 0.1);
    z-index: 1050;
    transition: var(--transition-smooth);
    padding: 100px 32px 40px 32px;
  }
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  .nav-link {
    font-size: 18px;
  }
  .nav-toggle {
    display: flex;
  }
  
  /* Botón hamburguesa activo */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .btn-header-whatsapp {
    display: none !important; /* Oculto en móviles en el header (se usa el flotante y el llamar ahora) */
  }
  
  .btn-call-mobile {
    background-color: var(--primary-lavanda);
    color: var(--primary-junior);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
  }
  .btn-call-mobile svg {
    width: 16px;
    height: 16px;
  }
  .btn-call-text {
    margin-left: 4px;
  }

  .hero-title {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-hero {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card.full-width-card {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .reviews-slider-wrapper {
    padding: 0;
  }
  .review-slide {
    padding: 30px 20px;
  }
  .review-comment {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-container-card {
    padding: 24px 20px;
  }
  
  .final-banner-content h2 {
    font-size: 32px;
  }
  .final-banner-content p {
    font-size: 15px;
  }
  .final-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .final-banner-actions a {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .col-brand {
    max-width: 100%;
  }
  
  .sub-footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .sub-footer-links {
    justify-content: center;
  }
  
  .btn-whatsapp-floating {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-floating-icon {
    width: 26px;
    height: 26px;
  }
  .whatsapp-floating-tooltip {
    display: none; /* Se oculta el tooltip en móvil por espacio */
  }
}

/* Ajustes finos para móviles extra pequeños (hasta 480px) */
@media (max-width: 480px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .size-large, .size-tall, .size-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}
