/* ========================================
   AVIL PROFESSIONAL VENEZUELA - MAIN CSS
   Version: 3.0 - TÍTULO HERO CORREGIDO
   ======================================== */

/* ========================================
   1. CSS VARIABLES
   ======================================== */
:root {
  /* Brand Colors */
  --color-primary: #f78da7;
  --color-secondary: #cf2e2e;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --color-gray-light: #f8f9fa;
  --color-gray-dark: #343a40;
  --color-success: #28a745;
  --color-error: #dc3545;
  
  /* WhatsApp Colors */
  --whatsapp-bg: #e5ddd5;
  --whatsapp-sent: #dcf8c6;
  --whatsapp-received: #ffffff;
  --whatsapp-text: #303030;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(247, 141, 167, 0.6) 0%, rgba(207, 46, 46, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
  --gradient-avilovers: linear-gradient(135deg, rgba(247, 141, 167, 0.1) 0%, rgba(207, 46, 46, 0.05) 100%);
  
  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing (8px base) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */
  
  /* Font Sizes - NO SE REDUCEN EN MÓVIL */
  --fs-xs: 0.75rem;     /* 12px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-lg: 1.125rem;    /* 18px */
  --fs-xl: 1.25rem;     /* 20px */
  --fs-2xl: 1.5rem;     /* 24px */
  --fs-3xl: 2rem;       /* 32px */
  --fs-4xl: 2.5rem;     /* 40px */
  --fs-5xl: 3rem;       /* 48px */
  --fs-6xl: 4rem;       /* 64px */
  --fs-7xl: 5rem;       /* 80px */
  
  /* Layout */
  --container-max: 1200px;
  --navbar-height: 80px;
  --navbar-height-mobile: 64px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 32px rgba(0,0,0,0.15);
  --shadow-whatsapp: 0 1px 2px rgba(0,0,0,0.2);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --radius-whatsapp: 7px;
}

/* ========================================
   2. RESET & BASE - CONTROL DE OVERFLOW
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

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

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

/* Focus styles */
:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-gray);
}

/* ========================================
   4. LAYOUT UTILITIES
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

section {
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-3xl) 0;
  }
}

/* ========================================
   5. COMPONENTS - BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  color: var(--color-white) !important;
}

.btn-outline {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-lg);
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  background: #25d366;
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: #1da851;
}

/* ========================================
   6. NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height-mobile);
}

@media (min-width: 768px) {
  .navbar .container {
    height: var(--navbar-height);
  }
}

.nav-logo img {
  height: 40px;
}

@media (min-width: 768px) {
  .nav-logo img {
    height: 50px;
  }
}

/* Mobile menu button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--color-black);
  position: relative;
  transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-black);
  transition: var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Navigation menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right var(--transition-base);
}

@media (min-width: 1024px) {
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    background: transparent;
    gap: var(--space-xl);
  }
}

.nav-menu.active {
  right: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 1024px) {
  .nav-list {
    flex-direction: row;
    margin-bottom: 0;
  }
}

.nav-link {
  font-size: var(--fs-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: var(--fs-sm);
  }
}

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

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

/* ========================================
   7. HERO SECTION - TÍTULO PROMINENTE
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-height-mobile);
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--navbar-height);
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  overflow: hidden;
  box-sizing: border-box;
}

/* TÍTULO HERO - CONFIGURACIÓN PRINCIPAL */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* DESKTOP - Título muy grande */
@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(4rem, 6vw, 6rem);  /* 64px a 96px */
    margin-bottom: 2rem;
  }
}

/* TABLET - Título grande */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: clamp(3.5rem, 7vw, 4.5rem);  /* 56px a 72px */
  }
}

/* MÓVIL - Título impactante pero controlado */
@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(3rem, 12vw, 4rem);  /* 48px mínimo, hasta 64px */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: manual;  /* Permite guiones manuales si es necesario */
    -webkit-hyphens: manual;
    max-width: calc(100vw - 40px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* MÓVIL PEQUEÑO - Aún prominente */
@media (max-width: 375px) {
  .hero-title {
    font-size: clamp(2.75rem, 11vw, 3.5rem);  /* 44px mínimo, hasta 56px */
    padding: 0 10px;
  }
}

/* MÓVIL MUY PEQUEÑO (320px) - Mínimo aceptable */
@media (max-width: 320px) {
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3rem);  /* 40px mínimo, hasta 48px */
    word-break: break-all;  /* Romper palabras si es necesario */
    overflow-wrap: anywhere;
  }
}

.hero-subtitle {
  font-size: var(--fs-lg);
  font-weight: 300;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--fs-xl);
  }
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 1.75rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .stat strong {
    font-size: var(--fs-3xl);
  }
}

@media (min-width: 1024px) {
  .stat strong {
    font-size: 3rem;
  }
}

.stat span {
  font-size: var(--fs-sm);
  opacity: 0.9;
}

/* ========================================
   8. PRODUCTS SECTION
   ======================================== */
.products {
  background: var(--color-gray-light);
  padding-top: 0 !important;
  margin-top: -2px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid de productos con centrado mejorado */
.products-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: 1 columna */
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

/* Tablet: 2 columnas centradas */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(320px, 380px));
    justify-content: center;
    max-width: 800px;
  }
  
  /* Featured product ocupa las 2 columnas */
  .product-card.featured {
    grid-column: 1 / -1;
  }
}

/* Desktop: Layout especial para 2+1 */
@media (min-width: 1024px) {
  .products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }
  
  /* Contenedor para los dos primeros productos */
  .products-grid > .product-card:not(.featured) {
    flex: 0 1 380px;
  }
  
  /* Featured product en su propia fila */
  .product-card.featured {
    flex: 0 1 100%;
    max-width: 800px;
    margin-top: var(--space-md);
  }
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Featured product styles */
.product-card.featured {
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .product-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

.product-image {
  height: 300px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-content {
  padding: var(--space-lg);
}

.product-content h3 {
  margin-bottom: var(--space-xs);
}

.product-tagline {
  color: var(--color-gray);
  margin-bottom: var(--space-md);
}

.product-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.product-features li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  color: var(--color-gray-dark);
  font-size: var(--fs-sm);
}

.icon-check {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ========================================
   9. TRANSFORMATIONS SECTION
   ======================================== */
.transformations {
  position: relative;
  background: #f5f5f5;
  background-image: url('../images/transformations-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.transformations::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.transformations .container {
  position: relative;
  z-index: 2;
}

.transformations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.transformation-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.transformation-card:hover {
  box-shadow: var(--shadow-xl);
}

/* ========================================
   COMPARISON SLIDER STYLES
   ======================================== */
.before-after {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Container para las imágenes */
.comparison-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Imagen del "después" (fondo) */
.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenedor de la imagen "antes" con clip */
.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  transition: none;
}

.comparison-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Línea divisoria */
.comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  cursor: col-resize;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  z-index: 10;
}

/* Botón circular en el centro del slider */
.comparison-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Flechas dentro del botón */
.comparison-slider::after {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  z-index: 1;
}

/* Labels estáticos */
.comparison-labels {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.comparison-label {
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.comparison-label.before {
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
}

.comparison-label.after {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.comparison-label.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Estado hover */
.before-after:hover .comparison-slider::before {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-primary);
}

.before-after:hover .comparison-slider::after {
  color: white;
}

/* Animación inicial */
@keyframes slideHint {
  0%, 100% { left: 50%; }
  25% { left: 45%; }
  75% { left: 55%; }
}

.comparison-slider.hint {
  animation: slideHint 2s ease-in-out;
}

/* Mobile adjustments para slider */
@media (max-width: 768px) {
  .before-after {
    height: 350px;
  }
  
  .comparison-label {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .comparison-slider::before {
    width: 36px;
    height: 36px;
  }
  
  .comparison-slider::after {
    font-size: 12px;
  }
}

/* Prevenir selección de texto durante el arrastre */
.comparing {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Mejorar la experiencia táctil en móviles */
@media (hover: none) {
  .comparison-slider::before {
    width: 48px;
    height: 48px;
  }
}

/* Fin de estilos del slider */

.transformation-info {
  padding: var(--space-lg);
}

.transformation-info h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xs);
}

.treatment {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.transformation-info blockquote {
  font-style: italic;
  color: var(--color-gray);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-primary);
  margin: 0;
}

/* Testimonials mini */
.testimonials-mini {
  text-align: center;
  padding: var(--space-xl) 0;
}

.testimonial {
  max-width: 600px;
  margin: 0 auto;
}

.stars {
  margin-bottom: var(--space-sm);
}

.testimonial p {
  font-size: var(--fs-lg);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-sm);
}

.testimonial cite {
  font-style: normal;
  color: var(--color-gray);
  font-size: var(--fs-sm);
}

/* ========================================
   10. AVILOVERS SECTION
   ======================================== */
.avilovers {
  position: relative;
  background: linear-gradient(135deg, rgba(247, 141, 167, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

/* Header de la sección */
.avilovers .section-header {
  margin-bottom: var(--space-2xl);
}

/* Contenedor del carrusel */
.testimonials-carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--space-lg) 0;
  overflow: hidden;
}

/* Filas de testimonios */
.testimonials-row {
  display: flex;
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonials-row:last-child {
  margin-bottom: 0;
}

/* Track que contiene las tarjetas */
.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  padding: 0 var(--space-md);
}

/* Animaciones para las filas */
.testimonials-row-top .testimonials-track {
  animation: scrollLeft 60s linear infinite;
}

.testimonials-row-bottom .testimonials-track {
  animation: scrollRight 60s linear infinite;
}

/* Keyframes para el movimiento */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Pausar en hover */
.testimonials-carousel:hover .testimonials-track {
  animation-play-state: paused;
}

/* Estilos de las tarjetas de testimonios */
.testimonial-card {
  flex: 0 0 auto;
  width: 380px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Header del testimonio */
.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-gray-dark);
}

.testimonial-date {
  color: var(--color-gray);
  font-size: var(--fs-xs);
}

/* Rating */
.testimonial-rating {
  color: #ffc107;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}

/* Título del testimonio */
.testimonial-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-black);
  font-family: var(--font-primary);
}

/* Texto del testimonio */
.testimonial-text {
  color: var(--color-gray-dark);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.avilovers-cta {
  text-align: center;
  padding: var(--space-2xl) 0 0;
  max-width: 600px;
  margin: 0 auto;
}

.avilovers-cta h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-black);
}

.avilovers-cta p {
  color: var(--color-gray);
  margin-bottom: var(--space-lg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-card {
    width: 320px;
    padding: var(--space-md);
  }
  
  .testimonials-track {
    gap: var(--space-md);
  }
  
  .testimonials-row-top .testimonials-track,
  .testimonials-row-bottom .testimonials-track {
    animation-duration: 45s;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 280px;
  }
  
  .testimonial-title {
    font-size: var(--fs-base);
  }
  
  .testimonial-text {
    font-size: var(--fs-xs);
  }
}

/* Gradientes en los bordes para fade effect */
.testimonials-carousel::before,
.testimonials-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonials-carousel::after {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

/* ========================================
   11. CONTACT SECTION
   ======================================== */
.contact {
  background: var(--color-gray-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.benefits {
  margin: var(--space-lg) 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.benefit-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-direct {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
}

.contact-direct h3 {
  margin-bottom: var(--space-md);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: #25d366;
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-lg);
  transition: all var(--transition-base);
  margin-bottom: var(--space-md);
}

.whatsapp-button:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

.email,
.location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-sm);
}

/* Form */
.contact-form-wrapper {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin-bottom: var(--space-xs);
}

.contact-form > p {
  color: var(--color-gray);
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-gray-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  transition: all var(--transition-base);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(247, 141, 167, 0.1);
}

/* Phone input con prefijo fijo */
.phone-input {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-prefix {
  position: absolute;
  left: var(--space-sm);
  color: var(--color-gray-dark);
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

.phone-input input {
  padding-left: 3.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: normal;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--color-gray);
  font-size: var(--fs-sm);
  margin-top: var(--space-md);
}

.lock-icon {
  color: var(--color-primary);
}

/* Form messages */
.form-success,
.form-error {
  text-align: center;
  padding: var(--space-xl);
}

.form-success svg {
  margin-bottom: var(--space-md);
}

.form-success h3 {
  color: var(--color-success);
  margin-bottom: var(--space-sm);
}

.form-error {
  background: #fee;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

/* ========================================
   12. FOOTER
   ======================================== */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  height: 50px;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  padding: var(--space-xs) 0;
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-base);
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
}

/* ========================================
   13. FLOATING ELEMENTS
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  background: #1da851;
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-secondary);
  transform: translateY(-4px);
}

/* Adjust position when WhatsApp is present */
.whatsapp-float ~ .back-to-top {
  bottom: calc(var(--space-lg) + 80px);
}

/* ========================================
   14. UTILITY CLASSES
   ======================================== */
.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  clip: auto;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 10000;
  text-decoration: none;
  border-radius: var(--radius-md);
}

/* ========================================
   15. ANIMATIONS (Simple)
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to elements on load */
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-stats {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero-subtitle { animation-delay: 0.2s; }
.hero-buttons { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.6s; }

/* ========================================
   16. RESPONSIVE ADJUSTMENTS - SIMPLIFICADO
   ======================================== */
@media (max-width: 768px) {
  section {
    padding: var(--space-xl) 0;
  }
  
  .products-grid,
  .transformations-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 100vh;
  }
  
  .whatsapp-float,
  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
  }
  
  /* Whatsapp button smaller on mobile */
  .whatsapp-float {
    width: 56px;
    height: 56px;
  }
  
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: calc(var(--space-md) + 76px);
  }
  
  /* Better form spacing on mobile */
  .contact-form-wrapper {
    padding: var(--space-lg);
  }
  
  .form-group {
    margin-bottom: var(--space-sm);
  }
}

/* Image placeholder styles */
.img-wrapper {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.img-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product image specific */
.product-image .img-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero image wrapper */
.hero-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Better text readability */
p {
  max-width: 65ch;
}

.section-header p,
.lead {
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .whatsapp-float,
  .back-to-top,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .testimonials-track {
    animation: none !important;
  }
}
