/* ==========================================================================
       PÁGINA SOBRE NOSOTROS: ESTILOS Y SISTEMA DE DISEÑO (IDÉNTICO A HOME)
       ========================================================================== */
    .hover-lift {
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    }

    .hover-lift:hover {
        transform: translateY(-5px);
    }

    .bg-grid-technical {
        background-size: 32px 32px;
        background-image:
            linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    }

    /* Reglas para Modo Oscuro y Alto Contraste */
    [data-theme="dark"] .theme-pillar-card {
        background-color: #1A1E24 !important;
        border-color: #2D3540 !important;
    }

    /* Alto Contraste (WCAG AAA) */
    [data-theme="contrast"] section {
        background-color: #000000 !important;
        border-color: #FFC107 !important;
    }

    [data-theme="contrast"] .theme-pillar-card {
        background-color: #000000 !important;
        border: 2px solid #FFC107 !important;
        color: #ffffff !important;
    }

    [data-theme="contrast"] h1,
    [data-theme="contrast"] h2,
    [data-theme="contrast"] h3 {
        color: #FFC107 !important;
    }

    [data-theme="contrast"] p,
    [data-theme="contrast"] li,
    [data-theme="contrast"] span:not(.text-brand-yellow):not(.floating-subtitle) {
        color: #ffffff !important;
    }

    [data-theme="contrast"] .text-brand-yellow {
        color: #FFC107 !important;
    }

    [data-theme="contrast"] #btn-ver-certificado {
        background-color: #FFC107 !important;
        color: #000000 !important;
        border: 2px solid #FFC107 !important;
        font-weight: 800 !important;
    }

    [data-theme="contrast"] #btn-ver-certificado * {
        color: #000000 !important;
    }

    [data-theme="contrast"] #btn-ver-certificado:hover {
        background-color: #000000 !important;
        color: #FFC107 !important;
    }

    [data-theme="contrast"] #btn-ver-certificado:hover * {
        color: #FFC107 !important;
    }

    /* ==========================================================================
       VISOR INMERSIVO TRASLÚCIDO (GLASSMORPHISM CON FONDO TRANSPARENTE)
       ========================================================================== */
    .modal-backdrop.show {
        background-color: rgba(15, 23, 42, 0.45) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        opacity: 1 !important;
    }

    .immersive-modal .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
        height: 100vh;
        height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .immersive-modal .modal-content {
        background: transparent !important;
        border: none;
        border-radius: 0;
        height: 100vh;
        height: 100dvh;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .floating-top-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 28px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
        z-index: 10;
        pointer-events: auto;
    }

    .floating-title-group {
        display: flex;
        flex-direction: column;
    }

    .floating-title {
        color: #ffffff;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        margin: 0;
    }

    .floating-subtitle {
        color: #ffc107;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        margin-top: 2px;
    }

    .floating-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .floating-close-btn:hover {
        background: #ffc107;
        color: #1e232a;
        transform: scale(1.08);
    }

    .immersive-stage {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        overflow: hidden;
        position: relative;
        padding: 60px 20px 60px 20px;
    }

    .immersive-viewport {
        position: relative;
        max-width: 100%;
        max-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
    }

    .immersive-main-img {
        max-height: 82vh;
        max-width: 90vw;
        width: auto;
        height: auto;
        object-fit: contain;
        transform-origin: center center;
        cursor: zoom-in;
        border-radius: 6px;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }

    .floating-zoom-tools {
        position: absolute;
        bottom: 24px;
        right: 24px;
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(22, 22, 22, 0.88);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 6px 10px;
        border-radius: 8px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
        z-index: 10;
    }

    .zoom-tool-btn {
        width: 34px;
        height: 34px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.18s ease;
    }

    .zoom-tool-btn:hover {
        background: #ffc107;
        color: #1e232a;
        border-color: #ffc107;
        transform: scale(1.08);
    }

    .zoom-level-text {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
        min-width: 44px;
        text-align: center;
        user-select: none;
    }

    @media (max-width: 768px) {
        .floating-top-bar {
            padding: 10px 14px;
        }

        .floating-title {
            font-size: 12px;
        }

        .floating-subtitle {
            font-size: 10.5px;
        }

        .floating-close-btn {
            width: 32px;
            height: 32px;
        }

        .immersive-stage {
            padding: 50px 10px 50px 10px;
        }

        .immersive-main-img {
            max-height: 75vh;
            max-width: 95vw;
        }

        .floating-zoom-tools {
            bottom: 12px;
            right: 50%;
            transform: translateX(50%);
            padding: 4px 8px;
            gap: 4px;
        }

        .zoom-tool-btn {
            width: 30px;
            height: 30px;
        }
    }
