/* ==================== ESTILOS PARA INDEX.HTML ==================== */

:root {
  --light-text-color: #3498db;
  --dark-text-color: #0ad930;
  --accent-color: #ffffff;
  --primary-bg: #faf8f8;
  --dark-bg: #1e1e1e;
}

/* ==================== HERO MEJORADO ==================== */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,250 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 1200px 200px;
  animation: wave 15s linear infinite;
  z-index: 1;
}

@keyframes wave {
  0% { background-position: 0 0; }
  100% { background-position: 1200px 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SECCIÓN "POR QUÉ ELEGIRNOS" ==================== */
.why-section {
  padding: 60px 20px;
  background: var(--primary-bg);
}

.dark-mode .why-section {
  background: var(--dark-bg);
}

.why-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  font-weight: 700;
  color: var(--light-text-color);
}

.dark-mode .why-section h2 {
  color: var(--dark-text-color);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dark-mode .why-card {
  background: #282828;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dark-mode .why-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.why-card i {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: block;
}

.why-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.dark-mode .why-card h3 {
  color: var(--dark-text-color);
}

.why-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.dark-mode .why-card p {
  color: #aaa;
}

/* ==================== SECCIÓN DE PRODUCTOS DESTACADOS ==================== */
.featured-section {
  padding: 60px 20px;
  background: white;
}

.dark-mode .featured-section {
  background: #1a1a1a;
}

.featured-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  font-weight: 700;
  color: var(--light-text-color);
}

.dark-mode .featured-section h2 {
  color: var(--dark-text-color);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  background: var(--primary-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dark-mode .featured-card {
  background: #282828;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.featured-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .featured-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.featured-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #e0e0e0;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: rgb(43, 255, 0);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-content {
  padding: 25px;
}

.featured-category {
  display: inline-block;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.featured-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--light-text-color);
}

.dark-mode .featured-content h3 {
  color: var(--dark-text-color);
}

.featured-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.dark-mode .featured-content p {
  color: #aaa;
}

.featured-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.featured-cta {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.featured-cta:hover {
  background: #1f9e4d;
}

/* ==================== SECCIÓN DE CATEGORÍAS ==================== */
.categories-section {
  padding: 60px 20px;
  background: var(--primary-bg);
}

.dark-mode .categories-section {
  background: var(--dark-bg);
}

.categories-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  font-weight: 700;
  color: var(--light-text-color);
}

.dark-mode .categories-section h2 {
  color: var(--dark-text-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.category-card:hover .category-bg {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  z-index: 2;
}

.category-overlay h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-overlay p {
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.category-link {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
  transition: background 0.3s ease;
}

.category-link:hover {
  background: #1f9e4d;
}

/* ==================== SECCIÓN DE TESTIMONIOS ==================== */
.testimonials-section {
  padding: 60px 20px;
  background: white;
}

.dark-mode .testimonials-section {
  background: #1a1a1a;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  font-weight: 700;
  color: var(--light-text-color);
}

.dark-mode .testimonials-section h2 {
  color: var(--dark-text-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--primary-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--accent-color);
  transition: transform 0.3s ease;
}

.dark-mode .testimonial-card {
  background: #282828;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.testimonial-card:hover {
  transform: translateX(10px);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 15px;
}

.testimonial-text {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.dark-mode .testimonial-text {
  color: #ccc;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.testimonial-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent-color);
}

.testimonial-info h4 {
  margin: 0;
  font-size: 16px;
  color: var(--light-text-color);
}

.dark-mode .testimonial-info h4 {
  color: var(--dark-text-color);
}

.testimonial-info p {
  margin: 5px 0 0 0;
  font-size: 12px;
  color: #999;
}

.dark-mode .testimonial-info p {
  color: #666;
}

/* ==================== SECCIÓN CTA FINAL ==================== */
.final-cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.final-cta-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.final-cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid white;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  color: white;
}

.cta-btn-primary {
  background: white;
  color: #667eea;
}

.cta-btn-primary:hover {
  background: #f0f0f0;
}

.cta-btn-secondary:hover {
  background: white;
  color: #667eea;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .featured-section h2,
  .categories-section h2,
  .testimonials-section h2,
  .why-section h2 {
    font-size: 28px;
  }

  .final-cta-section h2 {
    font-size: 32px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ==================== DARK MODE ADICIONAL ==================== */
.dark-mode .hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dark-mode .final-cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
