@font-face {
    font-family: pop;
    src: url(../font/pop.ttf);
}

@font-face {
    font-family: pop-b;
    src: url(../font/pop-b.ttf);
}

@font-face {
    font-family: pop-bf;
    src: url(../font/pop-bf.ttf);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    cursor: pointer;
}

:root {
    --title: 3.5rem;
    --subtitle: 2.5rem;
    --parrafos: 1rem;
    --footer: .7rem;
    --color1: #ffffff;
    --color2: #0040D0;
    --color3: #289201;
    --color4: #29427C;
    --color5: #00000076;
}

body {
    overflow-x: hidden;
}

/* Header Inicio */
header-fxwb {
    width: 100%;
    height: 7em;
    display: block;
}

header {
    width: 90dvw;
    height: 4em;
    display: flex;
    justify-content: space-between;
    margin: .5em 5dvw;
}

.logo {
    width: 70%;
    height: auto;
}

.logo a {
    width: 100%;
    height: auto;
    display: block;
}

.logo picture {
    width: 100%;
    height: auto;
    display: block;
}

.logo img {
    width: 12em;
    height: auto;
}

.nav {
    width: 30%;
    height: auto;
}

.menu {
    width: 100%;
    height: auto;
    display: block;
}

#hamburger {
    float: right;
}

#hamburger button {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    width: 5em;
    height: 4.7em;
}

#hamburger button span {
    width: 60%;
    height: 0.3em;
    border-radius: 2em;
    background: var(--color2);
    display: block;
    margin: 5px auto;

    animation-duration: .5s;
    animation-fill-mode: forwards;
}

#hamburger button.open .top-line {
    animation-name: top-line-animation;
}

#hamburger button.open .middle-line {
    animation-name: middle-line-animation;
}

#hamburger button.open .bottom-line {
    animation-name: bottom-line-animation;
}

#hamburger button .top-line {
    animation-name: top-line-animation-close;
}

#hamburger button .middle-line {
    animation-name: middle-line-animation-close;
}

#hamburger button .bottom-line {
    animation-name: bottom-line-animation-close;
}

@keyframes top-line-animation {

    50%,
    100% {
        margin: 0 auto;
        transform: translateY(4px) rotate(-45deg);
    }
}

@keyframes bottom-line-animation {

    50%,
    100% {
        margin: 0 auto;
        transform: translateY(-4px) rotate(45deg);
    }
}

@keyframes middle-line-animation {

    20%,
    100% {
        margin: 0 auto;
        width: 0;
        opacity: 0;
    }
}

@keyframes top-line-animation-close {
    0% {
        margin: 0 auto;
        transform: translateY(5px) rotate(-45deg);
    }

    50%,
    100% {
        margin: 5px auto;
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes bottom-line-animation-close {
    0% {
        margin: 0 auto;
        transform: translateY(-5px) rotate(45deg);
    }

    50%,
    100% {
        margin: 5px auto;
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes middle-line-animation-close {
    0% {
        margin: 0 auto;
        width: 0;
        opacity: 0;
    }

    20%,
    100% {
        margin: 0 auto;
        width: 60%;
        opacity: 1;
    }
}

.ulCelu {
    width: 100%;
    height: auto;
    font-family: pop;
    font-weight: 900;
    font-size: var(--parrafos);
    position: absolute;
    top: 5em;
    left: 0;
    z-index: 10;
    color: var(--color1);
    background: var(--color2);
    padding: 4em 0 3em 0;
    text-align: center;
    display: none;
}

.ulCelu li a {
    color: var(--color1);
}

#linea {
    width: 90%;
    height: 1px;
    background: var(--color1);
    margin: auto;
    opacity: 0.5;
}

#botonesMenu {
    width: 90%;
    height: auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin: auto;
}

#contact1 {
    width: 9em;
    height: 1.8em;
    border-radius: .5em;
    background: var(--color1);
    color: var(--color2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#sectores {
    width: 9em;
    height: 1.8em;
    border: solid 2px var(--color1);
    border-radius: .5em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Modal Inicio */
#modalContactenos::backdrop,
#modalSectores::backdrop {
    background: var(--color5);
}

.modal {
    width: 80dvw;
    border: 0;
    border-radius: 1em;
    position: relative;
    transition: all .5s;
    animation: modalContactenos .5s normal ease-out;
}

@keyframes modalContactenos {
    0% {
        transition: all .5s;
        height: 1px;
    }

    100% {
        transition: all .5s;
        height: 40em;
    }
}

.close {
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    font-family: pop;
    font-size: 2rem;
    background: none;
    color: var(--color1);
    border: none;
}

.close:hover {
    background: var(--color1);
    color: var(--color2);
    border: none;
    border-radius: 0 0 0 .5em;
}

.top-line2 {
    width: 100%;
    height: 0.13em;
    border-radius: 2em;
    background: var(--color2);
    display: block;
    margin: 0 auto;
    transform: translateY(0px) rotate(-45deg);
}

.bottom-line2 {
    width: 100%;
    height: 0.13em;
    border-radius: 2em;
    background: var(--color2);
    display: block;
    margin: 0 auto;
    transform: translateY(-4px) rotate(45deg);
}

#modalContactenos h2 {
    width: 100%;
    height: auto;
    font-size: 2rem;
    font-family: pop-b;
    font-weight: 900;
    color: var(--color2);
    text-align: center;
    margin: .5em 0 1em 0;
}

#modalSectores {
    background: var(--color2);
}

#cerrarSectores .close {
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    font-family: pop;
    font-size: 2rem;
    background: none;
    color: var(--color1);
    border: none;
}

#cerrarSectores .close:hover {
    background: var(--color1);
    color: var(--color2);
    border: none;
    border-radius: 0 0 0 .5em;
}

#cerrarSectores .top-line2 {
    width: 100%;
    height: 0.13em;
    border-radius: 2em;
    background: var(--color1);
    display: block;
    margin: 0 auto;
    transform: translateY(0px) rotate(-45deg);
}

#cerrarSectores .bottom-line2 {
    width: 100%;
    height: 0.13em;
    border-radius: 2em;
    background: var(--color1);
    display: block;
    margin: 0 auto;
    transform: translateY(-4px) rotate(45deg);
}

#modalSectores h2 {
    width: 100%;
    height: auto;
    font-size: 2rem;
    font-family: pop-b;
    font-weight: 900;
    color: var(--color1);
    text-align: center;
    margin: .5em 0 1em 0;
}

.sectores {
    width: 100%;
    height: auto;
    font-family: pop;
    color: var(--color1);
    padding: 1em 0 2em 0;
    text-align: center;
}

.sectores li {
    margin: 2em;
}

.sectores li a {
    color: var(--color1);
    opacity: .5;
}

/* Formulario Inicio */
form {
    font-family: pop-b;
    font-weight: 500;
}

.form-group {
    width: 95%;
    margin-bottom: .8em;
}

form label {
    color: var(--color2);
    display: block;
    margin-bottom: .2em;
    font-size: .8em;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.required {
    color: red;
}

.dynamic-field {
    display: none;
    margin-top: 10px;
}

form button {
    background: var(--color3);
    color: var(--color1);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: auto;
}

form button:hover {
    background: var(--color3);
}

form p {
    width: 95%;
    height: auto;
    font-size: .7em;
    color: var(--color5);
    opacity: .5;
    margin-bottom: .7em;
}

.error {
    color: red;
    font-size: 0.9em;
}

/* Formulario Fin */
/* Modal Fin */
/* Submenu Inicio */
.active {
    width: 100%;
    background: var(--color2);
    color: var(--color1);
    transition: all 1s;
    display: flex;
    flex-direction: column;
    gap: 2em;
    box-shadow: 0px 10px 20px var(--color5);
    overflow: hidden;
    animation: activeMenu .6s normal ease-out;
}

@keyframes activeMenu {
    0% {
        height: 1px;
    }

    100% {
        height: 19em;
    }
}

/* Submenu Fin */
#contact2 {
    display: none;
}

/* Header Fin */
/* Slider Inicio*/
.slider {
    width: 100dvw;
    height: 80dvh;
    padding: 1em 0;
}

.video-container {
    width: 94dvw;
    height: 100%;
    border-radius: 1em;
    margin: 0 3dvw;
    top: 0%;
    left: 0%;
    overflow: hidden;
    position: relative;
}

video.fillWidth {
    width: 350%;
    height: auto;
    left: -120%;
    right: 0%;
    position: relative;
}

h1 {
    width: 100%;
    height: auto;
    font-family: pop-b;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color1);
    margin: 0 3dvw .5em 3dvw;
    position: absolute;
    bottom: 0em;
    text-shadow: 0px 6px 5px var(--color5);
    line-height: .8em;
}

/* Slider Fin */
/* Aside Inicio */
aside {
    width: 100dvw;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    margin: 2em 0;
}

.cont-iconos {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.cont-iconos img {
    width: 5em;
    height: auto;
}

.cont-iconos h3 {
    font-family: pop-b;
    font-size: 1rem;
    font-weight: 900;
    line-height: .8em;
    color: var(--color2);
}

/* Aside Fin */
/* Section Inicio */
.section {
    width: 100dvw;
    height: auto;
    display: flex;
    margin: 4em 0;
}

.direction1 {
    flex-direction: column;
}

.direction2 {
    flex-direction: column;
}

.cont-text-sector {
    width: 90dvw;
    height: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.cont-text-sector h2 {
    width: 100%;
    height: auto;
    font-family: pop-b;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    color: var(--color3);
}

.cont-text-sector p {
    width: 100%;
    height: auto;
    font-family: pop;
    font-size: 1rem;
    font-weight: 100;
    line-height: 1.3em;
    text-align: center;
    color: var(--color5);
}

.cont-text-section {
    display: none;
}

.cont-text-img {
    width: 90dvw;
    height: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    justify-content: center;
}

.cont-text-img h2 {
    width: 100%;
    height: auto;
    font-family: pop-b;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    color: var(--color2);
}

.cont-text-img picture {
    width: 100%;
    height: 10em;
    border-radius: 2em;
    overflow: hidden;
}

.cont-text-img img {
    width: 100%;
    height: auto;
    position: relative;
    top: 0%;
    left: 0%;
    right: 0%;
}

.cont-text-img p {
    width: 100%;
    height: auto;
    font-family: pop;
    font-size: 1rem;
    font-weight: 100;
    line-height: 1.3em;
    text-align: center;
    color: var(--color5);
}

#estudios,
#tratamiento,
#equipos {
    background: #00000021;
    padding: 2em 0;
}

/* Section Fin */
/* Footer Inicio */
footer{
    width: 100dvw;
    height: auto;
    background: var(--color2);
    color: var(--color1);
    display: flex;
    gap: .5em;
}
footer picture{
    width: 3em;
    height: auto;
    background: var(--color1);
    padding: .5em 1em .5em 1em;
}
footer picture img{
    width: 3em;
    height: auto;
    background: var(--color1);
}
footer a{
    text-decoration: none;
    color: var(--color1);
    font-family: pop-b;
    font-weight: 500;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.redes{
    width: auto;
    height: auto;
}
.redes img{
    width: 1em;
    height: auto;
}
/* Footer Fin */
@media only screen and (min-width:481px) and (max-width:768px) {

    /* Header Inicio */
    .nav {
        display: flex;
        justify-content: end;
    }

    .menu {
        width: 20%;
        display: flex;
        justify-content: right;
        align-items: center;
    }

    .ulCelu {
        padding: 1em 0;
    }

    /* Header Fin */
    /* Slider Inicio */
    video.fillWidth {
        width: 100%;
        left: 0%;
    }

    h1 {
        width: 60%;
        font-size: 2rem;
        line-height: 1em;
    }

    /* Slider Fin */
    /* Aside Inicio */
    aside {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Aside Fin */
    /* Section Inicio */
    .section {
        width: 100dvw;
        height: auto;
        display: flex;
        gap: .5em;
        margin: 4em 0;
    }

    .direction1 {
        flex-direction: row;
    }

    .direction2 {
        flex-direction: row-reverse;
    }

    .cont-text-section {
        width: 90dvw;
        height: auto;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 1em;
        display: inherit;
        margin: 0 .5em;
    }

    .cont-text-section h2 {
        width: 100%;
        height: auto;
        font-family: pop-b;
        font-size: 1.5rem;
        font-weight: 900;
        text-align: center;
        color: var(--color2);
    }

    .cont-text-section p {
        width: 100%;
        height: auto;
        font-family: pop;
        font-size: 1rem;
        font-weight: 100;
        line-height: 1.3em;
        text-align: center;
        color: var(--color5);
    }

    .cont-text-img {
        margin: 0 .5em;
    }

    .cont-text-img h2 {
        display: none;
    }

    .cont-text-img p {
        display: none;
    }

    /* Section Fin */
}

@media only screen and (min-width:769px) and (max-width:1279px) {

    /* Header Inicio */
    .nav {
        display: flex;
        justify-content: end;
    }

    .menu {
        width: 20%;
        display: flex;
        justify-content: right;
        align-items: center;
    }

    .ulCelu {
        padding: 2em 0;
    }

    @keyframes activeMenu {
        0% {
            height: 1px;
        }

        100% {
            height: 24em;
        }
    }

    /* Modal Inicio */
    @keyframes modalContactenos {
        0% {
            transition: all .5s;
            height: 1px;
        }

        100% {
            transition: all .5s;
            height: 39em;
        }
    }

    #modalSectores {
        width: 80dvw;
        background: var(--color2);
        border: 0;
        border-radius: 1em;
        position: relative;
        transition: all .5s;
        animation: modalSectores .5s normal ease-out;
    }

    @keyframes modalSectores {
        0% {
            transition: all .5s;
            height: 1px;
        }

        100% {
            transition: all .5s;
            height: 25em;
        }
    }

    /* Modal Fin */
    /* Header Fin */
    /* Slider Inicio */
    .video-container {
        border-radius: 3em;
    }

    video.fillWidth {
        width: 210%;
        left: -50%;
    }

    h1 {
        width: 60%;
        font-size: 3rem;
        line-height: 1em;
    }

    /* Slider Fin */
    /* Aside Inicio */
    aside {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Aside Fin */
    /* Section Inicio */
    .section {
        width: 100dvw;
        height: auto;
        display: flex;
        gap: .5em;
        margin: 4em 0;
    }

    .direction1 {
        flex-direction: row;
    }

    .direction2 {
        flex-direction: row-reverse;
    }

    .cont-text-section {
        width: 90dvw;
        height: auto;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 1em;
        display: inherit;
        margin: 0 .5em;
    }

    .cont-text-section h2 {
        width: 100%;
        height: auto;
        font-family: pop-b;
        font-size: 1.5rem;
        font-weight: 900;
        text-align: center;
        color: var(--color2);
    }

    .cont-text-section p {
        width: 100%;
        height: auto;
        font-family: pop;
        font-size: 1rem;
        font-weight: 100;
        line-height: 1.3em;
        text-align: center;
        color: var(--color5);
    }

    .cont-text-img picture {
        height: 13em;
        margin: 0 .5em;
    }

    .cont-text-img {
        margin: 0 .5em;
    }

    .cont-text-img h2 {
        display: none;
    }

    .cont-text-img p {
        display: none;
    }

    /* Section Fin */
}

@media only screen and (min-width:1280px) {

    /* Header Inicio */
    header {
        width: 94dvw;
        margin: .5em 3dvw;
    }

    .logo {
        width: auto;
    }

    .nav {
        width: 72dvw;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 0 0 2em;
    }

    .menu {
        width: auto;
        display: flex;
        justify-content: right;
        align-items: center;
        padding: 0 0 0 1em;
    }

    #hamburger {
        display: none;
    }

    .ulCelu {
        position: initial;
        top: 0;
        background: none;
        padding: 0;
        display: flex;
        gap: 2em;
        align-items: center;
    }

    .ulCelu li a {
        width: auto;
        color: var(--color4);
    }

    .ulCelu li a:hover {
        color: var(--color2);
        animation: borderMenu .05s normal ease-in-out;
        border-bottom: solid 2px var(--color2);
    }

    @keyframes borderMenu {
        0% {
            border-bottom: solid 0px var(--color2);
        }

        100% {
            border-bottom: solid 2px var(--color2);
        }
    }

    #botonesMenu {
        display: none;
    }

    .contact {
        display: flex;
        width: 20%;
        font-family: pop;
        font-weight: 900;
        font-size: var(--parrafos);
        align-items: center;
        justify-content: end;
        cursor: pointer;
    }

    #contact2 {
        width: 9em;
        height: 2.5em;
        border: solid 2px var(--color2);
        border-radius: .5em;
        text-decoration: none;
        color: var(--color2);
        background: var(--color1);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #contact2:hover {
        border-radius: 3em;
        background: var(--color2);
        color: var(--color1);
        animation: btn1 .3s normal ease-in-out;
    }

    @keyframes modalContactenos {
        0% {
            transition: all .5s;
            height: 1px;
        }

        100% {
            transition: all .5s;
            height: 24em;
        }
    }

    form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    @keyframes btn1 {
        0% {
            border-radius: 1em;
            background: var(--color1);
            color: var(--color2);
        }

        90% {
            border-radius: 3em;
            background: var(--color1);
            color: var(--color2);
        }

        100% {
            border-radius: 3em;
            background: var(--color2);
            color: var(--color1);
        }
    }

    /* Header Fin */
    /* Slider Inicio */
    .video-container {
        border-radius: 5em;
    }

    video.fillWidth {
        width: 100%;
        left: 0%;
    }

    h1 {
        width: 60%;
        font-size: 3rem;
        line-height: 1em;
    }

    /* Slider Fin */

    /* Aside Inicio */
    aside {
        display: flex;
    }

    /* Aside Fin */
    /* Section Inicio */
    .section {
        width: 100dvw;
        height: auto;
        display: flex;
        gap: 0;
        margin: 4em 0;
    }

    .cont-text-sector {
        gap: 2em;
    }

    .cont-text-sector h2 {
        font-size: 2rem;
        font-weight: 999;
    }

    .cont-text-sector p {
        width: 50%;
        line-height: 1.5em;
        margin: auto;
    }

    .direction1 {
        flex-direction: row;
    }

    .direction2 {
        flex-direction: row-reverse;
    }

    #estudios .cont-text-section,
    #tratamiento .cont-text-section,
    #equipos .cont-text-section{
        margin: 0 0 0 5%;
    }

    .cont-text-section {
        width: 50%;
        height: auto;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 1em;
        display: inherit;
        margin: 0;
        justify-content: center;
        align-items: center;
    }

    .cont-text-section h2 {
        width: 100%;
        height: auto;
        font-family: pop-b;
        font-size: 2rem;
        font-weight: 900;
        text-align: center;
        color: var(--color2);
    }

    .cont-text-section p {
        width: 70%;
        height: auto;
        font-family: pop;
        font-size: 1rem;
        font-weight: 100;
        line-height: 1.3em;
        text-align: center;
        color: var(--color5);
    }
    #estudios .cont-text-img,
    #tratamiento .cont-text-img,
    #equipos .cont-text-img{
        align-items: initial;
    }
    #perforacion .cont-text-img,
    #mantenimiento .cont-text-img{
        align-items: end;
    }
    .cont-text-img picture {
        width: 70%;
        height: 20em;
        margin: 0;
    }

    .cont-text-img {
        width: 50%;
        margin: 0;
    }

    .cont-text-img h2 {
        display: none;
    }

    .cont-text-img img {
        width: 120%;
    }

    .cont-text-img p {
        display: none;
    }

    /* Section Fin */
}