:root {
    --main-c: #00a365;
    --border-r: .4rem;
}


/** Estilos Generales **/

html * {
    margin: 0;
    padding: 0;
    font-family: "League Spartan", sans-serif !important;
    transition: all 0.3s ease-in-out;
}

h1 {
    font-size: 9vh !important;
    padding: 2rem 0 !important;
}

h2 {
    font-size: 6vh !important;
    color: var(--main-c) !important;
    margin: 20px 0 !important;
}

h3 {
    font-size: 4vh !important;
}

p {
    font-size: 3vh;
    font-weight: 500;
    color: white;
}

body {
    background: black !important;
}

h1,
h3 {
    text-shadow: 0 0 10px var(--main-c), 0 0 20px var(--main-c), 0 0 40px var(--main-c);
    transition: text-shadow 0.3s ease-in-out;
}

h1:hover,
h2:hover,
h3:hover {
    color: whitesmoke !important;
    text-shadow: 0 0 15px white, 0 0 30px var(--main-c), 0 0 50px var(--main-c);
    transform: scale(1.02)
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3 {
    animation: fadeInUp 1.5s ease-out;
}

video,
img,
iframe {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

video:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 10px var(--main-c);
}

img:hover {
    transform: scale(1.1);
}

.foto-fede:hover {
    transform: scale(1);
}


/** Header **/

.header {
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem;
    box-shadow: 0px 0px 20px 0.1px #9e9e9e80;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgb(0, 0, 0);
}

.logo-header {
    height: 13vh;
}

.container-nav{
    display: flex;
}

.menu-navegacion {
    display: flex;
    padding-right: 1rem;
    margin: 0 !important;
}

.menu-navegacion li {
    list-style: none;
}

a {
    text-decoration: none !important;
    font-size: 2vh;
}

ul,
li {
    list-style: none;
}

.boton-header {
    color: #fff;
    font-weight: 600;
    font-size: 2.1vh;
    background: linear-gradient(to right, #00a365, #065134);
    padding: 9px;
    border-radius: var(--border-r);
}

.nav-bar {
    font-size: 2.05vh;
    font-weight: 700;
    padding: 9px;
    margin-right: 35px;
    border-radius: var(--border-r);
    color: var(--main-c);
}

.nav-bar:hover {
    color: #fff;
    background: linear-gradient(to right, #00a365, #065134);
}

.boton-header:hover {
    background: linear-gradient(to left, #00e28c, #0e8658);
}

.traductor-logo img {
    height: 12vh;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
}

.traductor-hamburguesa {
  display: flex;
  align-items: center;
  padding-right: 1rem;
  gap: 1rem;
}

.hamburguesa {
  display: none;
  font-size: 5vh;
  cursor: pointer;
  color: var(--main-c);
}

.traductor-logo img:hover {
    transform: scale(1);
}


/** Fede **/

#fede {
    position: relative;
    height: 78vh;
    display: flex;
    align-items: center;
    justify-content: left;
    box-shadow: inset 10px -15px 20px 0.01px #00a36480;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.foto-fede {
    height: 55vh;
    align-self: flex-end;
}

.contenedor-fede {
    max-width: 70vw;
    color: #fff;
    margin-left: 10px;
}

.contenedor-fede p {
    margin: 2rem 0;
}

.contenedor-fede b {
    font-size: 4vh;
}

.botón-accion {
    padding: 1.5rem 0;
}

.boton {
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(to left, #00a365, #065134);
    padding: .5rem 1rem;
    border: solid white 2px;
    border-radius: var(--border-r);
}

.boton:hover {
    transform: scale(1.2);
    background: linear-gradient(to left, #00e28c, #0e8658);
}


/** Info Fede **/

#info-fede {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    padding: 2rem 0;
}

.contenedor-info-fede {
    padding: 3rem;
    display: flex;
    align-items: center;
    flex-flow: column;
}

.video-presentacion {
    position: relative;
    width: auto;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.contenedor-info-fede video {
    width: 100vh;
    border: solid var(--main-c) 2px;
}

.datos-fede h2 {
    padding-bottom: 2.5rem;
}

.datos-fede h2:hover {
    color: var(--main-c) !important;
    text-shadow: 0 0 15px black, 0 0 30px var(--main-c), 0 0 50px var(--main-c);
}

.datos-fede b {
    text-shadow: 0 0 15px #ffffff85, 0 0 30px var(--main-c), 0 0 50px var(--main-c);
    color: rgb(255, 255, 255);
}

.datos-fede p {
    padding-bottom: 2rem;
    font-size: 2.9vh;
}


/** Motion & Animation **/

#motion-animation {
    margin: 5vh 0 10vh;
}

.titulo-motion-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 10vh;
    padding: 0px 10px;
}

.contenedor-motion-animation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
    gap: 8vh;
    justify-content: center;
    padding: 0 20vh;
}

.contenedor-motion-animation video,
.contenedor-motion-animation iframe {
    transition: all 0.3s ease;
    border: solid var(--main-c) 3px;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: 60vh;
}


/** Social Media **/

#social-media {
    background-color: #0e0e0e;
    padding: 7vh 0 10vh;
}

.titulo-social-media {
    display: flex;
    justify-content: center;
    margin-bottom: 7vh;
}

.titulo-social-media h2 {
    color: whitesmoke !important;
}

.contenedor-social-media {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    color: white;
    gap: 8vh;
    justify-content: center;
    padding: 0 20vh;
}

.contenedor-social-media video {
    object-fit: cover;
    transition: all 0.3s ease;
    border: solid var(--main-c) 3px;
    width: 100%;
    height: 75vh;
}

.iframe-wrapper {
    position: relative;
    overflow: hidden;
    border: solid var(--main-c) 3px;
    transition: transform 0.3s ease;
}

.iframe-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 10px var(--main-c);
    z-index: 2;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    border: none;
    pointer-events: auto;
    transition: transform 0.3s ease;
}


/* SHORTS VERTICALES */
.iframe-vertical {
    height: 80vh;
    width: 100%;
}

.iframe-vertical iframe {
    width: 100vw;
    height: 110vh;
    transform: translate(-50%, -50%);
}

/* VIDEOS HORIZONTALES (YouTube estándar) */
.iframe-horizontal {
    height: 60vh;
}

.iframe-horizontal iframe {
    width: 70vw;
    height: 60vh;
    transform: translate(-50%, -50%);
    aspect-ratio: unset;
}


/* VIDEOS CUADRADOS o 4:5 */
.iframe-cuadrado {
    height: 75vh;
    width: 75vh;
}

.iframe-cuadrado iframe {
    width: 100vw;
    height: 75vh;
    transform: translate(-50%, -50%);
}


/** Commercial & Advertising **/

#commercial-advertising {
    margin: 5vh 0 15vh;
}

.titulo-commercial-advertising {
    display: flex;
    justify-content: center;
    margin: 7vh;
}

.contenedor-commercial-advertising {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
    gap: 8vh;
    justify-content: center;
    padding: 0 20vh;
}

.contenedor-commercial-advertising video {
    object-fit: cover;
    transition: all 0.3s ease;
    border: solid var(--main-c) 3px;
    width: 100%;
    height: 75vh;
}

.contenedor-commercial-advertising .iframe-wrapper {
    justify-self: center;
}


/** Corporate & Business **/

#corporate-business {
    margin: 5vh 0 15vh;
}

.titulo-corporate-business {
    display: flex;
    justify-content: center;
    margin: 7vh;
}

.titulo-corporate-business h2 {
    color: whitesmoke !important;
}

.contenedor-corporate-business {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 20vh;
    align-items: center;
    justify-items: center;
    transition: grid-template-columns 0.4s ease;
}

.contenedor-corporate-business video {
    object-fit: cover;
    transition: all 0.4s ease;
    border: solid var(--main-c) 3px;
    width: 65%;
    height: 75vh;
}

.contenedor-corporate-business-2 {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 35vh;
    align-items: center;
    justify-items: center;
    transition: grid-template-columns 0.4s ease;
}

.contenedor-corporate-business-2 video {
    object-fit: cover;
    transition: all 0.4s ease;
    border: solid var(--main-c) 3px;
    width: 100%;
    height: 75vh;
    margin-top: 8vh;
}

/** Banner **/

.banner video {
    height: 70vh;
    width: 100%;
    object-fit: cover;
}

/** Tecnologías **/

.tecnologias {
    text-align: center;
    background-color: #046e46;
    color: white;
    padding: 5vh 0;
}

.tecnologias h2 {
    color: white !important;
}

.tecnologias p {
    font-size: x-large;
    padding: 2rem 20vh;
}

/* Carrusel */
.carousel-wrapper {
    overflow: hidden;
    background-color: #035536;
    padding: 2vh 0;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.logo-brand {
    height: 18vh;
    width: auto;
    flex-shrink: 0;
    margin: 4vh 9.5vh;
    opacity: 0.8;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-brand:hover {
    transform: scale(1.1);
    filter: grayscale(0);
    opacity: 1;
}

.fade-edges {
    position: relative;
}

/* Degradado izquierdo */
.fade-edges::before,
.fade-edges::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* permite interactuar con los elementos debajo */
}

.fade-edges::before {
    left: 0;
    background: linear-gradient(to right, #066641, transparent);
}

.fade-edges::after {
    right: 0;
    background: linear-gradient(to left, #066641, transparent);
}


/* Animación fluida de scroll horizontal */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/** CONTACTO **/

#contacto {
    display: flex;
    align-items: center;
}

.contenedor-contacto {
    width: 50vw;
    color: #fff;
    padding: 7%;
}

.contenedor-contacto p {
    margin-bottom: 3vh;
    font-size: x-large;
}

.contenedor-contacto h2 {
    color: white !important;
    padding-bottom: 6vh;
}

.iconos-contacto-final {
    display: flex;
    justify-content: center;
    padding: 4vh 0;
    gap: 80px;
}

.iconos-contacto-final a {
    font-size: 4vh;
    color: var(--main-c);
    transition: transform 0.3s ease, color 0.3s ease;
}

.iconos-contacto-final a:hover {
    transform: scale(1.07);
    color: white;
}

.icono-mail img,
.icono-whatsapp img,
.icono-linkedin img {
    height: 22vh;
}

.fondo-contacto {
    position: absolute;
    width: 95%;
    height: 70%;
    object-fit: cover;
    opacity: 0.08;
    transform: scale(1.1);
    z-index: -1;
    /* Para que el video esté detrás del contenido */
}


/** Whatsapp **/

.icono-whatsapp-flotante img {
    height: 7vh;
}

#whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 3.5vh;
    padding: 10px;
    border-radius: 50%;
    z-index: 10000;
    box-shadow: 0 0 10px #25d366;
    transition: transform 0.3s ease;
}

#whatsapp-fixed:hover {
    transform: scale(1.2);
}

video.video-custom {
    object-fit: cover;
    cursor: pointer;
}



/** Cartel flotante **/

.mensaje-flotante {
    position: fixed;
    top: 12vh;
    right: 4vw;
    background: rgba(0, 163, 100, 0.76);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 2.2vh;
    z-index: 10001;
    box-shadow: 0 0 15px rgba(0, 163, 100, 0.555);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    display: none;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
}

.mensaje-flotante p {
    margin-bottom: 0;
}

.mensaje-flotante.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.cerrar-mensaje {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
}

.cerrar-mensaje:hover {
    transform: scale(1.2);
}


/** Footer **/


.footer {
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 0.25rem;
}

.logo-footer {
    height: 10vh;
}

.iconos {
    display: flex;
    padding-right: 1rem;
}

.iconos li {
    list-style: none;
}

.social-logo {
    height: 4.5vh;
    margin: 0 1vw;
}


/* Responsive */
/* TABLET - max-width: 768px */
@media (max-width: 768px) {

    .menu-navegacion {
        display: none;
        flex-direction: column;
        background-color: black;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 9999;
        padding: 1rem 0 2rem;
        box-shadow: 0px 0px 20px 0.1px #9e9e9e80;
    }

    .menu-navegacion.visible {
        display: flex;
    }

    .hamburguesa {
        display: block;
    }

    .header {
        height: 8vh;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .traductor-hamburguesa {
        display: flex;
        align-items: center;
        padding-left: 7rem;
    }

    .logo-header {
        height: 8vh;
        transform: scale(1.2);
    }

    h1 {
        font-size: 5vh !important;
    }

    h2 {
        font-size: 4vh !important;
        text-shadow: 0 0 10px var(--main-c), 0 0 20px var(--main-c), 0 0 40px var(--main-c);
        color: whitesmoke !important;
        text-align: center;
        margin: 0 !important;
    }

    h3,
    p {
        font-size: 2.5vh !important;
    }

    .header {
        flex-direction: row;
        padding: 0;
    }

    .logo-header {
        height: 8vh;
    }

    .traductor-logo img{
        height: 10vh !important;
    }

    .menu-navegacion {
        flex-direction: column;
        gap: 2rem;
        text-align: end;
    }

    .nav-bar {
        margin-right: 0;
        padding: 0.5rem 1rem;
        font-size: 1.8vh;
    }

    .boton-header {
        padding: 9px;
        margin-right: 1rem;
    }

    #fede {
        flex-direction: column;
        height: 80vh;
        margin-top: 8vh;
        padding: 2vh;
        text-align: center;
        box-shadow: inset 0px 0px 20px 3px #00a36480;
    }

    .video-background {
        opacity: 0.1;
    }

    .contenedor-fede {
        max-width: 90vw;
        margin-bottom: 30px;
        margin-left: 0;
    }

    .contenedor-fede p{
        margin: 3rem 0 !important;
        font-size: 2.35vh !important;
    }

    .foto-fede {
        height: 30vh;
        align-self: auto;
        position: absolute;
        bottom: 0;
        left: 20px;
    }
    
    .foto-fede:hover {
        transform: none !important;
        pointer-events: none;
    }

    .boton-accion{
        text-align: end;
        margin: 65px 30px;
    }

    #info-fede {
        grid-template-columns: 1fr;
        padding: 2vh;
    }

    .datos-fede h2 {
        padding-top: 2.5rem;
    }

    .contenedor-info-fede {
        padding: 0;
        text-align: center;
    }

    .contenedor-info-fede p {
        font-size: 2.35vh !important;
    }

    .contenedor-info-fede video {
        width: 90vw;
    }

    .contenedor-motion-animation,
    .contenedor-commercial-advertising,
    .contenedor-social-media,
    .contenedor-corporate-business {
        grid-template-columns: 1fr;
        padding: 0 5vw 3vh;
    }

    .contenedor-social-media video,
    .contenedor-corporate-business video {
        height: 65vh;
        width: 100%;
    }

    .contenedor-motion-animation video,
    .contenedor-commercial-advertising video {
        height: 40vh;
    }

    .iframe-vertical,
    .iframe-horizontal,
    .iframe-cuadrado {
        height: auto !important;
        width: 100% !important;
    }

    .iframe-vertical iframe,
    .iframe-horizontal iframe,
    .iframe-cuadrado iframe {
        width: 100vw;
        height: 60vh;
        transform: translate(-50%, -50%);
    }

    #motion-animation {
        margin: 5vh 0 0vh;
    }

    #social-media {
        padding-bottom: 3vh !important;
    }

    #commercial-advertising {
        margin: 0;
    }

    .contenedor-corporate-business {
        gap: 4%;
    }

    .contenedor-corporate-business-2 {
        padding: 0 5vw !important;
    }

    #corporate-business {
        margin-bottom: 3vh !important;
    }

    #video-thermo-fisher{
        width: 100% !important;
        height: auto;
        margin-bottom: 5vh;
        margin-top: 8vh;
    }

    .carousel-track {
        animation-duration: 15s;
    }

    .tecnologias p {
        padding: 3vh !important;
    }

    #contacto {
        display: block;
        text-align: center;
    }

    .contenedor-contacto {
        width: auto !important;
    }

    .contenedor-contacto h2{
        padding: 5vh 0;
    }

    .iconos-contacto-final {
        gap: 3vh;
        padding: 0;
    }

    .icono-mail img,
    .icono-whatsapp img,
    .icono-linkedin img {
        height: 10vh;
    }

    .fondo-contacto{
        left: 10px
    }

    .mensaje-flotante {
        top: 10vh;
        right: 2vw;
        font-size: 2vh;
    }

    .footer {
        flex-direction: column;
        height: auto;
        padding: 1vh;
    }

    .logo-footer {
        height: 6vh;
    }

    .iconos {
        padding: 0.5rem;
    }

    .social-logo {
        height: 3vh;
    }
    .icono-whatsapp-flotante img {
        height: 5vh;
    }
}

/* CELULARES - max-width: 480px */
@media (max-width: 480px) {
    h1 {
        font-size: 4vh !important;
    }

    h2 {
        font-size: 3.5vh !important;
    }

    p {
        font-size: 2.2vh !important;
    }

    .boton {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    .carousel-track {
        animation-duration: 40s;
    }

    .logo-brand {
        height: 10vh;
        margin: 3vh;
    }

    .fade-edges::before,
    .fade-edges::after {
        width: 40px;
    }

    .mensaje-flotante {
        font-size: 1.8vh;
        padding: 0.5rem;
    }

    #whatsapp-fixed {
        font-size: 2.5vh;
        height: auto;
        width: auto;
    }
}