/* ===========================================
   VARIABLES GLOBALES
=========================================== */
:root {
    --navbar-height: 90px;
    --color-1: #A68568;
    --color-2: #F2E0D0;
    --color-3: #F2F2F2;
    --color-4: #464B59;
    --color-5: #1E2126;
    --font-main: 'Cocogoose', sans-serif;
}

/* ===========================================
   IMPORTAR FUENTE COCOGOOSE
=========================================== */
@font-face {
    font-family: 'Cocogoose';
    src: url('../fonts/cocogoosev2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===========================================
   AJUSTE GENERAL
=========================================== */
body {
    margin: 0;
    padding: 0;
    background: var(--color-3);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* ===========================================
   CONTENEDOR PRINCIPAL
=========================================== */
.carousel-container {
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    position: relative;
    overflow: hidden;
}

/* ===========================================
   CARRUSEL NAVIDEÑO
=========================================== */
.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================================
   TEXTO SOBRE EL CARRUSEL
=========================================== */
.carousel-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    max-width: 60%;
    color: white;
    text-shadow: 0px 4px 20px rgba(0,0,0,0.7);
    animation: fadeUp 1s ease;
}

.carousel-text h2 {
    margin: 0;
    font-size: 45px;
    line-height: 1.1;
}

.carousel-text p {
    margin: 12px 0 0 0;
    font-size: 22px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   MOSAICO 3×3
=========================================== */
.mosaic-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 8px;
    padding: 10px;
    background: var(--color-3);
}

/* Tamaños aleatorios */
.mosaic-item.small {
    grid-row: span 1;
}

.mosaic-item.medium {
    grid-row: span 2;
}

.mosaic-item.large {
    grid-row: span 3;
}

/* Estilos de cada celda */
.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #ddd;
    animation: fadeIn 1.2s ease forwards;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ===========================================
   RESPONSIVE
=========================================== */

/* Móvil */
@media (max-width: 768px) {

    .carousel-text {
        left: 20px;
        bottom: 25px;
        max-width: 85%;
    }

    .carousel-text h2 {
        font-size: 30px;
    }

    .carousel-text p {
        font-size: 18px;
    }

    .mosaic-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .mosaic-item.large {
        grid-row: span 2;
    }
}

/* Ultra pequeño */
@media (max-width: 480px) {
    .carousel-text h2 {
        font-size: 26px;
    }

    .carousel-text p {
        font-size: 16px;
    }

    .mosaic-container {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 250px;
    }
}
