/* =========================================
   1. CORE / ESCRITORIO
   ========================================= */
body {
    background-color: rgb(39, 39, 39);
    background-image: url('/img/index/FONDO_PC.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

header {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.brand-identity {
    color: #bb9262;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.brand-identity img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
}

#sectio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

#sectio h1 {
    font-size: 24px;
    margin: 0;
}

#sectio p {
    font-size: 14px;
    margin: 0;
}

#menu-trigger {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 0;
    background-image: url('/img/index/menu_icon_white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

/* =========================================
   2. VIEWPORT CENTRAL (Canvas y Paginación)
   ========================================= */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 100px; /* Ajuste para evitar que el footer fije cubra los controles */
}

#animation-viewport {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px 0;
    position: relative;
    cursor: pointer;
    transition: background-color 0.8s ease;
    overflow: hidden;
}

/* Película blanca translúcida sobre el fondo en hover.
   pointer-events: none garantiza que no bloquee clics ni hover de los hijos. */
#animation-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.18);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

#animation-viewport:hover::before {
    opacity: 1;
}

/* Campo Gris Dinámico - Altura Expandida */
#project-display-canvas {
    width: 75%;
    height: 65vh; /* Incremento drástico para la animación de los proyectos */
    background-color: rgba(128, 128, 128, 0.4);
    backdrop-filter: blur(2px);
}

/* Controles del flujo (Círculos) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: background-color 0.8s ease;
    position: relative;
    z-index: 2; /* Queda por encima del ::before del viewport */
}

.carousel-indicators .dot {
    width: 16px;
    height: 16px;
    background-color: #bb9262;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.carousel-indicators .dot.active,
.carousel-indicators .dot:hover {
    background-color: white;
    border-color: #bb9262;
    transform: scale(1.3);
}

/* =========================================
   3. FOOTER
 /* =========================================
   3. FOOTER (Anclaje de Identidad)
   ========================================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px); /* Coherencia visual con el canvas */
    color: #bb9262;
    padding: 15px 0;
    z-index: 9000; /* Situado por debajo del #main-menu (9999) */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);

}

address {
    width: 100%;
    font-style: normal;
}

#autor {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

#autor p {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 16px;
    font-weight: bold; /* Énfasis en la autoría */
    letter-spacing: 1px;
}

.my_adress {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 5%;
    box-sizing: border-box;
}

.my_adress p, .my_adress a {
    font-size: 14px;
    text-align: center;
    margin: 0;
    text-decoration: none;
    color: #bb9262;
    transition: color 0.3s ease;
}

/* Interacción sutil para el punto de contacto */
.my_adress a:hover {
    color: black;
    text-decoration: underline;
}


/* CSS (Agregar al final de su hoja de estilos) */
/* Estado inicial en style.css */
#main-menu {

    /* CRÍTICO: Cambiamos absolute por fixed para desvincularlo del scroll */
    position: fixed !important; 
    top: 60px; 
    right: 0;
    width: 80%; 
    max-width: 300px;
    
    /* Limitamos su crecimiento para que no estire la página */
    max-height: calc(100vh - 80px); 
    overflow-y: auto; 

    z-index: 10000; 
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    display: none;
}

/* Clase de activación */
#main-menu.is-active {
    display: block !important;
}

#main-menu ul {
    
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#main-menu li {
     
    border-bottom: 1px solid #eee;
    width: 100%;/* Línea más fina para no saturar visualmente */
}

#main-menu li:last-child {
    border-bottom: none; /* Limpieza semántica del último elemento */
}

#main-menu a {

    display: block;
    padding: 20px 15px; /* Reducción de 25px a 20px para mayor densidad */
    text-align: right;
    color: #bb9262;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    border-bottom: 1px solid #eee;

}

#main-menu a:hover {
    background-color: #f9f9f9;
    color: black;
}


















/* =========================================
   4. ADAPTABILIDAD (Media Queries)
   ========================================= */
@media screen and (max-width: 768px) {
    body {
        background-image: url('/img/index/FONDO_TABLET-MOVIL.png');
    }

    .brand-identity img {
        max-width: 60px;
        max-height: 60px;
    }

    #sectio h1 {
        font-size: 18px;
    }

    #autor p {
        font-size: 14px;
    }

    .my_adress p, .my_adress a {
        font-size: 12px;
    }

    #project-display-canvas {
        width: 85%;
        height: 60vh; /* Altura dinámica para tablet/paisaje */
    }
}

@media screen and (max-width: 500px) {
    header {
        padding: 10px;
    }

    .brand-identity {
        gap: 10px;
    }

    .brand-identity img {
        max-width: 45px;
        max-height: 45px;
    }

    #sectio h1 {
        font-size: 14px;
    }

    #sectio p {
        display: none;
    }

    #menu-trigger {
        width: 35px;
        height: 35px;
    }

    #autor {
        margin-bottom: 10px;
    }

    #autor p {
        font-size: 12px;
    }

    .my_adress {
        flex-direction: column;
        gap: 8px;
    }

    #project-display-canvas {
        width: 90%;
        height: 55vh; /* Altura extendida y optimizada para móvil vertical */
    }
}