
html {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.slides {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.slide {
    height: 100vh;
    scroll-snap-align: start;
}


/* slide 1 logo y display  */
.logofront {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.logofront a {
    display: inline-block;
    padding: 8px 20px;
    Background-color: rgb(130, 42, 42);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-align: center;
    width: fit-content;
    
}

.logofront a:hover {
    transition: 2px 3px 4px ;
    
}

.logofront a:link {
    color: rgb(0, 0, 0);
}

.logofront a:visited {
    color: white
}

.logo img {
    width: 500px;
    height: auto;
}

.logofront-texto {
    color: white;
    font-size: 20px;
    text-shadow:
        -1px -1px 0 black,
         1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black;
}

.slide-1 {
    background-image: url('/static/paginaprincipal/img/fondo-prueba.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.slide-1 {
    position: relative;
}

.slide-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.slide-1 > * {
    position: relative;
    z-index: 1;
}

.slide-2 {
    height: 100vh;
}

.split {
    display: flex;
    height: 100%;
}

.panel {
    flex: 1;
    transition: flex 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: black
}

.split.expand-left .left {
    flex: 9;
}

.split.expand-left .right {
    flex: 1;
}

.split.expand-right .right {
    flex: 9;
}

.split.expand-right .left {
    flex: 1;
}

.panel.left {
    background-image: url(/static/paginaprincipal/img/fondoc.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: solid 5px black;
}

.panel.right {
    color: aliceblue;
    background-image: url(/static/paginaprincipal/img/fondoW.jpg);
    border: solid 5px black;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.panel {
    position: relative;
    overflow: hidden;
}

.panel .logoW {
    width: 400px;
    transition: transform 0.6s ease;
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.panel .logoC {
    width: 400px;
    transition: transform 0.6s ease;
    z-index: 2;
    opacity: 1 ;
    pointer-events: auto;
}

.panel.active .logoW {
    transform: translateY(-300px);
    width: 400px;
    height: 250px;
    opacity: 1;
    pointer-events: auto;
}

.panel.active .logoC {
    transform: translateY(-310px);
    opacity: 1;
    pointer-events: auto;

}

.panel .logo-mini-coromant, 
.panel .logo-mini-walter {
    width: 80px;
    transition: opacity 0.4s ease;
    z-index: 2;
    cursor: pointer;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.panel.active .logoC, 
.panel.active .logoW {
    transform: translateY(-220px);
    opacity: 1;
    pointer-events: auto;
}

.panel.active .logo-mini-coromant , 
.panel.active .logo-mini-walter {
    opacity: 0;
    pointer-events: none;
}

/* Cuando el panel NO está activo (encogido) */
.panel:not(.active) .logoC,
.panel:not(.active) .logoW {
    opacity: 0;
    pointer-events: none;
}

.panel:not(.active) .logo-mini-coromant,
.panel:not(.active) .logo-mini-walter {
    opacity: 1;
    pointer-events: auto;
}

/* ===== PANEL NO ACTIVO (encogido cuando el OTRO está activo) ===== */
.split.expand-left .panel.left:not(.active) .logoC,
.split.expand-right .panel.right:not(.active) .logoW {
    opacity: 0;  
    pointer-events: none;
}

.split.expand-left .panel.right:not(.active) .logo-mini-walter,
.split.expand-right .panel.left:not(.active) .logo-mini-coromant {
    opacity: 1; 
    pointer-events: auto;
}

/* Cuando NO hay expansión (estado inicial) - ambos grandes visibles */
.split:not(.expand-left):not(.expand-right) .logoC,
.split:not(.expand-left):not(.expand-right) .logoW {
    opacity: 1;
    pointer-events: auto;
}

.split:not(.expand-left):not(.expand-right) .logo-mini-coromant,
.split:not(.expand-left):not(.expand-right) .logo-mini-walter {
    opacity: 0;
    pointer-events: none;
}

.panel .cards {
    position: absolute;
    bottom: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; 
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.panel.active .cards {
    opacity: 1;
    transform: translateY(0);
}

.panel .card {
    width: 180px;
    height: 180px;
    border-radius: 5px;
    border: solid 3px black;
    display: flex;  
    align-items: center;
    justify-content: center;  
    text-decoration: none;
    background-color: black;
    overflow: hidden;  
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

/* Contenedor de imagen centrada */
.panel .card img {
    width: 95%;   
    height: 95%;  
    object-fit: cover;  
    

}
/*Texto siempre abajo */
.panel .card span { 
    display: none; 
}

.panel .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Efecto de click */
.panel .card:active {
    transform: scale(0.95); }



/* ========================================= */
/* ===== RESPONSIVE - SOLO PARA MÓVIL ===== */
/* ========================================= */

@media (max-width: 768px) {
    
    /* Ajustar footer para que no tape contenido */
    footer {
        height: 50px;
        font-size: 14px;
    }
    
    /* SLIDE 1 - Ajustes de logo y texto */
    .logo img {
        max-width: none;
        width: 290;
        height: auto;
    }
    
    .logofront a {
        width: fit-content;
        height: fit-content;
    }
    
    .logofront-texto {
        font-size: 16px;
        padding: 0 20px;
    }
    
    /* SLIDE 2 - Hacer paneles verticales en móvil */
    .split {
        flex-direction: row;
    }
    
    .panel {
        border: solid 5px black; /* Bordes más delgados */
    }
    
    /* Estados expandidos verticalmente */
    .split.expand-left .left,
    .split.expand-right .right {
        flex: 7;
    }
    
    .split.expand-left .right,
    .split.expand-right .left {
        flex: 1;
    }
    
    /* Logo más pequeño en paneles */
    .panel .logoC {
        width: 200px;
    }
   
    .panel .logoW {
        width: 200px;
    }
    /* Logo sube cuando está activo */
    .panel.active .logoC {
        transform: translateY(-250px);
        width: 300px;
    }
    
    .panel.active .logoW {
        transform: translateY(-250px);
    }


    /* Cards en una sola columna en móvil */
    .panel .cards {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 15px;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%) translateY(40px);
    }
    
    .panel.active .cards {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Cards más pequeñas */
    .panel .card {
        width: 140px;
        height: 140px;
    }

}

/* Para pantallas MUY pequeñas (iPhone SE, etc) */
@media (max-width: 400px) {
    
    .logo img {
        width: 300px;  /* ← Más pequeño para iPhone SE */
    }
    
    .logofront-texto {
        font-size: 14px;
    }
    
    /* Logo de paneles más arriba */
    .panel .logoC {
        width: 150px;
    }
    .panel .logoW {
        width: 200px;
    }
    .panel.active .logoC {
        transform: translateY(-250px);
        width: 240px ;
    }

    .panel.active .logoW {
        transform: translateY(-250px);
    }
    
    /* Cards más arriba y centradas */
    .panel .cards {
        bottom: 150px;  
        gap: 15px;  
    }
    
    .panel .card {
        width: 120px;
        height: 120px;
    }
}
