@charset "utf-8";

/* ============================================================
   KAZA IN — RESPONSIVE V3
   Cargar DESPUÉS de styles.css

   >= 1025 px : conservar navegación y diseño de escritorio.
   <= 1024 px : recorrido vertical nativo, sin paneles desplazados.
   ============================================================ */

/* Botón creado por JS: solo aparece en tablet y móvil. */
.mobile-menu-toggle {
    display: none;
}

/* ============================================================
   01. LAPTOP — 1200 px
   Ajustes suaves; NO modifica la navegación de escritorio.
   ============================================================ */

@media (min-width: 1025px) and (max-width: 1200px) {

    .section-padding {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .site-header {
        padding-left: 5vw;
        padding-right: 5vw;
        gap: 2rem;
    }

    .brand-logo {
        width: 21rem;
    }

    .nav {
        gap: 2rem;
    }

    .intro-copy,
    .intro-bottom {
        left: 5vw;
    }

    .intro-bottom {
        right: 5vw;
    }

    .intro-copy {
        width: min(78rem, 85%);
    }

    .team-grid {
        gap: 3rem;
    }

    .team-card {
        grid-template-columns: 12rem minmax(0, 1fr);
        gap: 2rem;
    }

    .team-placeholder {
        width: 12rem;
        height: 16rem;
    }

    .services-layout {
        gap: 3rem;
    }

    .service-card {
        min-height: 16.5rem;
        padding: 2rem;
    }
}

/* ============================================================
   02. TABLET Y MÓVIL — 1024 px
   SCROLL VERTICAL NATIVO / ALTURA SEGÚN CONTENIDO
   ============================================================ */

@media (max-width: 1024px) {

    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    body {
        background: var(--light);
        overscroll-behavior-y: auto;
    }

    /* Desactivar únicamente la estructura de slides del escritorio. */
    .track {
        height: auto !important;
        position: relative;
    }

    .stage {
        position: relative;
        top: auto;
        height: auto !important;
        min-height: 0;
        overflow: visible;
        isolation: auto;
    }

    .stage-inner {
        position: relative;
        inset: auto;
        width: 100%;
        overflow: visible;
    }

    .panel {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        transform: none !important;
        will-change: auto;
        touch-action: pan-y;
    }

    .vertical-content {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none !important;
        will-change: auto;
    }

    /* Header móvil: logo visible, menú desplegable y WhatsApp.
       El panel de navegación aparece DEBAJO del logo, sin taparlo. */
    html {
        scroll-padding-top: 7.2rem;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 7.2rem;
        height: 7.2rem;
        padding: 1.2rem clamp(2rem, 5vw, 5rem);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .8rem;
        background: transparent;
        transition: background-color .25s ease;
        color: var(--white);
        isolation: isolate;
        pointer-events: auto;
    }

    
        /* Recuperar el degradado original */

        .site-header::before {
            display: block !important;
            transition: opacity .25s ease;
        }

        /* Fondo sólido solo con el menú abierto */

        .site-header.menu-open {
            background-color: var(--ink);
        }

        .site-header.menu-open::before {
            opacity: 0;
        }


    .site-header .brand {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
        margin-right: auto;
        position: relative;
        z-index: 2;
    }

    .site-header .brand-logo {
        width: clamp(12rem, 28vw, 20rem);
        height: auto;
        max-width: 100%;
    }

    .site-header .brand-mark {
        font-size: clamp(2.1rem, 3vw, 2.7rem);
    }

    .site-header .brand-detail {
        display: none;
    }

    .mobile-menu-toggle {
        position: relative;
        z-index: 3;
        flex: 0 0 4.3rem;
        width: 4.3rem;
        height: 4.3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: 0;
        border: .1rem solid rgba(255, 255, 255, .46);
        border-radius: 50%;
        background: transparent;
        color: var(--white);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 1.8rem;
        height: .1rem;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .site-header.menu-open .mobile-menu-toggle span:first-child {
        transform: translateY(.6rem) rotate(45deg);
    }

    .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .mobile-menu-toggle span:last-child {
        transform: translateY(-.6rem) rotate(-45deg);
    }

    .site-header .nav {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: .8rem clamp(2rem, 5vw, 5rem) 1.8rem;
        max-height: calc(100svh - 7.2rem);
        overflow-y: auto;
        background: rgba(0, 0, 0, .97);
        border-top: .1rem solid rgba(255, 255, 255, .16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-1rem);
        transition: opacity .2s ease, transform .2s ease;
    }

    .site-header.menu-open .nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header .nav a {
        display: block;
        width: 100%;
        padding: 1.4rem 0;
        border-bottom: .1rem solid rgba(255, 255, 255, .16);
        font-size: 1.2rem;
        opacity: .9;
    }

    .site-header .nav a:last-child {
        border-bottom: 0;
    }

    .site-header .nav a.active::after {
        display: none;
    }

    .site-header .wa-area {
        position: relative;
        top: auto;
        right: auto;
        z-index: 3;
        flex: 0 0 auto;
        pointer-events: auto;
    }

    .wa-toggle {
        background: transparent;
        border-color: rgba(255, 255, 255, .46);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .wa-popover {
        width: min(35rem, calc(100vw - 4rem));
        max-height: calc(100svh - 9rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .side-progress {
        display: none;
    }

    .section-padding {
        padding-left: clamp(2.4rem, 5vw, 5rem);
        padding-right: clamp(2.4rem, 5vw, 5rem);
    }

    .top-space {
        padding-top: 8rem;
    }

    .big-headline,
    .section-headline {
        font-size: clamp(3.8rem, 6vw, 6.2rem);
        line-height: 1.08;
    }

    .body-copy {
        font-size: clamp(1.5rem, 1.9vw, 1.7rem);
        line-height: 1.6;
    }

    /* ------------------------------------------------------------
       INTRO: única sección cinematográfica de pantalla completa.
       El video se reproduce normalmente (sin seek por scroll).
       ------------------------------------------------------------ */

    .panel-intro {
        position: relative;
        min-height: 100svh;
        height: 100svh;
        overflow: hidden;
        touch-action: pan-y;
    }

    .intro-poster,
    .intro-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        /* Evitar aplicar filtros por fotograma en móviles. */
        filter: none;
    }

    .intro-tint {
        opacity: .85;
    }

    .intro-copy {
        left: clamp(2.4rem, 5vw, 5rem);
        top: 49%;
        right: auto;
        width: min(70rem, calc(100% - 10rem));
        height: min(62svh, 50rem);
    }

    .intro-line {
        filter: none !important;
        will-change: opacity, transform;
    }

    .intro-line h1 {
        font-size: clamp(3.6rem, 6.4vw, 6.3rem);
        line-height: 1.06;
    }

    .intro-line p {
        font-size: 1.5rem;
        line-height: 1.52;
    }

    .intro-bottom {
        bottom: 3rem;
        left: clamp(2.4rem, 5vw, 5rem);
        right: clamp(2.4rem, 5vw, 5rem);
    }

    /* ------------------------------------------------------------
       NOSOTROS: altura por contenido y aire para fotografías abajo.
       Edita padding-bottom según cada fotografía.
       ------------------------------------------------------------ */

    .panel-about {
        background: var(--light);
    }

    .about-hero,
    .about-focus,
    .about-values,
    .about-team {
        min-height: 0;
        height: auto;
    }

    .about-hero {
        display: block;
        padding-top: 9rem;
        background-size: auto 75%;
        background-position: right -3rem bottom;
        background-repeat: no-repeat;
         background-image:url("assets/bg-about-mobile.jpg");
    }

    .about-hero-content {
        grid-column: auto;
        max-width: 72rem;
    }






    .stats-list {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .stat-block {
        padding-top: 1.5rem;
        gap: .8rem;
    }

    .stat-block strong {
        font-size: 3rem;
    }

    .stat-block span {
        font-size: 1.3rem;
    }

    .transition-hint {
    display: none;
    }





    .about-focus {
        display: block;
        padding-top: 8rem;
        padding-bottom: 100vw;
        background-image: url("assets/bg-enfoque-mobile.jpg");
        background-size: 100% auto;
        background-position: center bottom;
        background-repeat: no-repeat;
        background-color: var(--light);
    }

    .about-focus-content {
        grid-column: auto;
        width: 100%;
        max-width: 70rem;
        margin: 0;
    }

    .about-values {
        padding-top: 8rem;
        padding-bottom: 9rem;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 3.2rem;
        margin-top: 4rem;
    }

    .value p {
        max-width: 70rem;
    }

    .about-team {
        padding-top: 8rem;
        padding-bottom: 8rem;
        background-size: 150% auto;
        background-position: left bottom;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem;
        margin-top: 4rem;
    }

    .team-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2.4rem;
        padding-top: 0;
    }

    .team-placeholder {
        width: min(100%, 16rem);
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .team-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .team-card p {
        margin-top: 1.4rem;
    }

    .transition-hint:not(.transition-hint-down) {
        display: none;
    }

    /* ------------------------------------------------------------
       SERVICIOS: una tarjeta por fila y alto de contenido.
       ------------------------------------------------------------ */

    .panel-services {
        background-size: 150% auto;
        background-position: right bottom;
    }

    .services-layout {
        position: relative;
        inset: auto;
        display: block;
        padding-top: 8rem;
        padding-bottom: 9rem;
    }

    .services-intro {
        margin-bottom: 4rem;
    }

    .services-intro .body-copy {
        max-width: 70rem;
    }

    .services-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 1.2rem;
        height: auto;
        min-height: 0;
    }

    .service-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        min-height: 17rem;
        height: auto;
        gap: 1.4rem;
        padding: 2.4rem 2.8rem;
    }

    .service-card h3 {
        margin: 0 0 .8rem;
        font-size: clamp(2.2rem, 3.1vw, 3rem);
        line-height: 1.2;
    }

    .service-card p {
        font-size: 1.4rem;
        line-height: 1.55;
        max-width: 70rem;
    }

    /* ------------------------------------------------------------
       CLIENTES / GALERÍA / CONTACTO: flujo natural.
       ------------------------------------------------------------ */

    .projects-intro {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 3rem;
        padding-top: 8rem;
        padding-bottom: 7rem;
    }

    .clients-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .project-gallery {
        padding-top: 2rem;
        padding-bottom: 8rem;
    }

    .gallery-heading {
        align-items: flex-start;
        margin-bottom: 3rem;
    }

    .gallery-heading p {
        color: var(--ink);
    }

    .project-grid {
        gap: 3.5rem 2rem;
    }

    .project-ending {
        display: block;
        min-height: 0;
        height: auto;
        padding-top: 8rem;
        padding-bottom: 10rem;
        background-position: left bottom;
        background-size: 150% auto;
    }

    .project-ending-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3.5rem;
        align-items: start;
    }

    .cta-intro {
        grid-column: 1 / -1;
    }

    .cta-intro h2 {
        max-width: 70rem;
        font-size: clamp(4rem, 6vw, 6.2rem);
    }

    .cta-person {
        border-top: .1rem solid rgba(255, 255, 255, .32);
        padding-top: 2rem;
    }

    /* Lightbox menos pesado y sin deformaciones. */
    .project-lightbox {
        padding: 3.5rem;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .lightbox-gallery {
        grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
        gap: .8rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    
    
/* CONTACTO / EMAIL */

.project-ending-layout {
    row-gap: 3rem;
}

.cta-intro {
    grid-row: auto;
}

.cta-email {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.cta-email a {
    font-size: clamp(2rem, 5vw, 2.8rem);
}

}

/* ============================================================
   03. TABLET VERTICAL / TELÉFONO GRANDE — 768 px
   ============================================================ */

@media (max-width: 768px) {

    .section-padding {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .top-space {
        padding-top: 7rem;
    }

    .big-headline,
    .section-headline {
        font-size: clamp(3.4rem, 7vw, 5.2rem);
    }

    .intro-copy {
        left: 2.5rem;
        width: calc(100% - 5rem);
        height: 60svh;
    }

    .intro-line h1 {
        font-size: clamp(3.2rem, 7.8vw, 5.2rem);
    }

    .intro-bottom {
        left: 2.5rem;
        right: 2.5rem;
        bottom: 2.5rem;
    }

    .intro-bottom .progress-line {
        width: 10rem;
    }

    .about-hero {
        padding-top: 7rem;
    }

    .about-focus {
        padding-top: 7rem;
    }

    .about-values,
    .about-team {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .team-placeholder {
        width: min(100%, 15rem);
    }

    .services-layout {
        padding-top: 7rem;
        padding-bottom: 8rem;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .service-card {
        min-height: 16.5rem;
        padding: 2.2rem;
        gap: 1.2rem;
    }

    .projects-intro {
        padding-top: 7rem;
        padding-bottom: 6rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-ending {
        padding-top: 7rem;
        padding-bottom: 8rem;
    }

    .project-ending-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-intro {
        grid-column: auto;
    }

    .lightbox-gallery {
        position: relative;
        height: min(66svh, 65rem);
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .lightbox-image {
        grid-column: 1;
        grid-row: 1;
    }

    .lightbox-prev,
    .lightbox-next {
        z-index: 2;
        grid-column: 1;
        grid-row: 1;
        width: 4.2rem;
        height: 4.2rem;
        background: rgba(0, 0, 0, .45);
    }

    .lightbox-prev {
        justify-self: start;
    }

    .lightbox-next {
        justify-self: end;
    }

    .lightbox-close {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* ============================================================
   04. TELÉFONOS — 480 px
   ============================================================ */

@media (max-width: 480px) {

    .section-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    html {
        scroll-padding-top: 6.8rem;
    }

    .site-header {
        min-height: 6.8rem;
        height: 6.8rem;
        padding: 1rem 2rem;
    }

    .site-header .brand-logo {
        width: clamp(11.5rem, 34vw, 15rem);
    }
    
    .social-links {
    gap: .4rem;
}

.social-link {
    width: 4rem;
    height: 4rem;
    flex-basis: 4rem;
}

.social-link svg {
    width: 1.8rem;
    height: 1.8rem;
}

    .mobile-menu-toggle {
        width: 4rem;
        height: 4rem;
        flex-basis: 4rem;
    }

    .site-header .wa-area {
        top: auto;
        right: auto;
    }

    .site-header .nav {
        padding-left: 2rem;
        padding-right: 2rem;
        max-height: calc(100svh - 6.8rem);
    }

    .wa-toggle {
        width: 4rem;
        height: 4rem;
    }

    .intro-copy {
        left: 2rem;
        width: calc(100% - 4rem);
        height: 63svh;
        top: 48%;
    }

    .eyebrow {
        font-size: 1rem;
        letter-spacing: .24em;
    }

    .intro-line h1 {
        font-size: clamp(3.1rem, 8.6vw, 4.3rem);
        line-height: 1.06;
        margin: 1.4rem 0;
    }

    .intro-line p {
        font-size: 1.3rem;
        line-height: 1.48;
    }

    .intro-bottom {
        left: 2rem;
        right: 2rem;
        bottom: 1.8rem;
        gap: 1rem;
        font-size: 1rem;
    }

    .intro-note {
        gap: .8rem;
    }

    .intro-bottom .progress-line {
        width: 7rem;
    }

    .scroll-arrow {
        width: 3rem;
        height: 3rem;
    }

    .big-headline,
    .section-headline {
        font-size: clamp(3.2rem, 8vw, 4.5rem);
    }

    .body-copy {
        font-size: 1.5rem;
    }

    .about-hero {
        padding-top: 7rem;
    }

    .about-focus {
        padding-top: 7rem;
    }

    .stats-list {
        gap: 2rem 1.2rem;
    }

    .stat-block strong {
        font-size: clamp(2.3rem, 6.5vw, 3rem);
    }

    .stat-block span {
        font-size: 1.2rem;
    }

    .team-placeholder {
        width: min(100%, 14rem);
    }

    .team-card h3 {
        font-size: 2.6rem;
    }

    .team-card p {
        font-size: 1.4rem;
    }

    .services-intro {
        margin-bottom: 3rem;
    }

    .services-layout {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 2.2rem;
    }

    .service-card p {
        font-size: 1.3rem;
    }

    .clients-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-placeholder {
        height: 8rem;
        padding: 1.2rem;
    }

    .gallery-heading {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .cta-intro h2 {
        font-size: clamp(3.4rem, 8vw, 4.8rem);
    }

    .project-lightbox {
        padding: 5rem 1.3rem 1.8rem;
    }

    .lightbox-gallery {
        height: min(62svh, 55rem);
    }
}

/* ============================================================
   05. TELÉFONO APAISADO / ALTURA REDUCIDA
   No se comprime Servicios: ahora crece con el contenido.
   ============================================================ */

@media (max-width: 1024px) and (max-height: 520px) {

    .panel-intro {
        min-height: 40rem;
        height: 100svh;
    }

    .intro-copy {
        top: 48%;
        height: 64%;
    }

    .intro-line h1 {
        font-size: clamp(2.6rem, 4.2vw, 4rem);
    }

    .intro-line p {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1024px) {
    .mobile-menu-toggle span,
    .site-header .nav {
        transition: none;
    }

    .intro-line {
        transition: none;
        filter: none !important;
    }
}
