/* ---- RESETEO ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color:#F8F9F9;
    color: rgb(6, 65, 43);
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(260px, 1fr);
    grid-auto-rows: min-content;
    column-gap: 40px;
}

/* ---- HEADER ---- */
/* ---- Header transparente al inicio ---- */
.header {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---- Cuando se scrollea ---- */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

/* ---- LOGO ---- */
.header_logo {
    width: 120px; 
    height: auto;
    object-fit: contain;
}

/* ---- BOTÓN MENÚ (signo =) ---- */
.header__open-nav-button {
    font-size: 2rem;
    color: rgb(6, 65, 43);
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    transition: transform 0.3s ease;
    z-index: 10; 
}

.header__open-nav-button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ---- CHECKBOX OCULTO ---- */
.header_checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    appearance: none;
}

/* ---- MENÚ DESLIZABLE ---- */
.header_nav {
    position: fixed;
    top: 0;
    left: -150px; 
    width: 150px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.616); 
    backdrop-filter: blur(6px); 
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 3px;
}

/* ---- CUANDO EL MENÚ ESTÁ ABIERTO ---- */
.header_checkbox:checked ~ .header_nav {
    left: 0;
}

/* ---- LISTA DEL MENÚ ---- */
.header_nav-list {
    list-style: none;
    text-align: center;
}

.header_nav-list li {
    margin: 15px 0;
}

.header_nav-list a {
    text-decoration: none;
    color: rgb(6, 65, 43);
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block;
}

.header_nav-list a:hover {
    color: #F8F9F9;
}

/* ---- SECCIÓN DEL PERFIL ---- */
.perfil_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    margin: auto;
    background-color:#F8F9F9;
    overflow: hidden;
}

header,
main,
footer {
    grid-column: 1 / -1;
}

main {
    grid-row: 2;
}

footer {
    grid-row: 5;
}

/* ---- IMAGEN ---- */
.perfil_imagen_conteiner {
    max-height: 500px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    position: relative;
}

.perfil_imagen {
    width: 100%;
    height: 500px;
    filter: brightness(50%);
    display: block;
}

/* ---- MUESTRA DE LONAS ----*/

.lonas_seccion {
    display: flex;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    grid-column: 1;
}

.lonas_catalogo {
    width: 340px;
    max-height: 75vh;
    overflow-y: auto;
    padding-left: 10px;
}

.lonas_catalogo::-webkit-scrollbar {
    width: 6px;
}

.lonas_catalogo::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
}

.section_lona_data {
    width: auto;
    max-width: none;
    margin: 120px 20px 40px 0;
    padding: 0 10px;
    grid-column: 2 / 4;
    grid-row: 3 / span 2;
}

.section_lona_data h3{
    margin-top: 20px;
}

.article_lona_data {
    padding: 28px 32px;
    line-height: 1.65;
}

.article_lona_data h2,
.article_lona_data h3 {
    color: rgb(6, 65, 43);
}

.article_lona_data h2 {
    font-size: 2.1rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-align: left;
}

.article_lona_data h3 {
    font-size: 1.2rem;
    margin: 22px 0 8px;
}

.article_lona_data p,
.article_lona_data li {
    color: #3E3E3E;
    font-size: 1rem;
    line-height: 1.6;
}

.article_lona_data p {
    margin-bottom: 12px;
}

.article_lona_data ul {
    padding-left: 18px;
    margin: 8px 0 16px;
    display: grid;
    row-gap: 6px;
}

.lonas_seccion:first-of-type {
    grid-row: 3;
    margin-top: 120px;
}

.lonas_seccion:last-of-type {
    grid-row: 4;
    margin-top: 20px;
}

.data_lonas_lisas_container h2, 
.data_lonas_rayadas_container h2 {
    color: rgb(6, 65, 43);
    font-weight: 700;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    position:relative;
    padding-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    animation: aparecerTitulo 0.7s ease forwards;
}

.data_lonas_lisas_container h2::after, 
.data_lonas_rayadas_container h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: rgb(6, 65, 43);
    border-radius: 2px;
    animation: lineaTitulo 1s ease forwards;
}

@keyframes aparecerTitulo {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineaTitulo {
    0% {
        width: 0;
    }
    100% {
        width: 60px;
    }
}

.data_lonas_lisas_container,
.data_lonas_rayadas_container {
    width: 100%;
    max-width: 280px; 
    margin: 50px auto;
    background-color: #F8F9F9;
    text-align: center;
    clear: both;
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    main {
        grid-row: 2;
    }

    .section_lona_data {
        grid-row: 3;
    }

    .lonas_seccion:first-of-type {
        grid-row: 4;
    }

    .lonas_seccion:last-of-type {
        grid-row: 5;
    }

    footer {
        grid-row: 6;
    }

    .lonas_seccion,
    .section_lona_data {
        grid-column: 1;
    }

    .lonas_seccion:first-of-type,
    .lonas_seccion:last-of-type {
        margin-top: 80px;
    }

    .section_lona_data {
        width: 100%;
        max-width: none;
        margin: 100px 20px 30px;
    }

    .data_lonas_lisas_container,
    .data_lonas_rayadas_container,
    .data_videos {
        float: none;
        width: 100%;
    }
}

.lonas_lisas_container,
.lonas_rayadas_container {
    display: grid;
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: auto auto auto;
    gap: 12px;
    padding: 20px;
    justify-items: center;
    justify-content: center;
    margin-top: 15px;
    overflow: visible;
}

.lonas_muestra{
    width: 60px;
    height: 60px;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
    will-change: transform;
}


.lonas_muestra:hover{
    transform: scale(1.3);
    filter: brightness(100%);
    z-index: 5;   
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4)
}

.lona-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lona-overlay.activo {
    opacity: 1;
    pointer-events: all;
}

.lona-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lona-overlay.activo img {
    transform: scale(1);
}

/* ---- FOOTER ---- */
footer {
    background-color: #333;
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;  
    align-items: center;      
    position: relative;      
    bottom: 0;
    left: 0;
    text-align: center;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.541);  
    margin-top: 50px;      
}

.footer_imagen, .footer_imagen_dickson {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.footer_insta {
    width: 200px;
    height: auto;
    left: 20px;
    display: flex;
    position: absolute;
    filter: brightness(120%);
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 12px;
        padding: 20px 10px;
    }

    .footer_imagen, .footer_imagen_dickson {
        width: 100px;
    }

    .footer_insta {
        position: static;
        width: 160px;
        margin-top: 6px;
    }
}


/* ---- AGRADECIMIENTO ---- */

.agradecimiento_container{
    display: flex;
    justify-content: center;  
    align-items: center;      
    position: relative; 
    min-height: 100vh;
    width: 100%;
}

.agradecimiento{
    width: min(420px, 80vw);
    height: auto;
    display: block;
    position: static;
}
