* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Fundamental para que el padding no sume tamaño */
}

.contenedor-img {
    width: 150px;       /* Sigue el ritmo decimal del Grid */
    overflow: hidden;  /* Recorta cualquier decimal sobrante */
    object-fit: cover; /* Mantiene la proporción perfecta sin deformar */
    display: block;
    margin: 0 auto;
    
}

.contenedor-img img {
    width: 100%;       /* ¡Truco clave! Al ser ligeramente superior al 100%, Edge usa píxeles reales completos */
    height: 100%;
    
}

.html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
    height: 100%;
    width: 100%;
    padding: 0;
    
}

h1{
    margin: 0;
    margin-bottom: 5px;
}

p{
    margin: 0;
    
}



.margenTexto{
    margin-top: 10px;
}

.textos{
    font-size: 17px;
}

.centrado{
    text-align: center;
}

.tituloCentrado {
    margin: 0 auto;
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    color: #D4AF37; /* Color dorado: #D4AF37 y el azul claro: #1E90FF */
    font-size: 18px;
}

.textIzquierda{
    text-align: left;
}

.fotoPerfil {
    width: 150px;   /*ajusta el tamaño */
    height: 150px;   /*asegúrate que sea cuadrado */
    object-fit: cover;   /*recorta la imagen para que no se deforme */
    border-radius: 50%;   /*esto la hace circular  */
    border: 3px solid #1E90FF;  /*opcional: borde estilo LinkedIn, Color azul rey: #002366 y claro: #1E90FF */
    display: block;
    margin: 0 auto;
}

    .imagenContactos {
        width: 32px;
        height: 32px;
        object-fit: cover;
        margin: 0 5px 0 10px;
    }

    .achievements {
        width: 32px;
        height: 32px;
        margin: 0 5px 0 10px;
        border-radius: 50%;
        object-fit: cover;
        object-position: 50% 15%;
    }

    .alinearImagenTexto {
        display: flex;
        align-items: center;
    }

    .asterisco {
        color: #1E90FF; /* Azul Marino (Navy) #000080 */
        font-size: 28px;
        font-weight: 500;
        content: "\2733";
    }

    .centradoTextoElementos {
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .bubbleCentrado {
        text-align: center;
        margin: 0 auto;
    }

    .bubble div {
        background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9) 0%, /* brillo fuerte */
        rgba(255,255,255,0.1) 20%, /* transición */
        rgba(0,0,0,0.15) 100%); /* sombra interna */
        box-shadow: inset -10px -10px 20px rgba(0,0,0,0.25), /* sombra interna */
        5px 5px 15px rgba(0,0,0,0.3); /* sombra externa */
        border-radius: 100%;
        animation: rise infinite ease-in;
        position: absolute;
        bottom: -100px; /* empiezan fuera de pantalla */
    }
        /* diferentes posiciones iniciales */
        .bubble div:nth-child(1) {
            left: 15%;
            width: 16px;
            height: 16px;
            animation-duration: 13s;
            animation-delay: 0.5s;
        }

        .bubble div:nth-child(2) {
            left: 45%;
            width: 16px;
            height: 16px;
            animation-duration: 17.5s;
            animation-delay: 2.5s;
        }

        .bubble div:nth-child(3) {
            left: 75%;
            width: 16px;
            height: 16px;
            animation-duration: 15s;
            animation-delay: 3s;
        }

        .bubble div:nth-child(4) {
            left: 60%;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9) 0%, /* brillo fuerte */
            rgba(255,255,255,0.1) 20%, /* transición */
            rgba(0,0,0,0.15) 100%); /* sombra interna */
            box-shadow: inset -10px -10px 20px rgba(0,0,0,0.25), /* sombra interna */
            5px 5px 15px rgba(0,0,0,0.3); /* sombra externa */
            animation-duration: 12.2s;
            animation-delay: 1s;
        }

        .bubble div:nth-child(5) {
            left: 20%;
            width: 16px;
            height: 16px;
            animation-duration: 18.5s;
            animation-delay: 1.5s;
        }

        .bubble div:nth-child(6) {
            left: 50%;
            width: 16px;
            height: 16px;
            animation-duration: 20.5s;
            animation-delay: 3s;
        }

        .bubble div:nth-child(7) {
            left: 80%;
            width: 16px;
            height: 16px;
            animation-duration: 18.2s;
            animation-delay: 2.5s;
        }

        .bubble div:nth-child(8) {
            left: 8%;
            width: 16px;
            height: 16px;
            animation-duration: 12.5s;
            animation-delay: 2s;
        }

        .bubble div:nth-child(9) {
            left: 89%;
            width: 16px;
            height: 16px;
            animation-duration: 18.5s;
            animation-delay: 1s;
        }

        .bubble div:nth-child(10) {
            left: 95%;
            width: 16px;
            height: 16px;
            animation-duration: 10.8s;
            animation-delay: 2s;
        }

        .bubble div:nth-child(11) {
            left: 4%;
            width: 16px;
            height: 16px;
            animation-duration: 11s;
            animation-delay: 1s;
        }

        .bubble div:nth-child(12) {
            left: 25%;
            width: 16px;
            height: 16px;
            animation-duration: 15.8s;
            animation-delay: 2s;
        }

        .bubble div:nth-child(13) {
            left: 55%;
            width: 16px;
            height: 16px;
            animation-duration: 16.5s;
            animation-delay: 1.5s;
        }

        .bubble div:nth-child(14) {
            left: 40%;
            width: 16px;
            height: 16px;
            animation-duration: 11.1s;
            animation-delay: 3s;
        }

        .bubble div:nth-child(15) {
            left: 65%;
            width: 16px;
            height: 16px;
            animation-duration: 19.5s;
            animation-delay: 4s;
        }
    /* animación */
    @keyframes rise {
        0% {
            transform: translateY(0); /* justo debajo del borde inferior */
        }

        100% {
            transform: translateY(-130vh); /* sube más allá del borde superior */
        }
    }


    .titulo {
        font-size: 3rem; /* más grande que h1 */
        font-weight: bold;
        text-align: center; /* centrado horizontal */
        width: 100%; /* ocupa todo el ancho */
        margin-bottom: 15px; /* espacio debajo */
    }

    .tituloDos {
        font-size: 2rem; /* más grande que h1 */
        font-weight: bold;
        text-align: left; /* centrado horizontal */
        padding-left: 35px;
        width: 100%; /* ocupa todo el ancho */
        margin-bottom: 10px; /* espacio debajo */
        color: forestgreen;
    }

    .container {
        height: 100%;
        display: grid;
        grid-template-columns: 2fr 5fr; /* dos columnas iguales */
        gap: 0; /* elimina espacio extra */
        margin: auto; /* centra vertical y horizontal */
    }

    .izquierda {
        position: relative;
        background: linear-gradient( to right, #0d0d1a 0%, #141426 40%, #1f1f33 70%, #0d0d1a 100% ), linear-gradient( to bottom, #0d0d1a 0%, #141426 50%, #1f1f33 100% );
        background-blend-mode: soft-light;
        color: #f5f5f5; /* texto claro para contraste */
        font-family: 'Arial', sans-serif;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1;
        padding-bottom: 20px;
    }

        .izquierda:hover {
            /* 1. Acercamiento físico */
            transform: scale(1.005);
            /* 2. Iluminación: sube el brillo y la saturación */
            filter: brightness(1.0) contrast(1.1);
            /* 3. Sombra profunda: crea la ilusión de despegarse del fondo */
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            /* 4. Prioridad visual */
            z-index: 20;
        }

    .derecha {
        margin: 0;
        flex-direction: column; /* bloques en fila horizontal */
        overflow-y: scroll; /* scroll horizontal */
        height: 100vh;
        width: 100%;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        position: relative;
        
    }


    .block {
        margin: 0;
        width: 100%; /* ancho completo de la pantalla */
        height: 100%;
        display: block;
        scroll-snap-align: start; /* se mueve como si fuera una diapositiva de PP. */
        
        background: repeating-linear-gradient( 45deg, #152238 0px, #152238 10px, #1e3350 10px, #1e3350 20px ), repeating-linear-gradient( -45deg, #152238 0px, #152238 10px, #3a506b 10px, #3a506b 20px ), repeating-linear-gradient( 90deg, #152238 0px, #152238 15px, #1e3350 15px, #1e3350 30px );
        background-blend-mode: multiply; /* mezcla los gradientes */
        color: #f5f5f5;
        font-family: 'Segoe UI', Arial, sans-serif;
    }

    .recuadroPadre {
        position: relative;
        max-width: 1366px;
        max-height: 768px;
    }

    .recuadro {
        width: 150px;
        height: 80px;
        background: rgba(255,255,255,0.05);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        border-radius: 8px;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.01);
        position: absolute;
        top: 60px;
        right: 0px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1;
        transform-origin: center;
    }


    .recuadroDos {
        width: 150px;
        height: 80px;
        background: rgba(255,255,255,0.05);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        cursor: pointer;
        border-radius: 8px;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.01);
        position: absolute;
        top: 210px;
        right: 0px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1;
        transform-origin: center;
    }

    .recuadroTres {
        width: 150px;
        height: 80px;
        background: rgba(255,255,255,0.05);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        cursor: pointer;
        border-radius: 8px;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.01);
        position: absolute;
        top: 360px;
        right: 0px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1;
        transform-origin: center;
    }

    .recuadroCuatro {
        width: 150px;
        height: 80px;
        background: rgba(255,255,255,0.05);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        cursor: pointer;
        border-radius: 8px;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.01);
        position: absolute;
        top: 510px;
        right: 0px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1;
        transform-origin: center;
    }


    .recuadroCinco {
        position: absolute;
        top: 15px;
        right: 30px;
    }

    .recuadro:hover, .recuadroDos:hover, .recuadroTres:hover, .recuadroCuatro:hover {
        /* 1. Acercamiento físico */
        transform: scale(1.08);
        /* 2. Iluminación: sube el brillo y la saturación */
        filter: brightness(1.2) contrast(1.1);
        /* 3. Sombra profunda: crea la ilusión de despegarse del fondo */
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        /* 4. Prioridad visual */

        color: #ff4d4d;
    }


    .modal {
        display: none; /* oculta por defecto */
        position: fixed;
        top: 0;
        left: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.1); /* semi-transparente */
        justify-content: center;
        align-items: center;
        z-index: 100;
    }

    .modal-contenido {
        /*background: rgba(31, 31, 51, 0.6);*/ /* fondo oscuro background: #1f1f33; */
        background: repeating-linear-gradient( 45deg, #152238 0px, #152238 10px, #1e3350 10px, #1e3350 20px ), repeating-linear-gradient( -45deg, #152238 0px, #152238 10px, #3a506b 10px, #3a506b 20px ), repeating-linear-gradient( 90deg, #152238 0px, #152238 15px, #1e3350 15px, #1e3350 30px );
        background-blend-mode: multiply; /* mezcla los gradientes */
        color: #fff; /* texto claro */
        opacity: 0.983;
        margin-top: 10px;
        margin-right: 10px;
        padding: 38px 10px;
        border-radius: 8px;
        width: 420px;
        min-height: 150px;
        text-align: center;
        position: relative;
        display: flex;
        flex-direction: column;
        border: 1px solid #D4AF37;
        /*isolation: isolate;*/
    }

    .cerrar {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
    }

        .cerrar:hover {
            color: #ff4d4d; /* se pone rojo al pasar el mouse */
        }

    .switch {
        display: flex;
        width: 80px;
        height: 30px;
        border: 2px solid #D4AF37;
        border-radius: 6px;
        overflow: hidden;
    }

        .switch .half {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.4s ease, color 0.4s ease;
        }
        /* Estado por defecto: Index (IN activo) */
        .switch:not(.active) .left {
            background-color: #002366; /* #4CAF50 */
            color: #E1C699; /* podria ser igual por nombre como blueviolet, black ó white */
        }

        .switch:not(.active) .right {
            background-color: transparent;
            color: #fff;
        }

        .switch.active .left {
            background-color: transparent;
            color: #fff;
        }

        .switch.active .right {
            background-color: #002366;
            color: #E1C699;
        }

@media (max-width: 768px) {
    /* 1. CONFIGURACIÓN DEL ESPACIO GENERAL (1fr 2fr) */
    .container {
        display: grid;
        grid-template-columns: 1fr 2fr; 
        gap: 0;
        height: 100vh;
        width: 100%;
    }

    /* 2. COMPORTAMIENTO ELÁSTICO DE AMBOS LADOS */
    .izquierda, .block {
        height: 100vh;
        /* Convertimos ambos lados en cajas flexibles verticales */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Centra todo verticalmente */
        align-items: center !important;     /* Centra todo horizontalmente */
        
        /* ¡SEPARACIÓN AUTOMÁTICA!: Mete 12px de aire entre cada elemento 
           (div, p, imágenes) en ambos lados para que NADA se empalme */
        gap: 12px !important; 
        
        padding: 15px 10px !important;
        box-sizing: border-box !important;
    }

    /* Sincronizamos el scroll de la derecha */
    .derecha {
        width: 100%;
        height: 100vh;
        overflow-y: scroll;
        scrollbar-width: none;
    }
    .derecha::-webkit-scrollbar {
        display: none;
    }

    /* 3. RESETEO DE TEXTOS UNIVERSAL (Para todos tus DIV y P de la web) */
    .izquierda div, .block div:not(.recuadro):not(.switch)
    :not(.recuadroDos):not(.recuadroTres):not(.recuadroCuatro):not(.recuadroCinco)
    :not(.cerrar),
    .izquierda p, .block p {
        font-size: 0.75rem !important;   /* Letra compacta idéntica en ambos lados */
        line-height: 1.4 !important;     /* Altura elástica que reemplaza los 17px rígidos */
        height: auto !important;         /* Rompe cajas fijas que enciman letras */
        text-align: center !important;
        margin: 0 !important;            /* Deja que el 'gap' controle la separación */
        width: 90% !important;           /* Evita que los textos choquen con los bordes laterales */
    }

    /* Títulos universales (h1, h2) adaptados al mismo tiempo */
    .izquierda h1, .block h1, 
    .izquierda h2, .block h2 {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin: 0 !important;
        width: 90% !important;
    }

    /* 4. OPTIMIZACIÓN DE IMÁGENES EN LA WEB */
     /* --- 4. OPTIMIZACIÓN DE IMÁGENES ESPECÍFICAS --- */
    
    /* Tu Foto Principal (Ajustada de 150px a un múltiplo de 7 cercano) */
    .izquierda img, .izquierda .fotoPerfil { 
        width: 147px !important;  /* 147 es múltiplo exacto de 7 (147 / 7 = 21) */
        height: 147px !important; /* Mantiene la proporción cuadrada perfecta */
        border-radius: 50%;       /* Por si la tienes configurada en círculo */
        object-fit: cover;
        margin: 0 auto !important;
    }

    /* Tus Iconos / Imágenes pequeñas (Ajustadas de 32px a un múltiplo de 7 cercano) */
    .block img, .izquierda .imagenContactos, .izquierda .achievements {
        width: 35px !important;   /* 35 es múltiplo exacto de 7 (35 / 7 = 5) */
        height: 35px !important;  /* Evita que se pixelen en la pantalla del celular */
        object-fit: contain;      /* Ideal para logos o iconos para que no se recorten */
        margin: 0 auto !important;
    }

}

@media (max-width: 768px) and (orientation: landscape) {
    .izquierda {
            overflow-y: auto !important;
            justify-content: flex-start !important; /* Permite deslizar desde arriba si está acostado */
        }
}
