/* =======================================================================
   LANDING.CSS - KIKIBROWS PREMIUM LOOK
   ======================================================================= */

/* 1. CONFIGURACIÓN DE SECCIONES (Sticky / Full Height) */
body {
    margin: 0;
    padding: 0;
    perspective: 1500px; /* Necesario para el efecto 3D de empuje */
    overflow-x: hidden;
}

.sticky-section {
    position: relative;
    height: 100vh; /* Ocupa toda la pantalla */
    width: 100%;
    overflow: hidden;
    z-index: 1;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Z-index escalonado para que cada sección 'pise' a la anterior */
#inicio { z-index: 10; }
#nosotros { z-index: 20; }
#contacto { z-index: 30; }

/* 2. CARRUSEL (Sección Inicio) */
.carousel-full-width {
    width: 100%;
    height: 100%;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.bg-overlay-dark {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-caption-custom {
    background-color: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 3.5rem;
    max-width: 650px;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.carousel-caption-custom h1 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    opacity: 1;
}

/* 3. SECCIÓN NOSOTROS & CONTACTO */
.nosotros-content {
    background-color: var(--white);
    height: 100%;
}

.contacto-block {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.register-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

.register-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 131, 90, 0.3);
}

/* 4. ANIMACIONES */
.animate-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 5. GRID DE PRODUCTOS */
#cursos {
    z-index: 25;
}

.productos-grid-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--border-light);
}

.productos-grid-container::-webkit-scrollbar {
    height: 8px;
}

.productos-grid-container::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.productos-grid-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.productos-grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    min-width: min-content;
    padding: 0.5rem;
}

/* Cuando hay muchos productos, forzar el scroll horizontal */
@media (min-width: 1400px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.producto-card {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 280px;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.producto-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--border-light);
}

.producto-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.producto-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.producto-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    font-family: 'Cormorant Garamond', serif;
}

.producto-card .register-button {
    margin-top: auto;
    text-decoration: none;
}

/* Responsivo para móviles */
@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .producto-card {
        min-width: 100%;
    }

    #cursos {
        padding: 2rem 1rem !important;
    }
}
