* {
    scroll-behavior: smooth;
}

.section-padding {
    padding: 50px; /* Un padding uniforme para todas las secciones */
}
/* Nota: Había dos definiciones de .hero-section. Las fusionamos y simplificamos. */
.hero-section {
    /* Aquí usas un color de fondo con la imagen de tu carpeta de uploads */
    background: center/cover no-repeat;
    
    color: white; 
    padding: 100px 0; 
    text-align: center;
    min-height: 95vh; /* Altura de la ventana para un impacto visual fuerte */
    display: flex; /* Para centrar el contenido verticalmente si es necesario */
    align-items: center; 
    justify-content: center;
}

.hero-content {
    max-width: 1400px; /* Ancho máximo para el texto */
}

.hero-section h1 {
    /* Asumo que --color-text-light es blanco o muy claro, si lo tienes definido en style.css */
    color: var(--color-text-light, white); 
    font-size: 3.8rem; /* Título grande */
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para resaltar sobre la imagen */
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* --- 4. BICICLETAS DESTACADAS --- */

.featured-bikes {
    padding: 60px;
}

.featured-bikes h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Reutilizamos el grid de tarjetas del catalogo */
.bikes-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(
        auto-fit,
        minmax(480px, 1fr) /* Hice las tarjetas más pequeñas (300px) para que entren más en pantalla, ajusta si quieres 400px */
    );
}

.bike-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bike-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bike-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.bike-info {
    padding: 15px;
    text-align: left;
}

.bike-info h3 {
    color: var(--color-text-dark);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.bike-info .details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.bike-info .price {
    font-size: 1.5rem;
    color: var(--color-text, #333);
}

/* --- 5. CATEGORÍAS POPULARES (Diseño con Imagen de Fondo) --- */

.categories-section {
    padding: 0 !important;
}

.categories-section h2 {
    text-align: center;
    padding: 40px;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    font-size: 2rem;
}

.categories-grid {
    display: grid;
    /* Aseguramos 3 columnas y que sean flexibles */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

/* Contenedor de la tarjeta (Padre para posicionamiento absoluto) */
.category-card.image-card {
    /* Reseteamos los estilos anteriores basados en solo texto */
    min-height: 650px; 
    max-height: 75vh;
    display: block;
    overflow: hidden;
    position: relative; /* Clave para el texto flotante */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubre todo el contenedor */
    display: block;
    transition: transform 0.4s ease;
}

/* Efecto de Hover: Zoom a la imagen */
.category-card:hover .category-img {
    transform: scale(1.05);
}

/* Overlay (Capa oscura para que el texto se vea bien) */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado oscuro, más oscuro abajo */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end; /* Posiciona el texto en la parte inferior */
    justify-content: center;
    padding-bottom: 20px;
}

/* Efecto de Hover: Oscurecer más el overlay */
.category-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Estilo del texto flotante */
.category-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- 4. SECCIÓN DE CARACTERÍSTICAS / POR QUÉ ELEGIRNOS (3 Columnas) --- */

.why-choose-us {
    padding: 60px 120px;
}

.feature-grid {
    display: grid;
    gap: 60px;
    /* Usamos minmax para asegurar 3 columnas en pantallas grandes y 1 en pequeñas */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--color-primary, orange); /* Toque de color de marca */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem; 
    color: var(--color-primary, orange); 
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}


/* --- NUEVOS ESTILOS: Beneficios / Por Qué Elegirnos (Minimalista) --- */

.benefits-section {
    padding: 40px 0; /* Un poco menos de padding para un look más compacto */
    background-color: white; /* Aseguramos fondo blanco */
    text-align: center;
}

.benefits-grid {
    display: flex;
    justify-content: center; /* Distribuye el espacio entre los elementos */
    align-items: center;
    gap: 60px;
    padding: 20px 0;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px; /* Espacio horizontal para el contenido */
    position: relative;
    width: fit-content;
}

/* Líneas divisorias verticales (como en tu imagen) */
.benefit-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px; /* Ajusta la posición para que quede entre los items */
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 80%; /* Altura de la línea */
    background-color: #ddd; /* Color gris claro de la línea */
}

.benefit-item i {
    font-size: 2rem;
    color: var(--color-text, black); /* Color del texto/ícono principal */
    margin-bottom: 10px;
}

.benefit-item strong {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text, black);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 1420px) {
    .hero-section {
        min-height: 100vh;
    }
  body {
        padding-top: 60px !important;
    }
}

@media (max-width: 992px) {
          body {
        padding-top: 40px !important;
    }
    .hero-content{
        margin: 0 20px;
    }

}

/* Media Query para móvil: apilar los elementos y eliminar líneas */
@media (max-width: 768px) {
    .categories-grid{
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    .benefits-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-item {
        padding: 20px 0;
        border-bottom: 1px solid #eee; /* Línea de separación horizontal en móvil */
        margin-bottom: 0;
    }

    /* Eliminar las líneas verticales en móvil */
    .benefit-item:not(:last-child)::after {
        content: none;
    }
    
    .benefit-item:last-child {
        border-bottom: none;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 20px;
    }
    
    .why-choose-us {
        padding: 40px;
    }
    .feature-grid{
        gap: 30px;
    }
    .bikes-grid{
        grid-template-columns: 1fr;
        gap: 20px; 
    }
}
