/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HERO */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-image: url("../IMAGES/rectangle.jpg");
    background-size: cover;
    min-height: 100vh;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
    overflow-x: hidden;
}


main {
    position: relative;
    z-index: 1;
}


/* HEADER */
header {
    position: static; /* referencia para absolute */
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    color: #fff;
    z-index: 9999;
}

.menu-bttn {
    display: flex;
    flex-direction: column;
    
}

/* LOGO */
header img {
    max-width: 8rem;
    margin-left: 2rem;
}

/* BOTÓN HEADER (CTA) */
.button-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.55rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 999px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);

    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;

    cursor: pointer;
    transition: all 0.3s ease;

    z-index: 30; /* 👈 SIEMPRE ARRIBA */
}

.button-header:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.8);
}

/* HAMBURGUESA */
.hamburger {
    position: relative;
    width: 30px;
    cursor: pointer;
    display: block;
    z-index: 9999;
    
    margin-left: auto;
    margin-top: 2rem;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    margin: 5px 0;
    z-index: 9999;
}

/* MENU HAMBURGUESA */
.menu {
    position: fixed;    
    top: 5rem;
    right: 5rem;

    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    font-size: xx-large;
    z-index: 9999;             
}


.menu.active {
    display: flex;
    z-index: 9999;
}

.menu a {
    color: white;
    text-decoration: none;
    z-index: 9999;
}

/* SECTIONS */
.section {
    position: relative; /* importante para que esté en flujo */
    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.section.active {
    max-height: 2000px; /* suficientemente grande */
    opacity: 1;
    transform: translateX(0);
}








/* INCIO */ 

.style-home {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.style-home img {
    max-width: 7rem;
}
h1 {
    margin-top: 7rem;
    color: #fff;
    font-weight: 300;
    font-size: 1.5rem;
}

/* BRANDING */

.style-branding-hero {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* ← CAMBIO */
}

.style-branding-hero h2 {
    font-size: 6rem;
    font-weight: 900;
    text-align: center;
}

/* STYLE SECTIONS MAIN */

.style-section-main {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 50% 1fr;
    width: 100%;
    gap: 3rem;
}

.style-section-main-one {
    margin-left: 40%;
    padding: 0 4rem;
}

.style-section-main-one p:nth-of-type(2) {
    margin-top: 1rem;
    font-weight: 500;
    text-decoration: underline;
}


.style-section-main-two {
    margin-left: 3rem;
    padding: 0;
    position: relative;
    min-width: 0;
    overflow-x: hidden;
    max-width: 50%;
}

.style-section-main-two details {
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.style-section-main-two summary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    list-style: none;
}

.style-section-main-two details[open] > summary {
    font-weight: 700;
}

.style-section-main-two p {
    margin-top: 1rem;
    background-color: #ffffff14;
    border-radius: 5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.style-section-main-two summary::-webkit-details-marker {
    display: none;
}

.button-sections {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media screen and (max-width: 1024px) {
    .style-section-main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 0%
    }

    .style-section-main-one {
        margin-left: 30%;
        padding: 0%;
    }
    .style-section-main-two {
        margin-left: 0;
    }
    .button-sections {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}


@media screen and (max-width: 720px) {
    body {
        font-family: 'Montserrat', Arial, sans-serif;
        background-image: url("../IMAGES/rectangle_mobile.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed; /* fondo fijo */
        position: relative;
    }

    /* Overlay */
    body::after {
        content: "";
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.15);
        mix-blend-mode: multiply;
        filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grain'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter></svg>#grain");
        z-index: -1; /* siempre detrás del contenido */
        pointer-events: none;
        background-size: cover;
    }

    .menu {
        background-color: rgba(0, 0, 0, 0.263);
        border-radius: 13px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.332);
    }
    .menu a {
        color: rgb(255, 255, 255);
        font-size: 1.5rem;
    }


    .style-branding-hero h2 {
        font-size: 3rem;
    }

    .style-section-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        padding: 2rem;
    }

    .style-section-main-one{
        max-width: 100%;
        padding: 0%;
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .style-section-main-one p {
        font-size: 3rem;
    }

    .style-section-main-two{
        margin-left: 0;
        max-width: 100%;
    }

    .style-section-main-one p,
    .style-section-main-two summary {
        font-size: 0.95rem;
    }

    .style-section-main-two p {
        padding: 0.75rem;
    }
    .button-sections {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}



@media screen and (max-width: 360px) {
    body {
        font-family: 'Montserrat', Arial, sans-serif;
        background-image: url("../IMAGES/rectangle_mobile.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed; /* fondo fijo */
        position: relative;
        overflow-x: hidden;
    }

    /* Overlay */
    body::after {
        content: "";
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.15);
        mix-blend-mode: multiply;
        filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grain'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter></svg>#grain");
        z-index: -1; /* siempre detrás del contenido */
        pointer-events: none;
        background-size: cover;
    }

    .menu {
        background-color: rgba(0, 0, 0, 0.263);
        border-radius: 13px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.332);
    }
    .menu a {
        color: rgb(255, 255, 255);
        font-size: 1.5rem;
    }


    /* TITULOS */
    .style-branding-hero h2 {
        font-size: 2.4rem;
        line-height: 1.1;
    }

    h1 {
        margin-top: 3rem;
        font-size: 1.2rem;
        text-align: center;
    }

    /* GRID → UNA COLUMNA */
    .style-section-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding: 2rem;
    }

    /* QUITAR MÁRGENES FORZADOS */
    .style-section-main-one {
        padding: 0%;
        max-width: 100%;
    }
    .style-section-main-two {
        margin-left: 0;
        max-width: 100%;
    }

    /* TEXTO */
    .style-section-main-one p {
        font-size: 0.9rem;
    }

    .style-section-main-two summary {
        font-size: 0.9rem;
    }

    .style-section-main-two p {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* MENÚ */
    .menu {
        right: 1rem;
        top: 4.5rem;
        font-size: 1.5rem;
    }
    .button-sections {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}






