html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #121212;
}

body.menu-open {
    overflow: hidden;
}

img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.logo-img {
    box-shadow: none !important;
}

.no-shadow {
    box-shadow: none !important;
}

footer a {
    font-size: 16px !important;
    color: #FFFFFF !important;
}

footer h4 {
    font-size: 1.25rem !important; /* text-xl */
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem !important;
}

footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 2px;
    background: #FFFFFF;
}

footer svg {
    width: 1.5rem !important; /* w-6 */
    height: 1.5rem !important; /* h-6 */
}

.footer-map-panel a {
    color: #111827 !important;
    font-size: 0.875rem !important;
}

.footer-map-panel a.inline-flex {
    color: #FFFFFF !important;
    font-size: 0.75rem !important;
}

.btn-premium {
    border-radius: 0 !important;
    background-color: #3F4A3C !important;
    color: #FFFFFF !important;
    border-color: #3F4A3C !important;
    box-shadow: none !important;
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.btn-premium:hover,
.btn-premium:focus-visible,
.btn-premium:active {
    background-color: #D9CEB8 !important;
    color: #121212 !important;
    border-color: #D9CEB8 !important;
}

.btn-premium-stable:hover,
.btn-premium-stable:focus-visible,
.btn-premium-stable:active {
    background-color: #3F4A3C !important;
    color: #FFFFFF !important;
    border-color: #3F4A3C !important;
}

section[id] {
    scroll-margin-top: 80px;
}

.section-divider {
    width: 20%;
    height: 5px;
    margin: 5rem auto;
    background: #3A2C23;
}

.hero-backdrop {
    background-image:
        linear-gradient(rgba(58, 44, 35, 0.65), rgba(58, 44, 35, 0.65)),
        url('imagenes/hero-backdrop.jpg');
    background-size: cover;
    background-position: center;
}

.hero-video-section {
    background-color: #FFFFFF;
}

.hero-video-shell {
    max-width: 1600px;
}

.hero-video-bg {
    object-fit: cover;
}

.hero-video-overlay {
    background: linear-gradient(rgba(58, 44, 35, 0.62), rgba(58, 44, 35, 0.62));
}

.showroom {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
        url('imagenes/1.jpg');
    background-size: cover;
    background-position: center;
}

.showroom-feature {
    background-image: url('imagenes/1.jpg');
}

#proceso.container-fluid {
    background: #fff;
}

#proceso .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

#proceso .row > div {
    min-width: 0;
}

#proceso .spaced-title {
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: #b8b09d;
}

#proceso .h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.02;
    color: #2d2924;
    text-align: center;
}

#proceso .f-carousel__slide {
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

#proceso .f-carousel {
    width: 100%;
    overflow: hidden;
}

#proceso .process-carousel-col {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

#proceso .f-carousel__viewport {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

#proceso .f-carousel__track {
    display: flex;
    width: 100% !important;
    max-width: none !important;
}

#process-title {
    text-wrap: balance;
}

#process-subtitle {
    text-wrap: pretty;
}

#proceso .f-carousel__slide > div {
    position: relative;
    overflow: hidden;
}

#proceso .f-carousel__slide > div::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 1.2rem;
    height: 1px;
    background: rgba(184, 176, 157, 0.7);
}

#proceso .f-carousel__slide > div::after {
    content: '';
    position: absolute;
    left: 3.5rem;
    top: 1.2rem;
    width: 0.48rem;
    height: 0.48rem;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background: #c5bda8;
}

#proceso .timeline-event {
    position: relative;
    min-height: 180px;
    padding: 1.15rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(184, 176, 157, 0.7);
}

#proceso .timeline-event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    background: #c5bda8;
}

#proceso .h4 {
    display: block;
    font-size: 1.55rem;
    line-height: 1.05;
    color: #2d2924;
}

#proceso .lead {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #31312f;
    word-break: break-word;
}

#proceso .f-carousel__nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
    pointer-events: none;
    z-index: 3;
}

#proceso .f-button {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid #3F4A3C;
    border-radius: 50%;
    background: #3F4A3C;
    color: #FFFFFF;
    pointer-events: auto;
}

#exclusividad-carousel .f-button,
#project-gallery-carousel .f-button {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid #3F4A3C;
    border-radius: 50%;
    background: #3F4A3C;
    color: #FFFFFF;
}

#proceso .f-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Solo carruseles de página: no aplicar a .fancybox__container (Fancybox usa también f-carousel) */
#exclusividad-carousel .f-button svg,
#project-gallery-carousel .f-button svg,
#proceso .f-carousel .f-button svg {
    display: none;
}

#exclusividad-carousel .f-button::before,
#project-gallery-carousel .f-button::before,
#proceso .f-carousel .f-button::before {
    content: '';
    display: block;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

#exclusividad-carousel .f-button.is-prev::before,
#project-gallery-carousel .f-button.is-prev::before,
#proceso .f-carousel .f-button.is-prev::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3l-9 9 9 9'/%3E%3C/svg%3E");
}

#exclusividad-carousel .f-button.is-next::before,
#project-gallery-carousel .f-button.is-next::before,
#proceso .f-carousel .f-button.is-next::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3l9 9-9 9'/%3E%3C/svg%3E");
}

#proceso .timeline-arrow {
    right: 0.2rem;
    top: 0.5rem;
    color: #8f8b82;
    display: none;
}

#exclusividad-carousel .f-carousel__slide,
#project-gallery-carousel .f-carousel__slide {
    flex: 0 0 33.3333%;
    padding: 0 0.5rem;
}

#exclusividad-carousel .gallery-slide img,
#project-gallery-carousel .gallery-slide img {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
    height: 400px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px !important;
}

#one .one-gallery,
#one .one-copy,
#project-gallery-block .one-gallery,
#project-gallery-block .one-copy {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.carousel-item {
    flex: 0 0 50%;
    padding: 0 0.5rem;
}

#exclusividad-track {
    transition: transform 700ms ease;
    will-change: transform;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(217, 206, 184, 0.65);
    background: rgba(63, 74, 60, 0.92);
    color: #F4F1EB;
    transition: all 220ms ease;
}

.carousel-control:hover {
    background: #D9CEB8;
    border-color: #D9CEB8;
    color: #3A2C23;
}

.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 280ms ease, visibility 280ms ease;
}

.mobile-menu-panel {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-overlay.is-open .mobile-menu-panel {
    opacity: 1;
    transform: translateY(0);
}

.site-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.header-link {
    position: relative;
    color: #121212 !important;
}

.header-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.28rem;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}

.header-link:hover::after,
.header-link:focus-visible::after {
    transform: scaleX(1);
}

.header-link:hover,
.header-link:focus-visible {
    color: #121212 !important;
}

#equipo .bg-style-light {
    background: #FFFFFF;
}

#equipo .text-light {
    color: #121212;
}

#equipo .hero-full-width-container {
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

#equipo .d-flex {
    display: flex;
}

#equipo .flex-column {
    flex-direction: column;
}

#equipo .position-relative {
    position: relative;
}

#equipo .position-absolute {
    position: absolute;
}

#equipo .top-0 {
    top: 0;
}

#equipo .z-1 {
    z-index: 1;
}

#equipo .w-100 {
    width: 100%;
}

#equipo .h-100 {
    height: 100%;
}

#equipo .mb-0 {
    margin-bottom: 0;
}

#equipo figure {
    position: relative;
    margin: 0;
    width: 100%;
    min-height: 80vh;
}

#equipo .object-fit-cover {
    object-fit: cover;
}

#equipo figure picture,
#equipo figure img {
    width: 100%;
    height: 100%;
}

#equipo .hero-full-width-content {
    width: 100%;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#equipo figure>.hero-full-width-content {
    position: absolute;
    inset: 0;
    width: auto;
    padding: 0;
}

#equipo .hero-full-width-text blockquote {
    margin-top: 0.9rem;
}

#equipo .hero-full-width-text h2 {
    font-size: 1.7rem;
    line-height: 1.22;
    color: #121212;
}

#equipo .equipo-team-link {
    text-decoration: none;
    color: inherit;
}

#equipo .equipo-team-link p {
    margin: 0;
}

#equipo .text-uppercase {
    text-transform: uppercase;
}

#equipo .display-3 {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1;
}

@media (min-width: 576px) {
    .site-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .cover-video {
        min-height: 750px !important;
    }

    #proceso .h1 {
        text-align: left;
    }

    #proceso .f-carousel__slide {
        flex-basis: 100%;
    }

    #exclusividad-carousel .f-carousel__slide,
    #project-gallery-carousel .f-carousel__slide {
        flex-basis: 33.3333%;
    }

    #exclusividad-carousel .gallery-slide img,
    #project-gallery-carousel .gallery-slide img {
        width: 400px !important;
        min-width: 400px !important;
        max-width: 400px !important;
        height: 400px !important;
    }
}

@media (max-width: 1279px) {
    #process-title {
        font-size: 3rem !important;
        line-height: 1.1;
        text-align: center !important;
    }

    #process-subtitle {
        font-size: clamp(1rem, 3.7vw, 1.25rem) !important;
        margin-top: 1rem !important;
    }

    #proceso #method-carousel {
        margin-top: 0.5rem;
    }

    #proceso .h1 {
        font-size: clamp(1.5rem, 7vw, 2.35rem);
        text-align: left;
    }

    #proceso .f-carousel__slide {
        flex-basis: 100%;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    #proceso .f-button {
        width: 1.85rem;
        height: 1.85rem;
    }

    #proceso .f-carousel__nav {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.65rem !important;
        padding-top: 0.9rem !important;
        margin-top: 0.35rem !important;
        pointer-events: auto !important;
    }

    #one .one-layout,
    #project-gallery-block .one-layout {
        grid-template-columns: 1fr !important;
    }

    #one .one-copy,
    #project-gallery-block .one-copy {
        width: 100% !important;
        max-width: 100% !important;
    }

    #one .one-gallery,
    #project-gallery-block .one-gallery {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }
}

@media (min-width: 640px) and (max-width: 1279px) {
    #process-title {
        font-size: 3.75rem !important;
    }
}

@media (min-width: 768px) {
    .site-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .site-container {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    #proceso .row {
        grid-template-columns: 31% 69%;
        align-items: start;
    }

    #proceso .col-xl-3 {
        text-align: right;
        padding-right: 1.25rem;
    }

    #proceso .h1 {
        text-align: right;
    }

    #proceso .f-carousel__slide {
        flex-basis: 33.3333%;
        width: 33.3333% !important;
        min-width: 33.3333% !important;
        max-width: 33.3333% !important;
    }

    #proceso .f-carousel__nav {
        padding: 0 0.4rem;
    }

    #proceso .timeline-arrow {
        display: flex;
    }

    #equipo .hero-full-width-container {
        flex-direction: row-reverse;
        min-height: auto;
    }

    #equipo .flex-xl-row-reverse {
        flex-direction: row-reverse;
    }

    #equipo figure {
        width: 70%;
        min-height: auto;
        height: auto;
    }

    #equipo .hero-full-width-content {
        width: 30%;
        padding: 2.5rem 2rem;
    }

    #equipo figure img.position-absolute {
        position: relative;
        top: auto;
        height: auto;
    }

    #equipo .hero-full-width-text h2 {
        font-size: 2.05rem;
    }
}

@media (max-width: 1279px) {
    #equipo .hero-full-width-container {
        min-height: auto;
    }

    #equipo figure {
        width: 100%;
        min-height: auto;
        height: auto;
    }

    #equipo figure img.position-absolute {
        position: relative;
        top: auto;
        height: auto;
    }
}

@media (min-width: 1200px) {
    .site-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .site-container {
        max-width: 1320px;
    }
}

@media (max-width: 1023px) {
    body {
        padding-bottom: 64px;
    }
}

@media (min-width: 1280px) {
    #exclusividad-carousel .f-carousel__slide {
        flex-basis: 33.3333%;
    }

    #project-gallery-carousel .f-carousel__slide {
        flex-basis: 20%;
    }

    #exclusividad-carousel .gallery-slide img,
    #project-gallery-carousel .gallery-slide img {
        width: 400px !important;
        min-width: 400px !important;
        max-width: 400px !important;
        height: 400px !important;
    }
}

@media (max-width: 479px) {
    #exclusividad-carousel .f-carousel__slide,
    #project-gallery-carousel .f-carousel__slide {
        flex-basis: 100%;
        padding: 0 !important;
    }

    #exclusividad-carousel .gallery-slide img,
    #project-gallery-carousel .gallery-slide img {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
}

/* Comparador antes / después (proyectos.html) */
.before-after-slider__frame {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: ew-resize;
    outline: none;
}

.before-after-slider__frame:focus-visible {
    box-shadow: 0 0 0 3px rgba(63, 74, 60, 0.45);
}

.before-after-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 3px;
    margin-left: -1.5px;
    transform: translateZ(0);
    background: #ffffff;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.before-after-slider__handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background: #ffffff;
    border: 3px solid #3f4a3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
