/* ===== CSS MÍNIMO PARA HOME.HTML RESPONSIVE ===== */

/* Variables CSS para tokens de diseño */
:root {
  --fg-primary: #c1121f; /* Color principal de la marca */
  --fg-muted: #6c757d;
  --radius: 1rem; /* 16px */
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --gap: 1rem;
}

/* Evitar desbordes generales */
html, body {
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Navbar home responsivo */
.navbar-home {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-home .logo img {
  transition: transform 0.3s ease;
}

.navbar-home .logo:hover img {
  transform: scale(1.05);
}

/* Auth buttons responsivos */
.auth-buttons {
  gap: 0.5rem;
}

.auth-buttons .btn {
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero carrusel responsivo */
.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.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.8s 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: 90%;
}

.carousel-content h1 {
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.carousel-content p {
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  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);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Botones de navegación del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 2rem;
}

.next-btn {
  right: 2rem;
}

/* Sección "¿Cómo funciona?" */
.how-it-works {
  background: #f8f9fa;
}

.step {
  padding: 2rem 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.step-icon {
  margin-bottom: 1.5rem;
}

.step h3 {
  color: var(--fg-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step p {
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Sección de servicios de entrega */
.delivery-card {
  transition: all 0.3s ease;
}

.delivery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.delivery-icon {
  margin-bottom: 1.5rem;
}

.delivery-card h3 {
  color: var(--fg-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.delivery-list li {
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.novelty-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--fg-primary), #a00e1a);
  color: white;
  margin-top: 3rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-carousel {
    min-height: 60vh;
  }
  
  .carousel-content {
    max-width: 95%;
  }
  
  .carousel-content h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .prev-btn {
    left: 1rem;
  }
  
  .next-btn {
    right: 1rem;
  }
  
  .carousel-indicators {
    bottom: 1rem;
  }
  
  .step {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .delivery-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar-home {
    padding: 0.5rem 1rem;
  }
  
  .navbar-home .logo img {
    height: 40px;
  }
  
  .auth-buttons {
    gap: 0.25rem;
  }
  
  .auth-buttons .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .hero-carousel {
    min-height: 50vh;
  }
  
  .carousel-content h1 {
    font-size: 1.5rem;
  }
  
  .carousel-content p {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .prev-btn {
    left: 0.5rem;
  }
  
  .next-btn {
    right: 0.5rem;
  }
  
  .step {
    padding: 1rem 0.75rem;
  }
  
  .step h3 {
    font-size: 1rem;
  }
  
  .step p {
    font-size: 0.9rem;
  }
  
  .delivery-card h3 {
    font-size: 1rem;
  }
  
  .delivery-list li {
    font-size: 0.9rem;
  }
}

/* Accesibilidad: foco visible */
:focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.6);
  outline-offset: 2px;
}

/* Animaciones suaves */
* {
  transition: all 0.3s ease;
}

/* Mejoras de performance */
.carousel-slide img {
  will-change: transform;
}

.step, .delivery-card {
  will-change: transform;
}
