@font-face {
    font-family: 'Magno';
    src: url('./fonts/Magno_Sans_Variable.otf') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bricolage';
    src: url('./fonts/BricolageGrotesque-VariableFont.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('./fonts/Rubik-VariableFont_wght.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
}



.bg_inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, black 10%, transparent 50%),
        url(./images/background_inicio.svg) no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.bg_servicios::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, black 10%, transparent 50%),
        url(./images/servicios_bg.jpg) no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}


header {
    position: relative;
    padding: 20px 10px;
    height: auto;
    margin-bottom: 120px;
}

header img {
    width: 280px;
}

.logo_center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav_left {
    position: absolute;
    right: 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.menu {
    display: flex;
    font-family: 'Magno';
    font-size: 16px;
    list-style: none;
    padding: 0;
    color: #fafae9;
    box-shadow: inset 0 -2px 0 #fafae9;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.menu li {
    position: relative;
}

.menu>li {
    float: left;
}

.menu a {
    display: block;
    padding: 15px 20px;
    color: #fafae9;
    text-decoration: none;
}

.menu a.active {
    background-color: #fafae9;
    color: black;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* .submenu {
    display: none;
    position: absolute;
    background-color: #444;
    top: 100%;
    left: 0;
    min-width: 180px;
    z-index: 999;
}

.submenu li a {
    padding: 10px 15px;
} */

.menu li:hover .submenu {
    display: block;
}

.logo_gde {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 142px);
}

.logo_gde img {
    width: 500px;
    height: auto;
}

.video {
    display: flex;
    position: relative;
    height: auto;
    justify-content: center;
    align-items: center;
    width: 77%;
    padding: 50px;
    margin: auto;
    box-sizing: border-box;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}


.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
    font-family: 'Bricolage';
    font-size: 16px;
    margin: 50px 0;
}

footer img {
    width: 150px;
    height: auto;
}

.textos {
    font-family: 'Rubik';
    font-size: 20px;
    color: #fafae9;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.textos h2 {
    margin-bottom: 10px;
    font-weight: normal;
}

.textos h3 {
    font-size: 26px;
}

.textos p {
    font-family: 'Bricolage';
    font-size: 16px;
    margin-bottom: 0px;
}

.proyectos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    padding-top: 30px;
    justify-content: center;
}

.galeria_dos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    cursor: pointer;
}


.galeria_dos img {
    width: 100%;
    max-width: 450px;
}

.galeria a {
    width: 30%;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.galeria a:hover {
    transform: scale(1.04);
}

.galeria img {
    width: 100%;
    height: auto;
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
}

.modal img {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 15px black;
}

.modal.active {
    display: flex;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.cerrar:hover {
    color: #e2de72;
}

.flechas {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    transform: translateY(-50%);
    box-sizing: border-box;
    max-width: 90%;
}

.flecha {
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.flecha:hover {
    color: #e2de72;
}

.galeria img {
    width: 300px;
    cursor: pointer;
}

.semblanza_imagen {
    width: 100%;
    height: auto;
    margin: 20px 0 60px 0;
    display: flex;
    justify-content: flex-end;

    padding: 40px;
    box-sizing: border-box;
}

.semblanza_imagen img {
    width: 400px;
    height: auto;
}

.justify p {
    font-size: 18px;
    text-align: justify;
}

.semblanza_imagen_dos img {
    width: 500px;
    height: auto;
}

.wrap {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 10px;
}

.wrap_contacto {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin: 80px auto;
}

.contacto {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
}

.contacto p {
    font-family: 'Bricolage';
    font-size: 28px;
    color: white;
    margin: 0 10px 0 10px;
}

.contacto a {
    text-decoration: none;
    color: inherit;
}


/* Estilos base ya definidos MENU*/
.menu {
    display: flex;
    font-family: 'Rubik';
    font-weight: bold;
    font-size: 20px;
    list-style: none;
    padding: 0;
    color: #fafae9;
    box-shadow: inset 0 -2px 0 #fafae9;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.menu li {
    position: relative;
}

.menu>li {
    float: left;
    width: 100%;
}

.menu a {
    display: block;
    padding: 10px 15px;
    color: #fafae9;
    text-decoration: none;
}

.menu a.active {
    background-color: #fafae9;
    color: black;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* --- NUEVOS estilos responsive --- */

/* Oculta el botón en pantallas grandes */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: #fafae9;
    cursor: pointer;
    padding: 15px;
}

.menu {
    flex-direction: column;
    display: none;
    /* Oculto por defecto */
    background-color: #222;
    /* Puedes personalizar */
    width: 100%;
    box-shadow: none;
}

.menu.active {
    display: flex;
    /* Mostrar cuando se activa */
    top: 80px;
    align-items: flex-end;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    margin: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.menu a {
    padding: 10px;
    border-bottom: 1px solid #444;
    font-size: 14px;
    font-weight: normal;
    margin: 5px 0;
    text-align: right;
}

.hamburger {
    display: block;
    margin-left: auto;
}

nav {
    width: 140px;
}

.dir {
    display: block;
    margin: 5px 0;
    font-size: 20px;
}

.ser {
    display: block;
    margin: 5px 0;
    font-size: 15px;
    line-height: 15px;
}

.servicios_inicio_wrap {
    font-family: "Rubik";
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    color: white;
    font-size: 24px;
}

.servicios_inicio_wrap p {
    margin: 5px 0;
}

@media (max-width: 1078px) and (min-width: 768px) {
    .menu {
        font-size: 16px;
    }

    .menu a {
        padding: 5px 10px;
    }
}


@media (max-width: 768px) {

    .bg_inicio::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: -1;

        background:
            linear-gradient(to top, black 10%, transparent 20%),
            linear-gradient(to bottom, black 10%, transparent 20%),
            url(./images/background_inicio_ch.svg);

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    header {
        padding: 20px 0;
        margin-bottom: 130px;
    }

    header img {
        width: 220px;
    }

    .menu {
        flex-direction: column;
        display: none;
        /* Oculto por defecto */
        background-color: #222;
        /* Puedes personalizar */
        width: 100%;
        box-shadow: none;
    }

    .menu.active {
        display: flex;
        /* Mostrar cuando se activa */
        align-items: flex-end;
        padding: 20px;
        box-sizing: border-box;
        position: absolute;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .menu a {
        padding: 15px 10px;
        border-bottom: 1px solid #444;
        font-size: 12px;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        padding-right: 0px;
    }

    .video {
        width: 100%;
        height: 400px;
        padding: 50px 0;
    }

    .textos {
        padding: 0;
    }

    .galeria img {
        width: 120px;
    }

    .galeria_dos img {
        width: 100%;
        max-width: 200px;
    }

    .flechas {
        padding: 0 20px
    }

    .cerrar {
        font-size: 65px;
    }

    .justify {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .justify p {
        text-align: left;
    }

    .textos h2 {
        font-size: 24px;
    }

    .textos h3 {
        font-size: 22px;
    }

    .semblanza_imagen {
        padding: 20px;
        margin-bottom: 100px;
    }

    .semblanza_imagen img {
        width: 100%;
    }

    .contacto {
        margin: 20px 0;
    }

    .contacto p {
        font-size: 26px;
    }

    .wrap_contacto {
        align-items: center;
    }

    .footer {
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .servicios_inicio_wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .servicios_inicio_wrap p {
        margin: 10px 0;
    }
}