/* ==========================================================================
   Estudio Cane - Home Specific Styles (home.css)
   Sección Scroll Horizontal, Lightbox de Proyectos y Servicios Mobile
   ========================================================================== */

/* ==================== Sección Scroll Horizontal ==================== */
.horizontal-scroll-sec {
    overflow: hidden;
}

.horizontal-track-wrapper {
    display: flex;
    align-items: center;
    height: 100vh;
}

.horizontal-track {
    display: flex;
    gap: 24px;
    padding: 0 60px;
    will-change: transform;
}

.h-card {
    flex: 0 0 480px;
    height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.h-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.h-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.h-card:hover .h-card-img {
    transform: scale(1.06);
}

.h-card-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(12, 12, 14, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 3;
}

/* Icono dentro del badge (reemplaza style="margin-right:6px;" inline) */
.h-card-badge svg {
    margin-right: 6px;
}

.h-card:hover .h-card-badge {
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.h-card-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 45px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.h-card-info h4 {
    color: #fff;
    margin: 4px 0 0;
    font-size: 1.45rem;
    font-weight: 600;
}

/* ================= Project Gallery Lightbox Modal ================= */
.proj-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(8, 8, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 99999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s ease !important;
}

.proj-lightbox-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.proj-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 36px 18px;
    box-sizing: border-box;
}

.proj-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
}

.proj-lightbox-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proj-lightbox-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d1a866;
    font-weight: 600;
}

.proj-lightbox-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.proj-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.proj-lightbox-counter {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.proj-lightbox-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.proj-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.06);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Stage & Main Image */
.proj-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 0;
    width: 100%;
    margin: 6px 0;
    gap: 12px;
}

.proj-lightbox-main-img-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 8px;
}

.proj-lightbox-img {
    max-width: 86vw;
    max-height: calc(100vh - 205px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
    transition: opacity 0.24s ease, transform 0.24s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.proj-lightbox-img.fade-out {
    opacity: 0;
    transform: scale(0.97);
}

.proj-lightbox-arrow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 5;
    flex-shrink: 0;
    outline: none;
}

.proj-lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Bottom Thumbnails */
.proj-lightbox-footer {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.proj-lightbox-thumbs-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 100%;
    padding: 6px 12px 2px;
    scroll-behavior: smooth;
}

.proj-lightbox-thumbs-track::-webkit-scrollbar {
    height: 4px;
}

.proj-lightbox-thumbs-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}

.proj-thumb-item {
    width: 72px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.42;
    transition: all 0.22s ease;
    box-sizing: border-box;
    background: #141416;
}

.proj-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-thumb-item:hover {
    opacity: 0.85;
}

.proj-thumb-item.active {
    opacity: 1;
    border-color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .proj-lightbox-container {
        padding: 16px 14px 12px;
    }

    .proj-lightbox-title {
        font-size: 1.15rem;
    }

    .proj-lightbox-arrow {
        width: 38px;
        height: 38px;
    }

    .proj-lightbox-img {
        max-width: 92vw;
        max-height: calc(100vh - 190px);
    }

    .proj-thumb-item {
        width: 52px;
        height: 36px;
    }
}

/* ========== Elegant Gallery Badge ========== */
.eleg-gallery-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 7px 14px;
    border-radius: 30px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    white-space: nowrap;
    z-index: 5;
}

.portfolio-elegant .item.active .eleg-gallery-badge,
.portfolio-elegant .item:hover .eleg-gallery-badge {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Tarjetas de Servicios y Slider Móvil ==================== */
.services-cards-section {
    position: relative;
}

.services-cards-slider {
    position: relative;
    width: 100%;
    padding: 10px 0 25px;
}

@media (max-width: 991px) {
    .services-cards-slider {
        overflow: hidden;
        padding-bottom: 15px;
    }
}

.services-cards-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.services-cards-slider .swiper-slide {
    height: auto !important;
    display: flex;
    box-sizing: border-box;
}

.service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    outline: none;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.16);
}

.service-card-cover {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #1a1a1a;
}

.service-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-card-cover img,
.service-card:focus-visible .service-card-cover img {
    transform: scale(1.07);
}

.service-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #111111;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.service-card-body {
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #111111;
    margin-bottom: 12px;
    min-height: 48px;
}

.service-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-card-footer {
    margin-top: auto;
}

.service-card-footer .butn-arrow {
    width: 100%;
    justify-content: space-between;
}

.service-card:hover .service-card-footer .butn-arrow,
.service-card:focus-visible .service-card-footer .butn-arrow {
    background: #000000;
    color: #ffffff;
}

/* Paginación Swiper para la sección de servicios */
.services-swiper-pagination {
    position: static !important;
    margin-top: 24px;
    text-align: center;
}

.services-swiper-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #111111;
    opacity: 0.2;
    transition: all 0.3s ease;
    margin: 0 5px !important;
    display: inline-block;
    cursor: pointer;
}

.services-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 26px;
    border-radius: 6px;
    background: #111111;
}

@media (min-width: 992px) {
    .services-swiper-pagination {
        display: none !important;
    }
    .services-touch-indicator {
        display: none !important;
    }
}

/* ==================== Video & Imagen dentro de Modales de Servicios ==================== */
.service-modal-video {
    position: relative;
    width: 100%;
    max-width: 270px;
    margin: 0 auto 25px;
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.service-modal-video .service-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 440px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-video .service-html5-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    outline: none;
    background: #000000;
}

.service-modal-image {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 25px;
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.service-modal-image .service-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 320px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-image .service-reference-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-modal-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.service-modal-flow .flow-step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.service-modal-flow .flow-arrow {
    color: #F11111;
    font-weight: bold;
    font-size: 14px;
}

.service-modal-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.service-modal-step-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
}

.service-modal-step-item .step-tag {
    font-size: 12px;
    font-weight: 700;
    color: #F11111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}

.service-modal-step-item .step-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ==========================================================================
   Sección Portafolio 3D (+2.500 Obras Construidas) en Móviles (< 992px)
   Adapta la tarjeta al ancho de pantalla del teléfono, optimiza proporciones,
   y elimina márgenes desproporcionados o botones cortados.
   ========================================================================== */
@media (max-width: 991.98px) {
    .work-style1 {
        margin-top: 50px !important;
        padding-top: 0 !important;
    }

    .work-style1 .sec-head {
        margin-bottom: 25px !important;
        padding: 0 15px !important;
    }

    .work-style1 .sec-head h2 {
        font-size: 32px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.5px !important;
    }

    .work-style1 .slider-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: 460px !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    .work-style1 .slider {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: visible !important;
        perspective: 350px !important;
        perspective-origin: 50% 50% !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent;
    }

    .work-style1 .slider .card {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 84% !important;
        max-width: 400px !important;
        height: clamp(220px, 58vw, 290px) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
        overflow: hidden !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .work-style1 .slider .card img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 14px !important;
        background: transparent !important;
    }

    /* Pista elegante para dispositivos táctiles */
    .slider-touch-indicator {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(20, 20, 20, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #ffffff;
        font-size: 11.5px;
        font-weight: 500;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        padding: 6px 14px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .slider-touch-indicator i {
        color: #e53935;
        font-size: 13px;
    }

    /* Botón a Galería Completa ajustado en móviles */
    .btn-gallery-link {
        max-width: 94% !important;
        padding: 10px 10px 10px 20px !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    .btn-gallery-link span.text-uppercase {
        font-size: 13px !important;
        letter-spacing: 0.5px !important;
    }
}

@media (max-width: 480px) {
    .work-style1 .sec-head h2 {
        font-size: 26px !important;
    }

    .work-style1 .slider-wrapper {
        height: 400px !important;
    }

    .work-style1 .slider .card {
        width: 88% !important;
        height: 230px !important;
    }

    .btn-gallery-link span.text-uppercase {
        font-size: 12px !important;
    }
}

/* ==================== Optimización Mobile: 3 Edificios (Cero tildes/lag) ==================== */
@media (max-width: 991px) {
    .horizontal-scroll-sec {
        overflow: visible !important;
        padding: 40px 0 20px !important;
    }

    .horizontal-track-wrapper {
        height: auto !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding: 10px 0 25px !important;
        scrollbar-width: none; /* Firefox */
    }

    .horizontal-track-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .horizontal-track {
        display: flex !important;
        gap: 16px !important;
        padding: 0 20px !important;
        width: max-content !important;
        transform: none !important;
        will-change: auto !important;
    }

    .h-card {
        flex: 0 0 84vw !important;
        max-width: 360px !important;
        height: 56vh !important;
        min-height: 380px !important;
        max-height: 520px !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        border-radius: 18px !important;
        transform: none !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
    }

    .h-card-badge {
        bottom: 18px !important;
        right: 18px !important;
        padding: 7px 14px !important;
        font-size: 11px !important;
        /* Reemplaza backdrop-filter por fondo solido oscuro en mobile para eliminar tirones de GPU */
        background: rgba(18, 18, 20, 0.92) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .h-card-info {
        padding: 20px 20px 35px !important;
    }

    .h-card-info h4 {
        font-size: 1.25rem !important;
    }
}

/* ==================== Hero Tipografía y Armonía Visual ==================== */
.hero-style1 {
    position: relative;
    background-position: center 20% !important;
    background-size: cover;
    overflow: hidden;
    transition: background-image 0.5s ease-in-out;
}

.hero-style1:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.05) 24%, rgba(10, 10, 10, 0.25) 50%, rgba(10, 10, 10, 0.92) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-style1 .container,
.hero-style1 .hero-container {
    min-height: 100vh;
    padding-top: clamp(100px, 13vh, 140px);
    padding-bottom: clamp(25px, 4vh, 45px);
    position: relative;
    z-index: 10;
}

.hero-style1 .hero-badge {
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 18px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    white-space: nowrap;
}

.hero-style1 .hero-bottom-content {
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.hero-style1 .hero-title {
    font-size: clamp(1.85rem, 3.2vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-style1 .hero-subtext-wrap {
    max-width: 480px;
    padding-bottom: 2px;
}

.hero-style1 .hero-tagline {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero-style1 .hero-subtext {
    font-size: clamp(0.9rem, 1.05vw, 1.02rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero-style1 .lg-text {
    font-size: clamp(2.2rem, 5.5vw, 4.8rem) !important;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    user-select: none;
    pointer-events: none;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.6);
    margin-left: -0.03em;
}

@media (max-width: 991px) {
    /* En mobile usamos la imagen del integrante via JS */
    .hero-style1 {
        background-position: center 10% !important;
        position: relative;
    }

    /* Gradiente más suave y profesional para legibilidad */
    .hero-style1:before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.0) 18%,
            rgba(0, 0, 0, 0.08) 35%,
            rgba(10, 10, 12, 0.55) 50%,
            rgba(10, 10, 12, 0.88) 65%,
            rgba(10, 10, 12, 0.97) 80%,
            rgba(10, 10, 12, 1) 100%
        ) !important;
        z-index: 2;
    }

    /* El texto arranca a la mitad de pantalla */
    .hero-style1 .container,
    .hero-style1 .hero-container {
        min-height: 100svh;
        padding-top: 46svh !important;
        padding-bottom: 35px !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
        justify-content: flex-start !important;
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
    }

    .hero-style1 .hero-bottom-content {
        margin-top: 0;
        padding-bottom: 0;
        width: 100%;
    }

    /* Ocultar badge y línea divisoria */
    .hero-style1 .hero-badge {
        display: none !important;
    }

    .hero-style1 .hero-bottom-content .border-top {
        border-top: none !important;
        padding-top: 8px !important;
    }

    .hero-style1 .hero-bottom-content > .row:first-child {
        margin-bottom: 6px !important;
    }

    .hero-style1 .hero-bottom-content > .row:last-child {
        margin-top: 0 !important;
    }

    /* Título principal "Tres generaciones proyectando el futuro." */
    .hero-style1 .hero-title {
        font-size: clamp(1.5rem, 6.2vw, 1.9rem) !important;
        line-height: 1.22 !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.92) !important;
        margin-bottom: 0 !important;
        letter-spacing: -0.01em;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    /* "Estudio Cane" — nombre de marca, lo más grande */
    .hero-style1 .lg-text {
        font-size: clamp(3rem, 12vw, 3.8rem) !important;
        font-weight: 800 !important;
        line-height: 0.9 !important;
        margin-bottom: 0 !important;
        margin-top: 6px !important;
        letter-spacing: -0.04em;
        color: #ffffff !important;
        text-shadow: 0 3px 25px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.7);
    }

    .hero-style1 .hero-subtext-wrap {
        margin-top: 10px !important;
        max-width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* "Escuchar. Entender. Diseñar." */
    .hero-style1 .hero-tagline {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        margin-bottom: 4px !important;
        letter-spacing: 0.3px;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
    }

    /* Descripción secundaria */
    .hero-style1 .hero-subtext {
        font-size: 13px !important;
        line-height: 1.5 !important;
        color: rgba(255, 255, 255, 0.78) !important;
        margin-bottom: 0 !important;
        font-weight: 300 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    }
}

/* ==================== Canvas Hero ==================== */
.hero-canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 1;
}

/* ==================== Metodología: Muestras Inclinadas sin Fondo ni Nombres ==================== */
.fase-tilted-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 160px;
    padding: 20px 10px 25px;
    margin-top: 15px;
    margin-bottom: 25px;
    background: transparent !important;
    overflow: visible;
    content-visibility: auto;
    contain-intrinsic-size: 160px;
}

.fase-tilted-showcase .tilted-item {
    position: relative;
    flex: 0 0 calc(25% + 10px);
    max-width: 130px;
    margin-left: -14px;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    border: 2px solid #ffffff;
    cursor: default;
    user-select: none;
    transform: translateZ(0);
}

.fase-tilted-showcase .tilted-item:first-child {
    margin-left: 0;
}

.fase-tilted-showcase .tilted-item img {
    width: 100% !important;
    height: 100px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    backface-visibility: hidden;
}

/* Inclinaciones y profundidades estáticas que replican el diseño en abanico */
.fase-tilted-showcase .tilted-1 {
    transform: rotate(-3deg) translateY(4px) translateZ(0);
    z-index: 1;
}

.fase-tilted-showcase .tilted-2 {
    transform: rotate(-7deg) translateY(-6px) translateZ(0);
    z-index: 2;
}

.fase-tilted-showcase .tilted-3 {
    transform: rotate(22deg) translateY(2px) scale(0.98) translateZ(0);
    z-index: 3;
}

.fase-tilted-showcase .tilted-4 {
    transform: rotate(14deg) translateY(-2px) translateZ(0);
    z-index: 4;
}

@media (max-width: 767px) {
    .fase-tilted-showcase {
        min-height: 130px;
        padding: 12px 5px 18px;
    }

    .fase-tilted-showcase .tilted-item {
        max-width: 85px;
        margin-left: -10px;
    }

    .fase-tilted-showcase .tilted-item img {
        height: 70px !important;
    }
}



