/* --- ESTILOS BASE COMPONENTE HOLOGRAFICO --- */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Centrado en el contenedor padre */
}

/* --- ESPACIO RESERVADO PARA IMAGEN CENTRAL --- */
.robot-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 380px; 
    height: 380px;
    pointer-events: none; 
    border: 2px dashed rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.05);
    border-radius: 20px;
}

/* --- GRID DE PANELES --- */
.contenedor-paneles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 160px; 
    padding: 20px;
    align-items: center; 
    justify-items: center; 
    position: relative;
    z-index: 10;
}

/* --- ESTILO INDIVIDUAL DE LOS PANELES (GLASSMORPHISM) --- */
.panel {
    width: 320px;
    height: 200px;
    background: rgba(10, 15, 22, 0.45); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 240, 255, 0.4);
    border-radius: 15px; 
    box-shadow: 
        0 0 15px rgba(0, 240, 255, 0.15), 
        inset 0 0 15px rgba(0, 240, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    padding: 18px;
    box-sizing: border-box;
}

.panel:hover, .panel.activo {
    border-color: rgba(0, 240, 255, 0.9);
    background: rgba(10, 15, 22, 0.65);
    box-shadow: 
        0 0 25px rgba(0, 240, 255, 0.6), 
        inset 0 0 20px rgba(0, 240, 255, 0.4);
    z-index: 20; 
}

/* --- ESPACIO PARA TUS IMÁGENES EN PANELES --- */
.panel-contenido {
    flex-grow: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 240, 255, 0.15);
    width: 100%;
    height: 100%;
}

/* --- TAMAÑOS, ÁNGULOS Y POSICIONES 3D --- */
.panel:nth-child(1) {
    top: 25px;
    left: 25px;
    transform: perspective(1000px) rotateX(15deg) rotateY(15deg);
}

.panel:nth-child(2) {
    transform: perspective(1000px) rotateX(15deg) rotateY(-15deg);
}

.panel:nth-child(3) {
    top: -25px;
    left: -25px;
    transform: perspective(1000px) rotateX(15deg) rotateY(15deg);
}

.panel:nth-child(4) {
    width: 256px;  
    height: 160px; 
    top: -55px; 
    transform: perspective(1000px) rotateX(15deg) rotateY(-15deg);
}

.panel:nth-child(1).activo, .panel:nth-child(3).activo,
.panel:nth-child(1):hover, .panel:nth-child(3):hover {
    transform: perspective(1000px) rotateX(15deg) rotateY(15deg) scale(1.05);
}

.panel:nth-child(2).activo, .panel:nth-child(4).activo,
.panel:nth-child(2):hover, .panel:nth-child(4):hover {
    transform: perspective(1000px) rotateX(15deg) rotateY(-15deg) scale(1.05);
}




/* =========================================================
   CONTENIDO INTERNO DE PANELES HOLOGRÁFICOS
   Integrado desde prueba.html
========================================================= */

/* Cabecera de cada panel */
.contenedor-paneles .codigo-header {
    width: 100%;
    background: rgba(0, 216, 216, 0.10);
    padding: 10px 15px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-bottom: 1px solid rgba(0, 216, 216, 0.20);
}

.contenedor-paneles .codigo-header .icono {
    color: var(--turq-1);
    font-weight: bold;
    font-size: 14px;

    text-shadow: 0 0 8px var(--trans-1);
}

.contenedor-paneles .codigo-header .titulo {
    color: var(--text-1);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
}


/* =========================================================
   PANEL CÓDIGO
========================================================= */

.contenedor-paneles .codigo-body {
    padding: 15px;

    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;

    color: var(--text-2);
    flex-grow: 1;
}

.contenedor-paneles .kw {
    color: #ff4f7b;
}

.contenedor-paneles .fn {
    color: var(--turq-1);
}

.contenedor-paneles .st {
    color: #f0e68c;
}

.contenedor-paneles .cm {
    color: var(--text-3);
    font-style: italic;
}

.contenedor-paneles .indent {
    margin-left: 15px;
}

.contenedor-paneles .linea-animada {
    overflow: hidden;
    white-space: nowrap;

    border-right: 2px solid var(--turq-1);

    width: 0;

    animation:
        holo-typing 2s steps(40, end) 1s forwards,
        holo-blink 0.75s step-end infinite;
}

@keyframes holo-typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
        border-right-color: transparent;
    }
}

@keyframes holo-blink {
    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--turq-1);
    }
}


/* =========================================================
   PANEL IMPRESIÓN 3D
========================================================= */

.contenedor-paneles .panel-impresion {
    background: rgba(4, 10, 15, 0.68);
}

.contenedor-paneles .escena-3d {
    flex-grow: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    perspective: 800px;

    overflow: hidden;
    position: relative;
}

.contenedor-paneles .cubo {
    width: 60px;
    height: 60px;

    position: relative;

    transform-style: preserve-3d;

    animation: holo-cubo-rotacion 8s infinite linear;
}

.contenedor-paneles .cara {
    position: absolute;

    width: 60px;
    height: 60px;

    border: 1px solid var(--turq-1);

    background: rgba(0, 216, 216, 0.10);

    box-shadow:
        inset 0 0 15px var(--trans-1),
        0 0 8px rgba(0, 216, 216, 0.15);
}

.contenedor-paneles .cara::before {
    content: '';

    display: block;

    width: 100%;
    height: 100%;

    background-image:
        linear-gradient(
            rgba(0, 216, 216, 0.35) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 216, 216, 0.35) 1px,
            transparent 1px
        );

    background-size: 10px 10px;
}

.contenedor-paneles .frente {
    transform: translateZ(30px);
}

.contenedor-paneles .atras {
    transform: rotateY(180deg) translateZ(30px);
}

.contenedor-paneles .derecha {
    transform: rotateY(90deg) translateZ(30px);
}

.contenedor-paneles .izq {
    transform: rotateY(-90deg) translateZ(30px);
}

.contenedor-paneles .arriba {
    transform: rotateX(90deg) translateZ(30px);
}

.contenedor-paneles .abajo {
    transform: rotateX(-90deg) translateZ(30px);
}

@keyframes holo-cubo-rotacion {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* Datos del panel 3D */
.contenedor-paneles .datos-impresion {
    width: 100%;

    padding: 8px 12px;

    font-size: 10px;
    color: var(--text-2);

    border-top: 1px solid rgba(0, 216, 216, 0.20);

    background: rgba(0, 0, 0, 0.30);
}

.contenedor-paneles .dato-fila {
    display: flex;
    justify-content: space-between;

    gap: 10px;
    margin-bottom: 3px;
}

.contenedor-paneles .dato-fila span:last-child {
    color: var(--turq-1);
    font-family: 'Courier New', Courier, monospace;
}


/* Barra de progreso */
.contenedor-paneles .barra-progreso {
    height: 4px;

    background: rgba(255, 255, 255, 0.10);

    border-radius: 2px;

    margin-top: 7px;

    overflow: hidden;
}

.contenedor-paneles .barra-llena {
    height: 100%;
    width: 0%;

    background: var(--turq-1);

    box-shadow: 0 0 10px var(--turq-1);

    animation: holo-carga 4s infinite ease-in-out;
}

@keyframes holo-carga {
    0% {
        width: 0%;
    }

    50% {
        width: 78%;
    }

    100% {
        width: 0%;
    }
}


/* =========================================================
   MOCKUPS WEB / VECTORIAL
========================================================= */

.contenedor-paneles .mockup-generico {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    height: 100%;
    width: 100%;

    color: rgba(0, 216, 216, 0.65);

    font-size: 11px;
    letter-spacing: 1px;

    text-align: center;
}


/* =========================================================
   AJUSTE LEONHART — CONTENER SVG DENTRO DEL PANEL
========================================================= */

.contenedor-paneles .mockup-web {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.contenedor-paneles .leonhart-svg-preview {
    position: relative;

    flex: 1;
    width: 100%;
    min-height: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden !important;

    padding: 4px 12px;
}

.contenedor-paneles .leonhart-svg-preview img {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 72% !important;
    max-height: 125px !important;

    object-fit: contain;

    opacity: 0.92;

    filter:
        drop-shadow(0 0 6px rgba(0, 216, 216, 0.40));
}

.contenedor-paneles .panel:hover .leonhart-svg-preview img {
    transform: scale(1.04);

    filter:
        drop-shadow(0 0 10px rgba(0, 216, 216, 0.65));
}


/* =========================================================
   LEONHART — ESCALA FINAL DENTRO DE DISEÑO WEB
========================================================= */

.contenedor-paneles .mockup-web {
    overflow: hidden !important;
}

.contenedor-paneles .leonhart-svg-preview {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden !important;
}

.contenedor-paneles .leonhart-svg-preview img {
    width: 150px !important;
    height: 115px !important;

    max-width: 150px !important;
    max-height: 115px !important;

    object-fit: contain !important;

    transform: none !important;

    opacity: 0.92;

    filter:
        drop-shadow(0 0 6px rgba(0, 216, 216, 0.45));
}

.contenedor-paneles .panel:hover .leonhart-svg-preview img {
    transform: scale(1.04) !important;
}


/* =========================================================
   LEONHART — UI LIMPIA / CONTENIDO CONFINADO
========================================================= */

/* Solo el Panel 2 */
.contenedor-paneles .panel:nth-child(2) {
    overflow: hidden;
}

.contenedor-paneles .panel:nth-child(2) .panel-contenido {
    overflow: hidden !important;
}

/* Área disponible debajo del encabezado */
.contenedor-paneles .leonhart-svg-preview {
    position: relative;

    flex: 1;
    min-height: 0;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden !important;

    padding: 8px 14px;
    box-sizing: border-box;
}

/* LeonHart completamente dentro de la pantalla */
.contenedor-paneles .leonhart-svg-preview img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 190px !important;
    max-height: 115px !important;

    object-fit: contain !important;
    object-position: center !important;

    transform: scale(0.72) !important;
    transform-origin: center center !important;

    opacity: 0.95;

    filter:
        drop-shadow(0 0 5px rgba(0, 216, 216, 0.40));

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

/* Hover muy discreto: no debe salirse */
.contenedor-paneles .panel:nth-child(2):hover
.leonhart-svg-preview img {

    transform: scale(0.76) !important;

    filter:
        drop-shadow(0 0 8px rgba(0, 216, 216, 0.60));
}


/* =========================================================
   MODAL HOLOGRÁFICO — LEONHART
========================================================= */

/* Si tiene hidden, desaparece completamente */
.project-modal[hidden] {
    display: none !important;
}


/* Contenedor general */
.project-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    box-sizing: border-box;
}


/* Fondo oscuro */
.project-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(1, 8, 14, 0.82);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* Ventana principal */
.project-modal-content {
    position: relative;

    z-index: 2;

    width: min(620px, 92vw);

    padding: 34px;

    border: 1px solid var(--turq-1);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 30, 43, 0.97),
            rgba(3, 20, 31, 0.96)
        );

    box-shadow:
        0 0 35px rgba(0, 216, 216, 0.25),
        inset 0 0 25px rgba(0, 216, 216, 0.08);

    color: var(--text-1);

    overflow: hidden;

    animation: leonhartModalIn 0.28s ease-out;
}


/* Línea holográfica superior */
.project-modal-content::before {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;
    right: 8%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--turq-1),
            transparent
        );

    box-shadow:
        0 0 12px var(--turq-1);
}


/* Botón cerrar */
.project-modal-close {
    position: absolute;

    top: 14px;
    right: 18px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(0, 216, 216, 0.35);
    border-radius: 50%;

    background: rgba(3, 20, 31, 0.8);

    color: var(--turq-1);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.project-modal-close:hover {
    background: rgba(0, 216, 216, 0.12);
    border-color: var(--turq-1);

    transform: rotate(90deg);
}


/* =========================================================
   CABECERA DEL PROYECTO
========================================================= */

.project-modal-brand {
    display: flex;
    align-items: center;

    gap: 22px;

    padding-right: 45px;
    margin-bottom: 24px;
}


/* IMPORTANTE:
   limita el SVG para que no vuelva a convertirse en Godzilla
*/
.project-modal-brand img {
    width: 115px !important;
    height: 115px !important;

    max-width: 115px !important;
    max-height: 115px !important;

    object-fit: contain;

    flex-shrink: 0;

    filter:
        drop-shadow(
            0 0 10px rgba(0, 216, 216, 0.45)
        );
}


.project-modal-label {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--turq-1);

    font-family: var(--font-orbitron);
    font-size: 0.68rem;

    letter-spacing: 2px;
}


.project-modal-brand h3 {
    margin: 0;

    color: var(--text-1);

    font-family: var(--font-orbitron);
    font-size: 2rem;
    font-weight: 600;

    text-shadow:
        0 0 12px rgba(0, 216, 216, 0.18);
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.project-modal-description {
    margin: 0 0 24px;

    max-width: 540px;

    color: var(--text-2);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================================================
   ETIQUETAS DE TECNOLOGÍA
========================================================= */

.project-modal-tech {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 28px;
}


.project-modal-tech span {
    padding: 7px 11px;

    border: 1px solid rgba(0, 216, 216, 0.28);
    border-radius: 6px;

    background: rgba(0, 216, 216, 0.07);

    color: var(--turq-2);

    font-family: var(--font-orbitron);
    font-size: 0.65rem;

    letter-spacing: 0.8px;
}


/* =========================================================
   BOTÓN VISITAR
========================================================= */

.project-modal-visit {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border: 1px solid var(--turq-1);
    border-radius: 8px;

    background: var(--turq-1);

    color: var(--bg-1);

    font-family: var(--font-orbitron);
    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.5px;

    text-decoration: none;

    box-shadow:
        0 0 18px rgba(0, 216, 216, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.project-modal-visit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 25px rgba(0, 216, 216, 0.38);
}


/* =========================================================
   ANIMACIÓN DE ENTRADA
========================================================= */

@keyframes leonhartModalIn {

    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


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

@media (max-width: 600px) {

    .project-modal {
        padding: 18px;
    }

    .project-modal-content {
        width: 100%;
        padding: 28px 22px;
    }

    .project-modal-brand {
        gap: 15px;
    }

    .project-modal-brand img {
        width: 82px !important;
        height: 82px !important;

        max-width: 82px !important;
        max-height: 82px !important;
    }

    .project-modal-brand h3 {
        font-size: 1.5rem;
    }

}


/* =========================================================
   LEONHART — ENLACE DIRECTO INFERIOR
========================================================= */

.contenedor-paneles .leonhart-project-link {
    min-height: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 5px 10px;

    border-top: 1px solid rgba(0, 216, 216, 0.20);

    background: rgba(3, 20, 31, 0.72);

    color: var(--turq-1);

    font-family: 'Courier New', monospace;
    font-size: 7px;
    letter-spacing: 1px;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.contenedor-paneles .leonhart-project-link:hover {
    background: rgba(0, 216, 216, 0.10);

    color: var(--turq-2);

    box-shadow:
        inset 0 0 10px rgba(0, 216, 216, 0.10);
}

.contenedor-paneles .project-link-arrow {
    font-size: 10px;

    transition:
        transform 0.25s ease;
}

.contenedor-paneles .leonhart-project-link:hover
.project-link-arrow {
    transform: translate(2px, -2px);
}


/* =========================================================
   LEONHART — CORRECCIÓN FRANJA INFERIOR
========================================================= */

.contenedor-paneles .mockup-web {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Header no cambia de tamaño */
.contenedor-paneles .mockup-web .codigo-header {
    flex: 0 0 auto;
}

/* Zona clicable del logo ocupa el espacio disponible */
.contenedor-paneles .leonhart-preview-btn {
    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 0;
    margin: 0;

    border: 0;
    outline: 0;

    background: transparent;

    cursor: pointer;

    overflow: hidden;
}

/* El SVG se mantiene centrado */
.contenedor-paneles .leonhart-preview-btn
.leonhart-svg-preview {
    flex: 1;

    width: 100%;
    height: 100%;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* La franja siempre queda visible abajo */
.contenedor-paneles .leonhart-project-link {
    flex: 0 0 24px;

    width: 100%;
    height: 24px;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    padding: 0 10px;

    box-sizing: border-box;

    border-top: 1px solid rgba(0, 216, 216, 0.30);

    background: rgba(3, 20, 31, 0.92);

    color: var(--turq-1);

    font-family: 'Courier New', monospace;
    font-size: 7px;
    letter-spacing: 1px;

    text-decoration: none;

    position: relative;
    z-index: 20;
}

.contenedor-paneles .leonhart-project-link:hover {
    background: rgba(0, 216, 216, 0.12);
    color: var(--turq-2);
}


/* =========================================================
   BOYSENG — PREVIEW
========================================================= */

.contenedor-paneles .boyseng-preview-btn {
    flex: 1;
    width: 100%;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    outline: 0;

    background: transparent;

    cursor: pointer;
}

.contenedor-paneles .boyseng-svg-preview {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.contenedor-paneles .boyseng-svg-preview img {
    width: 145px;
    height: 125px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 7px rgba(0, 216, 216, 0.45));

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.contenedor-paneles .boyseng-preview-btn:hover img {
    transform: scale(1.05);

    filter:
        drop-shadow(0 0 12px rgba(0, 216, 216, 0.70));
}


/* =========================================================
   BOYSENG — DATOS DEL MODAL
========================================================= */

.boyseng-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px 18px;

    margin-top: 5px;

    color: var(--text-2);

    font-size: 0.82rem;
}

.boyseng-features span {
    padding: 8px 0;

    border-bottom:
        1px solid rgba(0, 216, 216, 0.12);
}

@media (max-width: 600px) {

    .boyseng-features {
        grid-template-columns: 1fr;
    }

}

