/* index-final.css - Diseño compacto y visual */
:root {
  --primary: #e91e63;
  --primary-light: #f8bbd9;
  --primary-dark: #c2185b;
  --secondary: #9c27b0;
  --secondary-light: #e1bee7;
  --accent: #ff4081;
  --success: #4caf50;
  --warning: #ff9800;
  --dark: #2d3748;
  --light: #f8f9fa;
  --gray-light: #f5f5f5;
  --border: #e0e0e0;
  --gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
  --gradient-light: linear-gradient(135deg, #f8bbd9 0%, #e1bee7 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset y base */
.index-container {
  max-width: 100%;
  overflow-x: hidden;
  background: white;
}

/* Hero Section con Imagen */
.hero-final {
  background: var(--gradient);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content-final {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text-final h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text-final .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-buttons-final {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-final {
  background: white;
  color: var(--primary);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-final:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-hero-final.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-hero-final.secondary:hover {
  background: white;
  color: var(--primary);
}

.hero-image-final {
  text-align: center;
}

.hero-image-final img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: float 6s ease-in-out infinite;
}

/* Features Section Compacta */
.features-final {
  padding: 4rem 0;
  background: var(--gray-light);
}

.features-grid-final {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-card-final {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.feature-card-final:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon-final {
  width: 60px;
  height: 60px;
  background: var(--gradient-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.feature-card-final h3 {
  color: var(--dark);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card-final p {
  color: #666;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Featured Products Mejorado */
.featured-products-final {
  padding: 4rem 0;
  background: white;
}

.section-header-final {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

/* Efecto de título con borde inferior - Como en Nosotros */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Variantes de color para el borde */
.section-title.primary::after {
    background: var(--primary);
}

.section-title.secondary::after {
    background: var(--secondary);
}

.section-title.accent::after {
    background: var(--accent);
}

.section-title.dark::after {
    background: var(--dark);
}

.section-title.white::after {
    background: white;
}

/* Variantes de alineación */
.section-title.left {
    text-align: left;
}

.section-title.left::after {
    left: 0;
    transform: translateX(0);
}

.section-title.right {
    text-align: right;
}

.section-title.right::after {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* Tamaños diferentes */
.section-title.small {
    font-size: 2rem;
}

.section-title.small::after {
    width: 60px;
    height: 3px;
    bottom: -12px;
}

.section-title.large {
    font-size: 3rem;
}

.section-title.large::after {
    width: 100px;
    height: 5px;
    bottom: -18px;
}

.section-header-final h2 {
  font-size: 2.3rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header-final p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.products-grid-final {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.product-card-featured-final {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.product-card-featured-final:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image-container-final {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-featured-final {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-info-featured-final {
  padding: 1.2rem;
}

.product-info-featured-final h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
  height: 2.6rem;
  overflow: hidden;
}

.product-price-featured-final {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn-product-final {
  background: var(--gradient);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: block;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-product-final:hover {
  background: var(--gradient-light);
  transform: translateY(-2px);
}

/* Stats Section Compacta */
.stats-final {
  padding: 3rem 0;
  background: var(--gradient);
  color: white;
}

.stats-grid-final {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.stat-item-final h3 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item-final p {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1rem;
}

/* Testimonials con Imágenes */
.testimonials-final {
  padding: 4rem 0;
  background: white;
}

.testimonials-grid-final {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-card-final {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  position: relative;
}

.testimonial-text-final {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--dark);
}

.testimonial-author-final {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  margin: 0;
  color: var(--dark);
  font-weight: 700;
}

.testimonial-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* CTA con Imagen de Fondo */
.cta-section-final {
  background: linear-gradient(rgba(233, 30, 99, 0.85), rgba(156, 39, 176, 0.85)), 
              url('../images/page1_img1.jpg') center/cover;
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.cta-content-final {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.cta-section-final h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta-section-final p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-btn-final {
  background: white;
  color: #e91e63;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

.cta-btn-final:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .cta-section-final {
    padding: 3rem 0;
  }
  
  .cta-section-final h2 {
    font-size: 2rem;
  }
  
  .cta-section-final p {
    font-size: 1.1rem;
  }
}

/* Responsive Design Mejorado */
@media (max-width: 1024px) {
  .features-grid-final {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stats-grid-final {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content-final {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text-final h1 {
    font-size: 2.2rem;
  }
  
  .cta-buttons-final {
    justify-content: center;
  }
  
  .btn-hero-final {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .section-header-final h2 {
    font-size: 2rem;
  }
  
  .features-grid-final,
  .stats-grid-final {
    grid-template-columns: 1fr;
  }
  
  .products-grid-final {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-text-final h1 {
    font-size: 1.8rem;
  }
  
  .section-header-final h2 {
    font-size: 1.8rem;
  }
  
  .feature-card-final {
    padding: 1.5rem 1rem;
  }
  
  .feature-icon-final {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Animaciones */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.pulse {
  animation: pulse 3s ease-in-out infinite;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-2 {
  margin-bottom: 2rem;
}