﻿/* =======================================================
   css/footer-modal.css
   1. Footer: Estilo "BitSpark Reactor" (Oscuro & Energía)
   2. Modal: Estilo "Platinum Tech" (Claro & Ejecutivo)
   3. Responsive: Ajustes para Móvil
   ======================================================= */

/* =========================================
   1. FOOTER: FONDO & AMBIENTE
   ========================================= */
footer {
    /* Fondo Oscuro Profundo con tinte Cyan */
    background: radial-gradient(circle at 50% 0%, #0f1e3b 0%, #02040a 80%);
    color: #cbd5e1; /* Texto base claro */
    font-size: 1.1rem; /* AUMENTO DE TAMAÑO BASE */
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(34, 166, 153, 0.5);
    box-shadow: 0 -10px 50px rgba(34, 166, 153, 0.1); /* Resplandor superior */
    padding-top: 80px;
    padding-bottom: 50px;
}

/* Chispas de fondo (Sparks) */
.footer-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.f-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #22A699;
    box-shadow: 0 0 15px #22A699;
    opacity: 0;
    animation: floatFooter 8s infinite linear;
}
    /* Variaciones de chispas */
    .f-spark:nth-child(1) {
        left: 15%;
        bottom: -10px;
        width: 6px;
        height: 6px;
        animation-duration: 7s;
    }

    .f-spark:nth-child(2) {
        left: 35%;
        bottom: -10px;
        background: #fff;
        animation-duration: 10s;
        animation-delay: 2s;
    }

    .f-spark:nth-child(3) {
        left: 55%;
        bottom: -10px;
        width: 8px;
        height: 8px;
        animation-duration: 12s;
        animation-delay: 1s;
        opacity: 0.5;
    }

    .f-spark:nth-child(4) {
        left: 75%;
        bottom: -10px;
        background: #F2A900;
        animation-duration: 6s;
        animation-delay: 3s;
    }

    .f-spark:nth-child(5) {
        left: 95%;
        bottom: -10px;
        width: 5px;
        height: 5px;
        animation-duration: 9s;
        animation-delay: 0.5s;
    }

@keyframes floatFooter {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-400px) scale(1.5);
        opacity: 0;
    }
}

/* =========================================
   2. FOOTER: CONTENIDO & TIPOGRAFÍA
   ========================================= */
.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo {
    width: 200px; /* Logo más grande */
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(34, 166, 153, 0.3));
}

.footer-desc {
    font-size: 1.1rem; /* Texto descriptivo más grande */
    line-height: 1.6;
    color: #e2e8f0;
    font-weight: 500;
}

.footer-title {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    margin-bottom: 1.8rem;
    font-size: 1.4rem; /* Título mucho más grande */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(34, 166, 153, 0.6); /* Glow en el título */
    border-left: 4px solid #F2A900; /* Línea naranja decorativa */
    padding-left: 15px;
}

/* Enlaces (Links) */
.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 1.15rem; /* Enlaces grandes */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

    .footer-links a:hover {
        color: #22A699;
        transform: translateX(10px);
        text-shadow: 0 0 15px rgba(34, 166, 153, 0.6);
    }

    .footer-links a i {
        font-size: 1rem;
        margin-right: 10px;
        opacity: 0.7;
    }

/* Separador */
hr.footer-line {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 4rem 0 2rem 0;
}

/* =========================================
   3. BOTÓN CEO "NEON FLAME" (SÓLIDO Y VISIBLE)
   ========================================= */
.btn-ceo-neon {
    /* Fondo Sólido Degradado (Ya no transparente) */
    background: linear-gradient(135deg, #22A699 0%, #115e56 100%);
    color: #ffffff;
    border: 2px solid #fff;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(34, 166, 153, 0.4); /* Sombra fuerte */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    animation: btnPulse 3s infinite; /* Late suavemente */
}

    .btn-ceo-neon:hover {
        background: #ffffff;
        color: #183059;
        border-color: #22A699;
        box-shadow: 0 0 40px rgba(34, 166, 153, 0.8), 0 0 10px #fff inset;
        transform: translateY(-5px) scale(1.02);
    }

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 166, 153, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 166, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 166, 153, 0);
    }
}

/* =========================================
   4. ICONOS SOCIALES "REACTOR CORE" (GIGANTES)
   ========================================= */
.social-orb-container {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-orb {
    width: 65px;
    height: 65px; /* Iconos muy grandes */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.8rem; /* Icono interno grande */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efecto elástico */
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

    /* Hover Explosivo */
    .social-orb:hover {
        transform: translateY(-10px) rotate(360deg) scale(1.1);
        color: #fff;
        border-color: transparent;
    }

    /* Colores Específicos al Hover */
    .social-orb.link:hover {
        background: #0077b5;
        box-shadow: 0 0 40px #0077b5;
    }

    .social-orb.insta:hover {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        box-shadow: 0 0 40px #dc2743;
    }

    .social-orb.git:hover {
        background: #6e5494;
        box-shadow: 0 0 40px #6e5494;
    }

    .social-orb.twit:hover {
        background: #000;
        border: 1px solid #fff;
        box-shadow: 0 0 40px #ffffff;
    }


/* =========================================
   5. CEO MODAL: ESTILO "PLATINUM TECH"
   ========================================= */
.modal-backdrop.show {
    opacity: 0.8;
    backdrop-filter: blur(10px);
}

.ceo-modal-content {
    background: #f0f2f5; /* Gris Platino */
    border: none;
    border-radius: 24px;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: #334155;
}

.modal-header {
    background: #e2e8f0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem 2rem;
    align-items: center;
}

/* --- FOTO (Con Filtros & Efectos) --- */
.ceo-photo-wrapper {
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #d1d5db);
    box-shadow: 15px 15px 30px #bebebe, -15px -15px 30px #ffffff;
    overflow: hidden;
}

.ceo-img {
    width: 100%;
    border-radius: 15px;
    /* Filtro: Escala de grises + Contraste + Brillo */
    filter: grayscale(80%) contrast(1.1) brightness(1.05) drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: all 0.4s ease-in-out;
    mix-blend-mode: multiply;
}

.ceo-photo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(24, 48, 89, 0.4), rgba(34, 166, 153, 0.1));
    border-radius: 20px;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.8;
    transition: opacity 0.4s;
}

.ceo-photo-wrapper:hover .ceo-img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.03);
}

.ceo-photo-wrapper:hover::after {
    opacity: 0.3;
}

/* --- TEXTOS --- */
.ceo-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #183059;
    margin-bottom: 10px;
}

.ceo-role {
    color: #22A699;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Efecto Máquina de Escribir */
.typewriter-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    min-height: 120px;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #F2A900;
    margin-left: 5px;
    animation: blinkCursor 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blinkCursor {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* --- CREDENCIALES (Badges Multicolor & Estrellas) --- */
.cred-badge-master {
    --cred-color: #22A699;
}

.cred-badge-iso {
    --cred-color: #F2A900;
}

.cred-badge-fullstack {
    --cred-color: #183059;
}

.cred-badge-pm {
    --cred-color: #9333ea;
}

.cred-badge-db {
    --cred-color: #ea580c;
}

.cred-badge {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

    .cred-badge::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 35px;
        width: 0px;
        height: 0px;
        border-radius: 50%;
        background: radial-gradient(circle, var(--cred-color) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        transition: all 0.5s ease;
        z-index: -1;
        opacity: 0;
    }

    .cred-badge:hover {
        transform: translateY(-5px) scale(1.02);
        border-color: var(--cred-color);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

        .cred-badge:hover::before {
            width: 200px;
            height: 200px;
            opacity: 0.2;
        }

/* Iconos animados */
.cred-icon {
    font-size: 1.6rem;
    margin-right: 18px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    position: relative;
    transition: all 0.4s;
    color: var(--cred-color);
}

.cred-badge:hover .cred-icon {
    background: var(--cred-color);
    color: #fff;
    box-shadow: 0 0 15px var(--cred-color);
}

/* Animación Estrellas */
.cred-icon::after {
    content: '✦ ⋆ ✧';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 180%;
    height: 180%;
    text-align: center;
    font-size: 1rem;
    color: var(--cred-color);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;
    font-family: sans-serif;
}

.cred-badge:hover .cred-icon::after {
    opacity: 1;
    animation: starburst 3s infinite linear;
}

@keyframes starburst {
    0% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) scale(1.2);
        opacity: 0.5;
    }
}

/* Texto Credenciales */
.cred-text small {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cred-text strong {
    font-size: 1rem;
    color: #183059;
}

/* Modal Footer */
.modal-footer-custom {
    background: #e2e8f0;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-market {
    background: #183059;
    color: #F2A900;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(24, 48, 89, 0.3);
}

/* =========================================
   6. RESPONSIVE: ARREGLO MÓVIL (MODAL)
   ========================================= */
/* Aplica en tablets verticales y celulares (menos de 992px) */
@media (max-width: 991.98px) {

    /* Desactivar sticky: Hace que la foto no se quede pegada y tape el texto */
    .modal-body .col-md-5.position-sticky {
        position: static !important;
        margin-bottom: 2rem;
    }

    /* Centrado de la foto */
    .ceo-photo-wrapper {
        margin: 0 auto;
        max-width: 80%;
    }

    /* Texto centrado */
    .ceo-name.display-6 {
        font-size: 2rem;
        text-align: center;
    }

    .ceo-role {
        justify-content: center;
    }

    /* Espacio para la biografía */
    .typewriter-container {
        text-align: center;
        margin-bottom: 2.5rem !important;
    }

    .typewriter-text {
        min-height: auto; /* Altura automática en móvil */
    }

    /* Lista de skills ordenada */
    .credentials-grid {
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}

@media (max-width: 575.98px) {
    /* Celulares pequeños */
    .ceo-photo-wrapper {
        max-width: 100%;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    /* Ajuste de orbes sociales en footer móvil */
    .social-orb-container {
        justify-content: center;
    }

    .footer-title {
        text-align: center;
        border-left: none;
        border-bottom: 2px solid #F2A900;
        display: inline-block;
        padding-bottom: 5px;
        padding-left: 0;
    }
}

/* ==============================================
   BADGE: v1.0.0 GENESIS (ULTRA PRO VERSION)
   ============================================== */
.system-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Espacio entre elementos */
    background: rgba(2, 6, 23, 0.8); /* Fondo ultra oscuro */
    border: 1px solid rgba(242, 169, 0, 0.4); /* Borde Dorado semitransparente */
    padding: 8px 20px;
    border-radius: 12px; /* Bordes menos redondeados para look más técnico */
    backdrop-filter: blur(16px); /* Efecto vidrio */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(242, 169, 0, 0.1);
    margin-top: 25px;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Fuente muy limpia */
}

    /* Efecto Hover */
    .system-version-badge:hover {
        border-color: #F2A900;
        box-shadow: 0 0 35px rgba(242, 169, 0, 0.25);
        transform: translateY(-2px);
    }

/* 1. El Indicador de Pulso y Etiqueta "COMPILADO" */
.badge-prefix {
    display: flex;
    align-items: center;
    color: #94a3b8; /* Gris azulado técnico */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.genesis-pulse {
    width: 6px;
    height: 6px;
    background-color: #10b981; /* Verde Esmeralda */
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* 2. El Texto Principal "v1.0.0 GENESIS" (El Héroe) */
.text-genesis {
    font-family: 'Orbitron', sans-serif; /* Fuente Tech si la tienes, sino una monospace */
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(242, 169, 0, 0.6); /* Resplandor Dorado */
    letter-spacing: 0.5px;
    padding-right: 10px;
    border-right: 1px solid rgba(255,255,255,0.1); /* Separador vertical sutil */
}

/* 3. La Píldora de Estado "STABLE" */
.genesis-pill {
    background: rgba(16, 185, 129, 0.15); /* Fondo verde transparente */
    border: 1px solid rgba(16, 185, 129, 0.4); /* Borde verde */
    color: #10b981; /* Texto verde */
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); /* Pequeño resplandor verde */
}
