/* ===================
   Fuentes
=================== */
@font-face {
    font-family: 'Metropolis-Bold';
    src: url('../fonts/Metropolis-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Metropolis-ExtraBold';
    src: url('../fonts/Metropolis-ExtraBold.otf') format('opentype');
}

@font-face {
    font-family: 'Metropolis-Light';
    src: url('../fonts/Metropolis-Light.otf') format('opentype');
}

@font-face {
    font-family: 'Metropolis-Medium';
    src: url('../fonts/Metropolis-Medium.otf') format('truetype');
}

@font-face {
    font-family: 'Metropolis-Regular';
    src: url('../fonts/Metropolis-Regular.otf') format('truetype');
}

@font-face {
    font-family: 'Metropolis-Thin';
    src: url('../fonts/Metropolis-Thin.otf') format('truetype');
}

/* ===================
   Reset & base
=================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Metropolis-Regular', sans-serif;
    overflow-x: hidden;
    color: #000;
    background: #fff;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

/* ===================
   Header y menú
=================== */
.header {
    width: 100%;
    background: #fff;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.logo img {
    max-width: 150px;
    height: auto;
    margin-top: -5px;
}

/* Botón hamburguesa */
.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    transition: transform .3s, opacity .3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menú móvil */
.menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 320px);
    box-shadow: -8px 0 24px rgba(0, 0, 0, .18);
    padding: 88px 24px 24px;
    z-index: 4000;
    transform: translateX(100%);
    transition: transform .3s ease-in-out;
    font-size: 2.5rem;
}

.menu.is-open {
    display: flex;
    transform: translateX(0);
}

.menu a {
    font-family: 'Metropolis-Medium', sans-serif;
    color: #000;
    text-decoration: none;
    transition: color .25s;
    font-size: 1.3rem;
}

.menu a:hover {
    color: #fae800;
}

.whatsapp-group,
.linkedin-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
}

.linkedin-icon {
    width: 38px;
    height: 38px;
}

.contacto-bold {
    font-family: 'Metropolis-ExtraBold', sans-serif;
}

/* ===================
   Main y Hero
=================== */
.main {
    padding: 0 16px 40px;
    background: #000;
    color: #fff;
    clip-path: polygon(0 0, 100% 25px, 100% 100%, 0 100%);
}

.hero {
    padding: 80px 0 20px;
}

.hero-text {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1px;
    position: relative;
    font-family: 'Metropolis-Medium', sans-serif;
}

.linea-hero {
    position: absolute;
    bottom: -3px;
    left: 1px;
    width: 80px;
    height: 3px;
    background: #fae800;
    transform: rotate(-6deg);
}

/* ===================
   Presentación
=================== */
.presentacion {
    display: flex;
    flex-wrap: wrap;
    /* permite que se acomode en pantallas pequeñas */
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.saludo {
    flex: 1 1 300px;
    /* mínimo 300px, crece si hay espacio */
    max-width: 600px;
}

.saludo p {
    white-space: pre-line;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    /* escala según pantalla */
    line-height: 1.3;
}

.video-inicial {
    flex: 1 1 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.video-inicial video {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
}


/* ======================
   CTA WhatsApp
========================*/
.te_escuchamos {
    margin: 40px 0;
}

.whatsapp-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.whatsapp-cta-icon {
    width: 60px;
    height: 60px;
}

.whatsapp-cta-text {
    border: 2px solid #fae800;
    border-radius: 45px;
    padding: 8px 16px;
    color: #fff;
    font-family: 'Metropolis-Bold', sans-serif;
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    background: transparent;
}

/* ======================
   Descripción
========================*/
.descripcion {
    position: relative;
    font-family: 'Metropolis-Thin', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 3vw, 3.2rem);
    margin-top: 20px;
    margin-bottom: 100px;
}

.linea-probable {
    position: absolute;
    bottom: -7px;
    left: 215px;
    width: 50px;
    height: 3px;
    background: #fae800;
    transform: rotate(-5deg);
}

.linea-mas {
    position: absolute;
    bottom: -7px;
    left: 144px;
    width: 80px;
    height: 3px;
    background: #fae800;
    transform: rotate(-5deg);
}


/* ======================
   Servicios
========================*/
.servicios {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.row-one,
.row-two {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-box-one,
.service-box-two,
.service-box-three,
.service-box-four {
    border: 1px solid #fff;
    border-radius: 30px;
    padding: 24px 16px;
    position: relative;
}

.servicios h3 {
    font-family: 'Metropolis-Bold', sans-serif;
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    margin-bottom: 10px;
}

.servicios p {
    font-family: 'Metropolis-Regular', serif;
    font-size: clamp(0.95rem, 2.4vw, 1.7rem);
    line-height: 1.5;
}

/* Líneas decorativas seguras */
.linea-one,
.linea-two,
.linea-three,
.linea-four {
    position: absolute;
    height: 4px;
    width: clamp(90px, 30%, 160px);
    background: #fae800;
    transform: rotate(-5deg);
}

.service-box-one .linea-one {
    bottom: 18px;
    left: 62%;
}

.service-box-two .linea-two {
    width: 50px;
    top: 13px;
    right: 5%;
}

.service-box-three .linea-three {
    width: 90px;
    top: 30px;
    left: 70%;
}

.service-box-four .linea-four {
    width: 90px;
    bottom: 15px;
    right: 10%;
}

/* ===================
   Video principal
=================== */
.video-principal {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #000;
    margin-top: 40px;
    overflow: hidden;
}

.video-principal video {
    width: 100%;
    height: auto;
    max-width: 1200px;
}

/* ===================
   Carrusel clientes
=================== */
.clients-carousel {
    --gap: 32px;
    --height: 60px;
    --speed: 30s;
    margin-top: 40px;
    width: 100%;
    background: #fff;
    padding: 40px 0;
    overflow-x: auto;
    /* móvil: scroll táctil */
    scroll-snap-type: x mandatory;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.carousel-container {
    animation: scroll var(--speed) linear infinite;
    will-change: transform;
}

.client-logo {
    flex: 0 0 auto;
    width: 110px;
    height: var(--height);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.client-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* Animación en desktop */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-container {
        animation: none !important;
        transform: none !important;
    }
}

/* ===================
   Contacto
=================== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.contact-info p {
    font-family: 'Metropolis-Medium', sans-serif;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-menu a {
    color: #fff;
    font-family: 'Metropolis-Bold', sans-serif;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.linkedin-cta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.linkedin-cta-icon {
    width: 50px;
    height: 50px;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* ===================
   Breakpoints
=================== */

/* ≥576px (móviles grandes) */
@media (min-width: 576px) {
    .whatsapp-cta-icon {
        width: 70px;
        height: 70px;
    }

    .linea-hero {
        bottom: -5px;
        left: 295px;
        height: 3px;
        width: 15%;
    }

    .main {
        clip-path: polygon(0 0, 100% 25px, 100% 100%, 0 100%);
    }

    .linea-probable {
        bottom: -5px;
        left: 235px;
        width: 60px;
        height: 3px;
    }

    .linea-mas {
        bottom: -5px;
        right: 409px;
        width: 88px;
        height: 3px;
    }
}

/* ≥768px (tablet) */
@media (min-width: 768px) {
    .logo img {
        max-width: 180px;
    }

    /* Menú en línea y hamburguesa oculta */
    .menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center;
        height: auto !important;
        width: auto !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 32px;
    }

    .menu.is-open {
        transform: none !important;
    }

    .menu-toggle {
        display: none !important;
    }

    .menu a {
        font-size: 1.3rem;
    }

    .main {
        padding: 0 32px 48px;
        clip-path: polygon(0 0, 100% 30px, 100% 100%, 0 100%);
    }

    .hero {
        padding-top: 100px;
    }

    .linea-hero {
        bottom: -2px;
        left: 407px;
        width: 118px;
        height: 4px;
    }

    .linea-probable {
        bottom: -8px;
        left: 345px;
        width: 80px;
        height: 3px;
    }

    .linea-mas {
        bottom: -5px;
        left: 210px;
        width: 112px;
        height: 3px;
    }

    .presentacion {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .video-inicial video {
        max-width: 600px;
    }

    .te_escuchamos {
        margin: 60px 0 30px;
    }

    .whatsapp-cta {
        gap: 16px;
    }

    .whatsapp-cta-icon {
        width: 80px;
        height: 80px;
    }

    .row-one,
    .row-two {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .service-box-one,
    .service-box-four {
        flex: 1 1 40%;
        border-radius: 40px;
        padding: 40px 24px;
    }

    .linea-one {
        width: 90px;
        bottom: 12px;
        right: 12px;
    }


    .service-box-two,
    .service-box-three {
        flex: 1 1 60%;
        border-radius: 40px;
        padding: 40px 24px;
    }

    .client-logo {
        width: 130px;
    }

    .contact-map iframe {
        height: 360px;
    }
}

/* ≥992px (desktop mediano) */
@media (min-width: 992px) {
    .header {
        padding: 0 48px;
    }

    .logo img {
        max-width: 220px;
    }

    .main {
        padding: 0 80px 60px 150px;
        clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%);
    }


    .hero {
        padding: 100px 20px;
    }

    .linea-hero {
        bottom: -6px;
        /*right: 300px;*/
        left: 515px;
        width: 142px;
        height: 4px;
    }

    .presentacion .saludo p {
        padding-left: 2%;
    }

    .video-inicial video {
        max-width: 900px;
        padding-right: 5%;
    }

    .servicios {
        gap: 40px;
        margin-top: 80px;
    }

    .service-box-one,
    .service-box-two,
    .service-box-three,
    .service-box-four {
        border-radius: 60px;
    }

    .service-box-one {
        position: relative;
        padding: 60px 10px 70px 35px;
    }

    .service-box-one .linea-one {
        width: 150px;
        bottom: 53px;
        left: 60%;
    }

    .service-box-two {
        position: relative;
        padding: 60px 10px 40px 35px;
    }

    .service-box-two .linea-two {
        width: 115px;
        top: 38px;
        left: 80%;
    }

    .service-box-three {
        padding: 70px 10px 50px 35px;
    }

    .service-box-three .linea-three {
        width: 150px;
        top: 55px;
        left: 70%;
    }

    .service-box-four {
        padding: 120px 10px 100px 35px;
    }

    .service-box-four .linea-four {
        width: 102px;
        bottom: 44px;
        right: 8%;
    }

    .servicios h3 {
        font-size: 1.6rem;
    }

    .servicios p {
        font-size: 1.4rem;
    }

    /* Carrusel animado */
    .clients-carousel {
        --gap: 80px;
        --height: 80px;
        --speed: 30s;
        overflow: hidden;
        padding: 60px 0;
    }

    .clients-carousel:hover .carousel-container {
        animation-play-state: paused;
    }

    .client-logo {
        width: 150px;
    }

    .linea-probable {
        bottom: -5px;
        left: 440px;
        width: 95px;
        height: 3px;
    }

    .linea-mas {
        bottom: -5px;
        right: 409px;
        width: 88px;
        height: 3px;
    }
}

/* ≥1200px (desktop grande) */
@media (min-width: 1200px) {
    .header {
        padding: 0 65px 40px 65px;
    }

    .main {
        padding-bottom: 80px;
    }

    .hero-text {
        letter-spacing: 2px;
    }

    .linea-hero {
        bottom: -11px;
        /*right: 300px;*/
        left: 740px;
        width: 214px;
        height: 5px;
    }

    .linea-probable {
        position: absolute;
        bottom: -15px;
        left: 560px;
        width: 150px;
        height: 3px;
        background: #fae800;
        transform: rotate(-5deg);
    }

    .linea-mas {
        bottom: -12px;
        left: 380px;
        width: 190px;
        height: 4px;
    }

    .contact-section {
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
        margin-top: 80px;
    }

    .contact-info {
        flex: 1;
        justify-content: center;
        align-items: flex-start;
    }

    .contact-map {
        flex: 3;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .contact-map iframe {
        height: 400px;
    }
}