/* ========================================
   BANNER PRINCIPAL CON VIDEO
======================================== */


/* ========================================
   BANNER PRINCIPAL INFINITO
   ======================================== */
/* BANNER */
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: calc(100vh - 50px);
    margin: 0 auto;
    overflow: hidden;
    color: var(--color-white);
    background: #30251d;
}

/* PISTA */
.home-hero__images {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

.home-hero__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform .8s cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

.home-hero__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

/* IMÁGENES Y VÍDEOS */
.home-hero__media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-hero__media--mobile {
    display: none;
}

/* CAPA OSCURA */
.home-hero__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
            rgba(20, 13, 8, .76) 0%,
            rgba(20, 13, 8, .48) 36%,
            rgba(20, 13, 8, .12) 72%,
            rgba(20, 13, 8, .18) 100%);
    opacity: 0.3;
}

/* CONTENIDO */
.home-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-content: center;
    width: min(720px, 58%);
    margin: 0 0 36px 2%;
    padding-bottom: 10vh;
}

.home-hero__content h1 {
    width: 100%;
    color: var(--color-white);
    letter-spacing: -1.5px;
    text-align: left;
    text-transform: none;
}
.home-hero__content p {
    width: 100%;
    color: var(--color-white);
    font-family: var(--font-light);
    letter-spacing: -0.2px;
    font-size: 24px;
    line-height: 30px;
    padding: 0px;
}

/* INDICADORES */
.home-hero__pagination {
    position: absolute;
    z-index: 3;
    right: 2%;
    bottom: 30px;
    left: 2%;
    display: flex;
    gap: 24px;
}

.home-hero__pagination-item {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}






.home-hero__pagination-item--active {
    color: var(--color-white);
}

.home-hero__pagination-track {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, .35);
}

.home-hero__pagination-track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-white);
    transform: scaleX(0);
    transform-origin: left center;
}

.home-hero__pagination-item--active .home-hero__pagination-track::after {
    animation: home-hero-progress 3s linear forwards;
}








/* FLECHAS DEL BANNER */
.home-hero__arrows {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
}

.home-hero__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
    pointer-events: auto;
    transition: background .3s ease, color .3s ease;
}

.home-hero__arrow span svg {
    stroke: var(--color-black);
    stroke-width: 1.8px;
    height: 10px;
    width: auto;
    line-height: 1;
    display: block;
}

.home-hero__arrow:hover {
    background: #222;
    color: #fff;
}

.home-hero__arrow:hover span svg {
    stroke: var(--color-white);
}


.home-hero__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* MÓVIL */
@media (max-width: 600px) {
    .home-hero__arrows {
        padding: 0 20px;
    }

    .home-hero__arrow {
        width: 46px;
        height: 46px;
    }

    .home-hero__arrow span {
        font-size: 26px;
    }
}


.home-hero__images {
    touch-action: pan-y;
    user-select: none;
}

.home-hero__media {
    -webkit-user-drag: none;
}


.parallax-item video,
.parallax-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}



@keyframes home-hero-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ACCESIBILIDAD */
.home-hero__pagination-item:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 5px;
}

/* TABLET */
@media (max-width: 900px) {
    .home-hero {
        min-height: 620px;
        height: 85svh;
    }

    .home-hero__content {
        width: min(680px, 78%);
        margin-left: 5%;
    }

    .home-hero__content h1 {
        font-size: clamp(38px, 6vw, 56px);
    }

    .home-hero__pagination {
        right: 5%;
        left: 5%;
        gap: 16px;
    }
}

/* MÓVIL */
@media (max-width: 600px) {


    
    .home-hero {
        height: calc(100dvh - 50px);
        min-height: 0;
    }

    
    .home-hero__media {
        object-position: 58% center;
    }


    .home-hero__media--desktop {
        display: block;
    }

    .home-hero__media--mobile {
        display: block;
    }

    .home-hero__shade {
        background: linear-gradient(90deg,
                rgba(20, 13, 8, .72) 0%,
                rgba(20, 13, 8, .46) 72%,
                rgba(20, 13, 8, .28) 100%);
    }

    .home-hero__content {
        width: 90%;
        margin: -20px auto 50px;
        padding-bottom: 4vh;
    }
    .home-hero__content p {
        font-size: 20px;
        line-height: 25px;
        letter-spacing: 0px;
    }
    .home-hero__pagination {
        right: 5%;
        bottom: 22px;
        left: 5%;
        gap: 12px;

    }
    .home-hero__pagination-item {
        gap: 8px;
        font-size: 17px;
    }
}

/* MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion: reduce) {

    .home-hero__track,
    .home-hero__pagination-track::after {
        animation: none;
        transition: none;
    }
}


























/*PROYECTOS*/
.home-section-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-section-heading__arrows {
    width: auto;
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 2;
}

#sig,
#ant,
.home-projects__prev,
.home-projects__next,
.home-testimonials__prev,
.home-testimonials__next {
    cursor: pointer;
}

#sig img,
#ant img,
.home-projects__prev img,
.home-projects__next img,
.home-testimonials__prev img,
.home-testimonials__next img {
    width: auto;
    height: auto;
}

#sig:hover img,
#ant:hover img,
.home-projects__prev:hover img,
.home-projects__next:hover img,
.home-testimonials__prev:hover img,
.home-testimonials__next:hover img {
    animation-name: slidein;
    animation-iteration-count: infinite;
    animation-duration: 0.5s;
}

@keyframes slidein {
    0% {
        transform: translateX(5px);
    }

    50% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(5px);
    }
}


/* ========================================
   BANNER DE PROYECTOS
   ======================================== */

.home-projects__slider {
    width: 100%;
    position: relative;
}

/* Swiper */
.home-projects__slider .sc-bannerprincipal {
    width: 100%;
    overflow: hidden;
}

/* Diapositiva */
.home-projects__slide {
    width: 100%;
    height: auto;
    position: relative;
}

/* Contenedor de imagen */
.home-projects-img {
    width: 100%;
    aspect-ratio: 2.7 / 1;
    overflow: hidden;
    position: relative;
}

/* Imagen */
.home-projects-img img {
    position: absolute;
    top: 50%;
    left: 50%;

    display: block;
    width: 100%;
    height: 130%;
    max-width: none;

    object-fit: cover;
    object-position: center;

    transform: translate3d(
        -50%,
        calc(-50% + var(--parallax-y, 0px)),
        0
    );

    will-change: transform;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1000px) {
    .home-projects-img {
        aspect-ratio: 2 / 1;
    }
}


/* Imagen con movimiento parallax */

















/* ========================================
   MOSAICO DE PROYECTOS
======================================== */

.home-gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ========================================
   TARJETAS
======================================== */

.home-gallery__item {
    position: relative;
    min-width: 0;
    min-height: 0;
}

/* Absoluta para rellenar el item: con height:100% Safari la dejaba a 0 de alto (el item solo tiene alto por aspect-ratio) */
.home-gallery__card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-gallery__cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

/* Imagen */
.home-gallery__cover>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* ========================================
   DEGRADADO
======================================== */

.home-gallery__gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.2) 45%,
            transparent 75%);
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

/* ========================================
   TEXTO
======================================== */

.home-gallery__caption {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    pointer-events: none;
    padding: 32px;
}

.home-gallery__caption h4 {
    color: var(--color-white);
}

/* ========================================
   EFECTO HOVER
======================================== */

.home-gallery__card:hover .home-gallery__cover>img {
    transform: scale(1.1);
}

.home-gallery__card:hover .home-gallery__gradient {
    opacity: 1;
}

/* ========================================
   PROPORCIONES
======================================== */

/* Fila superior: 2 imágenes rectangulares */
.home-gallery__item--large {
    grid-column: span 3;
    aspect-ratio: 1.9 / 1;
}

/* Fila inferior: 3 imágenes rectangulares */
.home-gallery__item--small {
    grid-column: span 2;
    aspect-ratio: 1.35 / 1;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1200px) {
    .home-gallery__grid {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .home-gallery__grid {
        gap: 8px;
    }

    .home-gallery__item--large {
        aspect-ratio: 1.6 / 1;
    }

    .home-gallery__item--small {
        aspect-ratio: 1.2 / 1;
    }
}

/* ========================================
   MÓVIL
======================================== */

@media (max-width: 600px) {
    .home-gallery__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-gallery__item--large,
    .home-gallery__item--small {
        grid-column: 1;
        aspect-ratio: 1.5 / 1;
    }



    .home-gallery__caption {
        padding: 16px;
    }
}

/* ========================================
   ACCESIBILIDAD
======================================== */

@media (prefers-reduced-motion: reduce) {

    .home-gallery__cover>img,
    .home-gallery__gradient {
        transition: none;
    }
}











/* OPINIONES */

.home-testimonials {
    width: 100%;
    position: relative;
}

.home-testimonials .swiper-container {
    width: 100%;
    position: relative;
}

.home-testimonials__slide {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* FOTO */
.home-testimonials__photo {
    width: 50%;
    height: auto;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* CONTENEDOR PRINCIPAL DE TEXTO */
.home-testimonials__text {
    width: 50%;
    height: auto;
    position: relative;
    border: 1px solid var(--color-grey);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}


.home-testimonials__content {
    padding: 16px 22px 16px 12px;
}

.home-testimonials__content h6,
.home-testimonials__content h5 {
    padding: 0px;
}

.home-testimonials__content h5 {
    font-family: var(--font-medium);
}


    .home-testimonials__content p {
        font-size: 16px;
        line-height: 1.5;
        padding: 16px 0px;
    }

    
.home-testimonials__text::-webkit-scrollbar {
    display: none;
}


.home-testimonials__text p:nth-child(3) {
    color: var(--color-grey-black);
}




/* PISTA GRIS (FIJA VISUALMENTE) */
.home-testimonials__scroll-track {
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 6px;
    width: 6px;
    background-color: var(--color-grey-lineal);
    /* Agregado fondo visible para la pista */
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
}

/* INDICADOR (THUMB) */
.home-testimonials__scroll-thumb {
    width: 100%;
    background: var(--color-grey);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    height: 30px;
}


@media (max-width: 900px) {
    .home-testimonials__slide {
        gap: 0px;
    }

    .home-testimonials__content p {
        font-size: 14px;
        line-height: 1.5;
    }
}


.home-testimonials__stars {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-testimonials__star {
    font-size: 25px;
    line-height: 1;
    color: #d1d1d1;
}

.home-testimonials__star.is-active {
    color: #e7c126;
    /* estrella activa */
}


@media (max-width: 600px) {
.home-testimonials__stars {
    gap: 3px;
}
.home-testimonials__star {
    font-size: 20px;
}  
}





/* LEMA */
.brand-statement {
    width: 50%;
    text-align: center;
}

@media (max-width: 900px) {
    .brand-statement {
        width: 90%;
    }
}







/* CLIENTES */
.client-section {
    border-top: 2px solid var(--color-grey-lineal);
    border-bottom: 2px solid var(--color-grey-lineal);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.client-section h5 {
    text-align: center;
}

.client-section__logos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    position: relative;
}

.client-section__logo {
    width: auto;
    height: 70px;
    position: relative;
}