/* ===== ESTILOS ESPECÍFICOS PARA HOME.HTML ===== */

:root {
  --primary-color: #c1121f;
  --accent-color: #fff;
  --border-radius: 1.2rem;
  --shadow-light: 0 4px 24px rgba(193,18,31,0.10);
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
}

body {
  background: #fff;
  color: #c1121f;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* ===== NAVBAR HOME ===== */
.navbar-home {
  background: #fff;
  border-bottom: 2px solid #c1121f22;
  box-shadow: 0 2px 12px 0 rgba(193,18,31,0.06);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-home .logo img {
  height: 56px;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.login-btn, .signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.login-btn {
  background: #fff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.login-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,18,31,0.3);
}

.signup-btn {
  background: #c1121f;
  color: #fff;
}

.signup-btn:hover {
  background: #a00e1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,18,31,0.4);
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 600px;
  padding: 0 2rem;
}

.carousel-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.carousel-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  opacity: 0.95;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3);
}

.cta-button:hover {
  background: #a50d16;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(193, 18, 31, 0.4);
  color: white;
}

/* Indicadores del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* ===== SECCIÓN HOW IT WORKS ===== */
.how-it-works {
  padding: 5rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #c1121f 0%, #a50d16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #c1121f, #a50d16);
  border-radius: 2px;
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 0 2rem;
  flex-wrap: wrap;
}

.step {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px 0 rgba(193,18,31,0.08);
  padding: 1.5rem 1rem 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(193, 18, 31, 0.05);
  flex: 1;
  min-width: 180px;
  max-width: 220px;
}

.step:hover {
  box-shadow: 0 12px 40px 0 rgba(193,18,31,0.15);
  transform: translateY(-8px) scale(1.02);
  z-index: 2;
  border-color: rgba(193, 18, 31, 0.1);
}

.step-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(193, 18, 31, 0.2));
  transition: all 0.3s ease;
}

.step:hover .step-icon img {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(193, 18, 31, 0.3));
}

.step h3 {
  color: #c1121f;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.step p {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

/* ===== SERVICIOS DE ENTREGA ===== */
.delivery-services {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 0 2rem;
  flex-wrap: wrap;
}

.delivery-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px 0 rgba(193,18,31,0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(193, 18, 31, 0.05);
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.delivery-card:hover {
  box-shadow: 0 12px 40px 0 rgba(193,18,31,0.15);
  transform: translateY(-8px) scale(1.02);
  z-index: 2;
  border-color: rgba(193, 18, 31, 0.1);
}

.delivery-image {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.delivery-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #fff0f0 0%, #ffe6e6 100%);
  border-radius: 50%;
  border: 3px solid rgba(193, 18, 31, 0.1);
  transition: all 0.3s ease;
}

.delivery-card:hover .delivery-icon {
  transform: scale(1.1);
  border-color: rgba(193, 18, 31, 0.2);
  background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
}

.delivery-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.delivery-content h3 {
  color: #c1121f;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delivery-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  flex: 1;
}

.delivery-list li {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(193, 18, 31, 0.05);
}

.delivery-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.delivery-list strong {
  color: #c1121f;
  font-weight: 700;
}

.novelty-badge {
  background: #c1121f;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
  align-self: center;
  border: 2px solid #c1121f;
  transition: all 0.3s ease;
}

.novelty-badge:hover {
  background: white;
  color: #c1121f;
  transform: scale(1.05);
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: #c1121f;
  color: #fff;
  border-radius: var(--border-radius);
  text-align: center;
  padding: 3.5rem 1rem 3.5rem 1rem;
  margin-top: 2.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(193,18,31,0.10);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.18);
  z-index: 0;
}

.cta-section p {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.cta-section .cta-button {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #c1121f;
  border: 2px solid #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 2px 8px 0 rgba(193,18,31,0.10);
  transition: all 0.3s ease;
}

.cta-section .cta-button:hover {
  background: #c1121f;
  color: #fff;
  border: 2px solid #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .steps-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .step {
    min-width: calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
  
  .delivery-services {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .delivery-card {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-carousel {
    height: 60vh;
    min-height: 400px;
  }
  
  .carousel-content {
    padding: 0 1rem;
  }
  
  .steps-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  .step {
    padding: 1.5rem 1rem;
    min-width: 100%;
    max-width: 100%;
  }
  .step-icon img {
    width: 50px;
    height: 50px;
  }
  .auth-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  .login-btn, .signup-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .navbar-home {
    padding: 0.5rem 0;
  }
  
  .hero-carousel {
    height: 50vh;
    min-height: 350px;
  }
  
  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.8rem;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
}