/* ==========================================================================
   Estudio Cane - Custom Global Styles (custom.css)
   Componentes Compartidos: Modales, Botones de Alto Contraste, Acordeón y Avatares
   ========================================================================== */

/* ==========================================================================
   Tipografía Global: Century Gothic
   ========================================================================== */
body,
body.home-main,
body.home-agency,
body.home-creative-agency,
body.home-digital-agency,
body.showcase-v-infinity,
body.showcase-slider-cg {
    font-family: "Century Gothic", CenturyGothic, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .lg-text, .hero-tagline,
.service-card h4, .accordion h4,
.sec-head h2 {
    font-family: "Century Gothic", CenturyGothic, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Acordeón FAQ Estado Inicial (elimina display inline en HTML) */
.accordion .accordion-info {
    display: none;
}

.accordion .accordion-item.active .accordion-info {
    display: block;
}

/* Avatares de Integrantes en Modales (elimina object-fit inline en HTML) */
.team-modal-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    margin-right: 18px;
}

.team-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modales / Popups de Alto Contraste y Scroll Aislado */
.service-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    overscroll-behavior: contain;
}

.service-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-modal-dialog {
    background: #141414 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    max-height: 86vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 35px 40px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 255, 255, 0.05);
    transform: scale(0.95) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    position: relative;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.service-modal-backdrop.is-active .service-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Reglas de texto y alto contraste dentro del modal */
.service-modal-dialog p {
    color: #f0f0f0 !important;
    opacity: 1 !important;
    font-size: 15px;
    line-height: 1.65;
}

.service-modal-dialog h3 {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.service-modal-dialog h5,
.service-modal-dialog h6 {
    color: #ffffff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.service-modal-dialog .service-subtitle {
    color: #e5e5e5 !important;
    font-size: 16px !important;
    font-style: italic;
    opacity: 1 !important;
}

.service-modal-dialog .service-tag {
    color: #ffffff !important;
    opacity: 0.85;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.service-eje-box {
    background: #181818 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 12px 35px -6px rgba(255, 255, 255, 0.09), 0 4px 14px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.service-eje-box:hover {
    box-shadow: 0 16px 42px -6px rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.service-eje-box span {
    color: #b8b8b8 !important;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.service-eje-box h6 {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

.service-step-card {
    background: #181818 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 28px -6px rgba(255, 255, 255, 0.06), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.service-step-card:hover {
    background: #1f1f1f !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 14px 36px -6px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.service-step-card .numb {
    color: #ffffff !important;
    opacity: 0.9;
    font-weight: 700;
}

.service-step-card h6 {
    color: #ffffff !important;
    font-size: 16px !important;
}

.service-step-card p {
    color: #e5e5e5 !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

.service-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-modal-close:hover {
    background: #ffffff;
    color: #000000;
    transform: rotate(90deg);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #ffffff !important;
    padding: 10px 15px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.btn-close-modal:hover {
    opacity: 1;
    text-decoration: underline;
}

.service-modal-dialog::-webkit-scrollbar {
    width: 6px;
}

.service-modal-dialog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.service-modal-dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.service-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
    .service-modal-dialog {
        padding: 25px 20px;
        max-height: 90vh;
    }
}

/* Botones Vexium de alto contraste y flecha animada */
.interactive-sec .butn-arrow,
.team-style2 .butn-arrow,
.service-modal-dialog .butn-arrow,
.btn-gallery-link {
    background: #181818 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 40px !important;
    padding: 8px 8px 8px 24px !important;
    box-shadow: 0 10px 28px -4px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.interactive-sec .butn-arrow span,
.team-style2 .butn-arrow span,
.service-modal-dialog .butn-arrow span,
.btn-gallery-link span {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: color 0.3s ease !important;
}

.interactive-sec .butn-arrow .arrow-icon,
.team-style2 .butn-arrow .arrow-icon,
.service-modal-dialog .butn-arrow .arrow-icon,
.btn-gallery-link .arrow-icon {
    background: #ffffff !important;
    border-radius: 50% !important;
    color: #111012 !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin-left: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.interactive-sec .butn-arrow .arrow-icon svg,
.team-style2 .butn-arrow .arrow-icon svg,
.service-modal-dialog .butn-arrow .arrow-icon svg,
.btn-gallery-link .arrow-icon svg {
    stroke: #111012 !important;
    width: 24px !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    transition: all 0.4s ease !important;
}

.interactive-sec .butn-arrow .arrow-icon svg:first-of-type,
.team-style2 .butn-arrow .arrow-icon svg:first-of-type,
.service-modal-dialog .butn-arrow .arrow-icon svg:first-of-type {
    transform: translateY(-40px) !important;
}

.interactive-sec .butn-arrow .arrow-icon svg:last-of-type,
.team-style2 .butn-arrow .arrow-icon svg:last-of-type,
.service-modal-dialog .butn-arrow .arrow-icon svg:last-of-type {
    transform: translateY(0) !important;
}

/* Hover de los botones */
.interactive-sec .butn-arrow:hover,
.team-style2 .butn-arrow:hover,
.service-modal-dialog .butn-arrow:hover {
    background: #242424 !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 14px 36px -4px rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.8) !important;
    transform: translateY(-2px) !important;
}

.interactive-sec .butn-arrow:hover span,
.team-style2 .butn-arrow:hover span,
.service-modal-dialog .butn-arrow:hover span {
    color: #ffffff !important;
}

.interactive-sec .butn-arrow:hover .arrow-icon svg:first-of-type,
.team-style2 .butn-arrow:hover .arrow-icon svg:first-of-type,
.service-modal-dialog .butn-arrow:hover .arrow-icon svg:first-of-type {
    transform: translateY(0) !important;
}

.interactive-sec .butn-arrow:hover .arrow-icon svg:last-of-type,
.team-style2 .butn-arrow:hover .arrow-icon svg:last-of-type,
.service-modal-dialog .butn-arrow:hover .arrow-icon svg:last-of-type {
    transform: translateY(40px) !important;
}

/* ==================== Botón Flotante de WhatsApp ==================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    background: #20ba5a;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
    color: #ffffff !important;
}

.whatsapp-float-btn .fab {
    line-height: 1;
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        bottom: 22px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* ==================== Alertas del Formulario WhatsApp ==================== */
.messages .alert {
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 25px;
    font-size: 14.5px;
    line-height: 1.5;
}

.messages .alert-success {
    background: #198754;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

.messages .alert .close {
    float: right;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    opacity: 0.85;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.messages .alert .close:hover {
    opacity: 1;
}

/* ==========================================================================
   Navegación Móvil (Navbar Responsive - Alto Contraste y Legibilidad)
   Resuelve el problema de texto oscuro/ilegible en pantallas móviles.
   ========================================================================== */
@media screen and (max-width: 991.98px) {

    /* Barra de navegación al hacer scroll */
    .navbar.nav-scroll {
        background: rgba(14, 14, 14, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    }

    /* Logo y Toggler alineados con margen equilibrado */
    .navbar .logo {
        margin-left: 20px !important;
    }

    .navbar .navbar-toggler {
        margin-right: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 8px !important;
        padding: 7px 12px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        transition: all 0.25s ease !important;
    }

    .navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.5) !important;
        outline: none !important;
    }

    .navbar .navbar-toggler .icon-bar,
    .navbar .navbar-toggler i {
        color: #ffffff !important;
        font-size: 18px !important;
    }

    /* Contenedor del dropdown colapsable */
    .navbar .navbar-collapse {
        background: #141414 !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 16px !important;
        margin: 15px 15px 10px 15px !important;
        padding: 8px 0 !important;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.04) !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    /* Reset del contenedor ul.navbar-nav para evitar cajas duplicadas */
    .navbar .navbar-nav {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .navbar .navbar-nav .nav-item {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }

    /* Enlaces del menú en móviles: fondo limpio, texto blanco puro de alto contraste */
    .navbar .navbar-nav .nav-link {
        color: #ffffff !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        letter-spacing: 1.2px !important;
        text-transform: uppercase !important;
        padding: 14px 24px !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: transparent !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Asegurar que el texto interno (span, rolling-text, letter) sea 100% visible */
    .navbar .navbar-nav .nav-link span,
    .navbar .navbar-nav .nav-link .rolling-text,
    .navbar .navbar-nav .nav-link .letter {
        color: inherit !important;
        opacity: 1 !important;
        height: auto !important;
        line-height: 1.4 !important;
        display: inline-block !important;
        transform: none !important;
        transition: color 0.25s ease !important;
    }

    /* Estado Hover y Activo */
    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link:focus,
    .navbar .navbar-nav .nav-link.active {
        color: #e53935 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        padding-left: 30px !important;
    }

    .navbar .navbar-nav .nav-link:hover span,
    .navbar .navbar-nav .nav-link:hover .rolling-text,
    .navbar .navbar-nav .nav-link.active span,
    .navbar .navbar-nav .nav-link.active .rolling-text {
        color: #e53935 !important;
    }

    /* Último ítem sin divisor */
    .navbar .navbar-nav .nav-item:last-of-type .nav-link {
        border-bottom: none !important;
    }
}

/* ==========================================================================
   Desactivar Cursor Personalizado en Móviles y Pantallas Táctiles
   Elimina círculos 'Click' indeseados sobre fotos y elementos interactivos
   ========================================================================== */
@media (max-width: 991.98px),
(hover: none),
(pointer: coarse) {

    .cursor,
    .cursor.click,
    .cursor-active {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   Redes Sociales con Mayor Presencia (Contacto y Footer)
   Aumento de tamaño, presencia visual y micro-interacciones hover
   ========================================================================== */
.social-icon-circle {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.social-icon-circle a,
.contact .social-icon-circle a,
.footer-style2 .fo-box-right .social-icon-circle a,
.footer-style2 .social-icon-circle a {
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
}

.contact .social-icon-circle a {
    border: 1.5px solid rgba(0, 0, 0, 0.16) !important;
    color: #111111 !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

.contact .social-icon-circle a:hover {
    background: #F11111 !important;
    border-color: #F11111 !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 8px 20px rgba(241, 17, 17, 0.28) !important;
}

.footer-style2 .social-icon-circle a,
.footer-style2 .fo-box-right .social-icon-circle a {
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.footer-style2 .social-icon-circle a:hover,
.footer-style2 .fo-box-right .social-icon-circle a:hover {
    background: #F11111 !important;
    border-color: #F11111 !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 8px 20px rgba(241, 17, 17, 0.38) !important;
}

.social-icon-circle a i,
.contact .social-icon-circle a i,
.footer-style2 .fo-box-right .social-icon-circle a i {
    font-size: 19px !important;
    line-height: 1 !important;
}

/* ==========================================================================
   Fotografía del Equipo en Sección Contacto (Aprovechamiento Espacial)
   ========================================================================== */
/* ==========================================================================
   Fotografía del Equipo en Encabezado de Contacto
   ========================================================================== */
.header-team-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    transition: all 0.35s ease;
}

.header-team-card:hover {
    border-color: rgba(241, 17, 17, 0.35);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.header-team-card .contact-team-img-wrapper {
    position: relative;
    width: 100%;
    height: clamp(230px, 20vw, 290px);
    border-radius: 12px;
    overflow: hidden;
    background: #111111;
}

.header-team-card .contact-team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.5s ease;
}

.header-team-card:hover .contact-team-img {
    transform: scale(1.03);
}

.header-team-card .contact-team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 12, 0.88) 100%);
}

.header-team-card .contact-team-tag {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}

.header-team-card .contact-team-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.35;
}

/* ==========================================================================
   Alineación Armónica de Bloques de Contacto (Info & Formulario)
   ========================================================================== */
.contact .info-box {
    padding: 38px 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
}

.contact .info-box .phone a {
    color: #F11111;
    font-size: clamp(20px, 1.8vw, 25px);
    font-weight: 700;
}

.contact .social-icon-circle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 48px;
}

.contact .social-icon-circle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    color: #111111;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact .social-icon-circle a:hover {
    background: #F11111;
    border-color: #F11111;
    color: #ffffff;
    transform: translateY(-2px);
}

.contact .form2 input,
.contact .form2 textarea {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 14.5px;
    color: #111111;
    transition: all 0.3s ease;
}

.contact .form2 input:focus,
.contact .form2 textarea:focus {
    border-color: #111111;
    background: #ffffff;
}

.contact .form2 textarea {
    min-height: 135px;
    resize: vertical;
}

.contact-form-submit {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==================== Mini Galería / Slider en Tarjetas de Metodología ==================== */
.fase-card-slider {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 25px;
    margin-bottom: 20px;
    background: #111111;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    user-select: none;
}

.fase-card-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.fase-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fase-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fase-card-slider:hover .fase-slide-inner img {
    transform: scale(1.05);
}

.fase-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.88) 100%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
    pointer-events: none;
}

.fase-slide-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.fase-slide-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

/* Paginación (Dots/Pills modernos) */
.fase-card-slider .fase-slider-pagination {
    position: absolute;
    bottom: 14px;
    right: 16px;
    left: auto !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.fase-card-slider .fase-slider-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    border-radius: 4px;
    margin: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fase-card-slider .fase-slider-pagination .swiper-pagination-bullet-active {
    width: 22px;
    background: #ffffff;
    border-radius: 4px;
}

/* Botón flotante para ver galería / popup */
.fase-slider-action {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(15, 15, 15, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fase-slider-action svg {
    width: 14px;
    height: 14px;
}

.fase-slider-action:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.55);
    transform: scale(1.04);
}

/* Flechas de navegación discretas */
.fase-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.fase-slider-prev,
.fase-slider-next {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.fase-slider-prev svg,
.fase-slider-next svg {
    width: 16px;
    height: 16px;
}

.fase-card-slider:hover .fase-slider-prev,
.fase-card-slider:hover .fase-slider-next {
    opacity: 0.85;
}

.fase-slider-prev:hover,
.fase-slider-next:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .fase-card-slider {
        height: 250px;
        margin-top: 20px;
        margin-bottom: 18px;
    }
    .fase-slider-prev,
    .fase-slider-next {
        opacity: 0.75;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 575px) {
    .fase-card-slider {
        height: 230px;
        border-radius: 14px;
    }
    .fase-slide-title {
        font-size: 14px;
    }
}

/* ==================== Galería Ordenada en Popups de Fases ==================== */
.fase-modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
    margin-bottom: 26px;
}

@media (max-width: 991px) {
    .fase-modal-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .fase-modal-gallery {
        grid-template-columns: 1fr;
    }
}

.fase-modal-img-card {
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.fase-modal-img-card:hover {
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
}

.fase-modal-img-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #0f0f0f;
}

.fase-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fase-modal-img-card:hover .fase-modal-img-wrap img {
    transform: scale(1.05);
}

.fase-modal-img-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
}

.fase-modal-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fase-modal-img-card:hover .fase-modal-zoom-hint {
    opacity: 1;
    transform: scale(1);
}

.fase-modal-caption {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #191919;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-grow: 1;
}

.fase-modal-caption .img-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.35;
}

.fase-modal-caption .img-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ==================== Caja de Descarga PDF en Modales ==================== */
.fase-modal-download-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 14px 35px -6px rgba(0, 0, 0, 0.6);
    margin-top: 10px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.fase-modal-download-box:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.fase-download-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 280px;
}

.fase-pdf-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(235, 50, 35, 0.15);
    border: 1px solid rgba(235, 50, 35, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5247;
    flex-shrink: 0;
}

.fase-download-text h5 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 3px;
    letter-spacing: 0.2px;
}

.fase-download-text p {
    font-size: 12.5px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0;
    line-height: 1.4;
}

.fase-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    color: #121214 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 22px !important;
    border-radius: 30px !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.fase-download-btn:hover {
    background: #e8e8e8 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.28);
}

.fase-download-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.3;
}

@media (max-width: 991px) {
    .fase-modal-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .fase-modal-gallery {
        grid-template-columns: 1fr;
    }
    .fase-modal-img-wrap {
        height: 220px;
    }
    .fase-modal-download-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .fase-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== Zoom Lightbox In-Place para Fases ==================== */
.fase-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000001; /* Mayor que el modal de fases (999999) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    overscroll-behavior: contain;
    padding: 20px;
}

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

.fase-zoom-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    z-index: 10;
}

.fase-zoom-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fase-zoom-counter {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
}

.fase-zoom-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.fase-zoom-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fase-zoom-close:hover {
    background: #ffffff;
    color: #000000;
    transform: rotate(90deg);
}

.fase-zoom-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px;
    overflow: hidden;
}

.fase-zoom-img-container {
    max-width: 90vw;
    max-height: 76vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}

.fase-zoom-img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    user-select: none;
}

.fase-zoom-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13.5px;
    margin-top: 14px;
    margin-bottom: 0;
    text-align: center;
    max-width: 650px;
    line-height: 1.45;
}

.fase-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.fase-zoom-nav:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-50%) scale(1.08);
}

.fase-zoom-prev {
    left: 15px;
}

.fase-zoom-next {
    right: 15px;
}

@media (max-width: 767px) {
    .fase-zoom-stage {
        padding: 5px;
    }
    .fase-zoom-img {
        max-height: 62vh;
    }
    .fase-zoom-title {
        font-size: 14px;
    }
    .fase-zoom-nav {
        width: 40px;
        height: 40px;
    }
    .fase-zoom-prev { left: 5px; }
    .fase-zoom-next { right: 5px; }
}

/* Fix: flechas de botones butn-arrow – el path SVG hereda el stroke del svg */
.butn-arrow .arrow-icon svg path,
.butn-arrow .arrow-icon svg polyline,
.butn-arrow .arrow-icon svg line {
    stroke: inherit;
}
/* Botón variante oscura: ícono negro con flecha BLANCA en reposo */
.butn-arrow.bg-dark .arrow-icon {
    background: #111012;
}
.butn-arrow.bg-dark .arrow-icon svg {
    stroke: #fff;
}
/* En hover: ícono blanco con flecha NEGRA */
.butn-arrow.bg-dark:hover .arrow-icon {
    background: #fff;
}
.butn-arrow.bg-dark:hover .arrow-icon svg {
    stroke: #111012;
}

/* ==========================================================================
   Slider Apilado (Card Stack) - Visualización Fluida y sin Recortes
   CSS maneja el centrado, GSAP maneja offset Y en px y profundidad Z
   ========================================================================== */
.work-style1 .slider-wrapper {
    position: relative;
    width: 100vw;
    height: 680px;
    overflow: hidden;
    margin: 0 auto;
}

.work-style1 .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    perspective: 420px;
    perspective-origin: 50% 50%;
    cursor: pointer;
}

/* CSS centra las tarjetas; GSAP agrega translateY(px) y translateZ encima */
.work-style1 .slider .card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(340px, 56vw, 760px);
    height: clamp(260px, 38vw, 490px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.48), 0 4px 16px rgba(0, 0, 0, 0.25);
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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