/* ---- RESETEO ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color:#F8F9F9;
    color: rgb(6, 65, 43);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth
}

/* ---- HEADER ---- */
.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: 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;
}

/* ---- 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;
}

/* ---- DATA ---- */

.perfil_data_container {
    max-width: 90%;
    margin: 40px auto;
    padding: 20px; 
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    border-radius: 10px;
    animation-duration: 1s; 
    animation-name: slidein;
}

/* --- Caja interna --- */
.perfil_data {
    width: 100%;
}

.perfil_data_descripcion {
    width: 100%;
}

/* --- DETAILS --- */

/* --- Título (summary) --- */
.perfil_data_descripcion h2 { 
    color: rgb(6, 65, 43);
    font-weight: 600;
    font-size: 1.6rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

/* --- Texto del contenido --- */
.perfil_data_descripcion p {
    font-weight: 400;
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    margin-top: 10px;
    background-color: #F5F1E6;
    border-left: 4px solid rgb(6, 65, 43);
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ---- ANIMACIÓN ---- */
@keyframes slidein {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- GALERÍA DE LONAS ---- */

.perfil_lonas_data{     
    color: #F8F9F9;
    min-height: 100px;
    width: 80%;
    border-radius: 10px;
}

.perfil_lonas {
    display: flex;
    justify-content: center;
    align-items: center; 
    flex-wrap: wrap;
    margin: 50px 0px;
}

.perfil_lonas_data h2 {
    color: rgb(6, 65, 43);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px; 
    margin-top: 30px;
}

.perfil_lonas img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    filter: brightness(75%);
    transition: transform 0.4s ease, filter 0.4s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

/* contenedor general de cada imagen y texto */
.perfil_lonas_item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

/* texto superpuesto */
.perfil_lonas_item a {
    position: absolute;
    text-decoration: none;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #F8F9F9;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 0;
    margin: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ---- efecto hover ---- */
.perfil_lonas_item:hover img {
    transform: scale(1.05);
    filter: brightness(90%);
}

/* ---- CONTACT SECTION ---- */

.form {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    max-width: none;
    margin-top: 50px;
    container-name: form;
    container-type: inline-size;
    background-image: radial-gradient(rgba(230, 230, 230, 0.76),rgb(99, 99, 99));
}

.form h2 {
    color: white;
}

.form_form {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    display: grid;
}

.form_data_container {
    width: 100%;
}

.form_data_container label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #F8F9F9;
    margin-bottom: 5px;
    width: 100%;
}

/* Aplica el mismo estilo a todos los inputs, textareas y select */
.form_data_container :is(input, textarea, select) {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    box-shadow: 2px 2px 4px #333;
    margin-top: 5px;
}

.form_data_container input[type="submit"] {
    width: 50%;
    max-width: 300px;
    background-color: #F8F9F9;
    color: rgb(55, 56, 56);
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 2px 2px 4px #333;
    transition: background-color 0.3s ease;
    align-self: center;
    justify-content: center;
    pointer-events: auto;
}

.form_data_container label:has(input[type="submit"]) {
    pointer-events: none;
}

.form_data_container input[type="submit"]:hover {
    background-color: rgba(192, 192, 192, 0.801);
}

.form_data_container textarea {
    min-height: 120px; 
    resize: vertical;  
    font-family: inherit;
}

/* ---- CONTACTO QUIERES ----*/

@container form (min-width: 56.25rem){
    .form_form {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "nombre apellido"
            "email telefono"
            "mensaje mensaje"
            "servicio servicio"
            "boton boton"; 
        gap: 12px;
    }
    .form_data_container:first-child {
        grid-area: nombre;
    }
    .form_data_container:nth-child(2) {
        grid-area: apellido;
    }
    .form_data_container:nth-child(3) {
        grid-area: email;
    }
    .form_data_container:nth-child(4) {
        grid-area: telefono;
    }
    .form_data_container:nth-child(5) {
        grid-area: mensaje;
    }
    .form_data_container:nth-child(6) {
        grid-area: servicio;
    }
    .form_data_container:nth-child(7) {
        grid-area: boton;
    }
    .form_data_container:nth-child(6) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .form_form {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "nombre apellido"
            "email telefono"
            "mensaje mensaje"
            "servicio servicio"
            "boton boton"; 
        gap: 12px;
    }
    .form_data_container:first-child {
        grid-area: nombre;
    }
    .form_data_container:nth-child(2) {
        grid-area: apellido;
    }
    .form_data_container:nth-child(3) {
        grid-area: email;
    }
    .form_data_container:nth-child(4) {
        grid-area: telefono;
    }
    .form_data_container:nth-child(5) {
        grid-area: mensaje;
    }
    .form_data_container:nth-child(6) {
        grid-area: servicio;
        grid-column: 1 / -1;
    }
    .form_data_container:nth-child(7) {
        grid-area: boton;
    }
}

/* ---- MUESTRA DE TOLDOS ---- */

.data_toldos_container h2,
.data_toldos_verticales_container h2 {
    color: rgb(6, 65, 43);
    font-weight: 700;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    animation: aparecerTitulo 0.7s ease forwards;
}

.data_toldos_container h2::after,
.data_toldos_verticales_container h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    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_toldos_container p,
.data_toldos_verticales_container p {
    font-weight: 400;
    color: #1F2A1F;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto 20px;
    max-width: 90%;
    background-color: #F5F1E6;
    border-left: 4px solid rgb(6, 65, 43);
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.data_toldos_container,
.data_toldos_verticales_container{
    width: 60%;
    margin: 50px auto;
    background-color: #f8f9f8;
}


.toldos_container,
.toldos_verticales_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 12px;
    padding: 12px; 
}

.toldo_muestra,
.toldo_vertical_muestra {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(75%);
    transition: transform 0.4s ease, filter 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.toldo_muestra:first-child {
    grid-row: span 2;
    height: 100%;
}

.toldo_muestra:nth-child(6) {
    height: 200px;
    grid-column: span 3;
}

.toldo_vertical_muestra:first-child{
        grid-column: span 2;
        height: 200px;
}

.toldo_vertical_muestra:nth-child(2) {
    grid-row: span 3 ;
    height: 100%;
}

/* ---- Hover ---- */
.toldo_muestra:hover,
.toldo_vertical_muestra:hover {
    transform: scale(1.05);
    filter: brightness(90%);
}

/* ---- Imagen expandida ---- */
.toldo_muestra.expandida,
.toldo_vertical_muestra.expandida {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 9999;
    width: auto;
    height: auto;
    max-width: 95vw;    
    max-height: 90vh;   
    border-radius: 10px;
    object-fit: contain;
    background-color: #000; 
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    transition: all 0.35s ease-in-out;
}

/* ---- Fondo difuso ---- */
.fondo-difuso {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); 
    backdrop-filter: blur(4px);      
    z-index: 9998;
}


/* ---- 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: 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) {
    .perfil_data_container {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 16px 18px;
        gap: 20px;
    }

    .perfil_data_descripcion p {
        max-width: 100%;
    }

    .data_toldos_container,
    .data_toldos_verticales_container {
        width: 100%;
    }

    .data_toldos_container p,
    .data_toldos_verticales_container p {
        max-width: 95%;
        padding: 14px 16px;
    }

    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;
    }
}

