﻿/* =============================================================
   ESTILOS COMPLETOS: MODAL CEO "PRO" (3 COLUMNAS + HOVER GLOW)
   ============================================================= */

/* --- 1. CONTENEDOR PRINCIPAL --- */
.ceo-modal-content {
    background: #f8fafc; /* Blanco Humo (Elegante) */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* --- 2. FONDO DE CHISPAS (Sutiles) --- */
.modal-sparks-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.m-spark {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    animation: modalFloatUp linear infinite;
}

    .m-spark.s1 {
        left: 10%;
        animation: modalFloatUp 7s infinite;
        background: #a855f7;
    }

    .m-spark.s2 {
        left: 30%;
        animation: modalFloatUp 10s infinite 1s;
        background: #3b82f6;
    }

    .m-spark.s3 {
        left: 50%;
        animation: modalFloatUp 8s infinite 2s;
        background: #ef4444;
    }

    .m-spark.s4 {
        left: 80%;
        animation: modalFloatUp 11s infinite 0.5s;
        background: #f59e0b;
    }

    .m-spark.s5 {
        left: 90%;
        animation: modalFloatUp 9s infinite 1.5s;
        background: #22d3ee;
    }

@keyframes modalFloatUp {
    0% {
        transform: translateY(100px) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-600px) scale(1.2);
        opacity: 0;
    }
}

/* --- 3. HEADER Y TEXTOS (Alto Contraste) --- */
.text-gradient-primary {
    background: linear-gradient(45deg, #2563eb, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* NOMBRE Y ROL (Oscuros para leerse bien) */
.ceo-name {
    color: #0f172a !important;
    font-weight: 800;
}

.ceo-role {
    color: #0369a1 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

    .ceo-role i {
        color: #0369a1 !important;
    }

/* PALOMITA VERIFICADA */
.verified-badge {
    color: #0ea5e9 !important;
    font-size: 1.5rem;
    margin-left: 8px;
    filter: drop-shadow(0 2px 2px rgba(14, 165, 233, 0.4));
    animation: verifyPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes verifyPop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* --- 4. FOTO CUADRADA --- */
.ceo-photo-wrapper.square-mode {
    position: relative;
    display: inline-block;
    padding: 10px;
}

.ceo-img.square-img {
    width: 220px;
    height: 220px;
    border-radius: 25px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.ceo-ring.square-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    border: 2px dashed #0ea5e9;
    animation: spinSlow 20s linear infinite;
    z-index: 1;
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

/* --- 5. TERMINAL BIO (Texto Blanco) --- */
.typewriter-terminal {
    background: #0f172a;
    border-radius: 12px;
    font-family: 'Consolas', monospace;
    border: 1px solid rgba(0,0,0,0.1);
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .dot.red {
        background: #ef4444;
    }

    .dot.yellow {
        background: #f59e0b;
    }

    .dot.green {
        background: #10b981;
    }

.terminal-title {
    margin-left: 10px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.prompt {
    color: #10b981;
    margin-right: 5px;
}

.typewriter-text {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 60px;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: #22d3ee;
    font-weight: bold;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- 6. GRID CREDENCIALES (3 COLUMNAS - VERTICAL) --- */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columnas */
    gap: 10px;
}

.cred-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 15px 10px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .cred-badge:hover {
        transform: translateY(-5px);
    }

.cred-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    margin-bottom: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease; /* Transición suave para el color */
}

.cred-text small {
    display: block;
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cred-text strong {
    font-size: 0.75rem;
    color: #1e293b;
    line-height: 1.1;
}

/* --- COLORES Y EFECTO "PRENDIDO" --- */
/* (Al hover: Borde color, Icono Fondo Color, Icono Simbolo Blanco) */

/* Master (Púrpura) */
.cred-badge-master .cred-icon {
    color: #a855f7;
    background: #f3e8ff;
}

.cred-badge-master:hover {
    border-color: #a855f7;
    box-shadow: 0 10px 20px rgba(168,85,247,0.15);
}

    .cred-badge-master:hover .cred-icon {
        background: #a855f7;
        color: #fff;
        box-shadow: 0 0 15px rgba(168,85,247,0.6);
    }

/* ISO (Rojo) */
.cred-badge-iso .cred-icon {
    color: #ef4444;
    background: #fee2e2;
}

.cred-badge-iso:hover {
    border-color: #ef4444;
    box-shadow: 0 10px 20px rgba(239,68,68,0.15);
}

    .cred-badge-iso:hover .cred-icon {
        background: #ef4444;
        color: #fff;
        box-shadow: 0 0 15px rgba(239,68,68,0.6);
    }

/* Scrum (Verde) */
.cred-badge-scrum .cred-icon {
    color: #65a30d;
    background: #ecfccb;
}

.cred-badge-scrum:hover {
    border-color: #65a30d;
    box-shadow: 0 10px 20px rgba(101,163,13,0.15);
}

    .cred-badge-scrum:hover .cred-icon {
        background: #65a30d;
        color: #fff;
        box-shadow: 0 0 15px rgba(101,163,13,0.6);
    }

/* Business Analyst (Turquesa) */
.cred-badge-ba .cred-icon {
    color: #0d9488;
    background: #ccfbf1;
}

.cred-badge-ba:hover {
    border-color: #0d9488;
    box-shadow: 0 10px 20px rgba(13,148,136,0.15);
}

    .cred-badge-ba:hover .cred-icon {
        background: #0d9488;
        color: #fff;
        box-shadow: 0 0 15px rgba(13,148,136,0.6);
    }

/* DB (Naranja) */
.cred-badge-db .cred-icon {
    color: #f59e0b;
    background: #fef3c7;
}

.cred-badge-db:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 20px rgba(245,158,11,0.15);
}

    .cred-badge-db:hover .cred-icon {
        background: #f59e0b;
        color: #fff;
        box-shadow: 0 0 15px rgba(245,158,11,0.6);
    }

/* Manager (Azul) */
.cred-badge-pm .cred-icon {
    color: #3b82f6;
    background: #dbeafe;
}

.cred-badge-pm:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(59,130,246,0.15);
}

    .cred-badge-pm:hover .cred-icon {
        background: #3b82f6;
        color: #fff;
        box-shadow: 0 0 15px rgba(59,130,246,0.6);
    }

/* --- 7. REDES SOCIALES (Visibles Siempre) --- */
.social-orb-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-orb {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .social-orb.link {
        color: #0077b5;
    }

    .social-orb.insta {
        color: #d62976;
    }

    .social-orb.git {
        color: #1f2937;
    }

    .social-orb.mail {
        color: #ef4444;
    }

    .social-orb:hover {
        transform: translateY(-5px);
        color: #fff !important;
        border-color: transparent;
    }

    .social-orb.link:hover {
        background: #0077b5;
        box-shadow: 0 5px 15px rgba(0,119,181,0.3);
    }

    .social-orb.insta:hover {
        background: linear-gradient(45deg, #405de6, #833ab4, #e1306c);
        box-shadow: 0 5px 15px rgba(225,48,108,0.3);
    }

    .social-orb.git:hover {
        background: #1f2937;
        box-shadow: 0 5px 15px rgba(31,41,55,0.3);
    }

    .social-orb.mail:hover {
        background: #ef4444;
        box-shadow: 0 5px 15px rgba(239,68,68,0.3);
    }

/* --- RESPONSIVE --- */
@media(max-width:768px) {
    /* En celular regresamos a 2 columnas para que no se vea apretado */
    .credentials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ceo-img.square-img {
        width: 160px;
        height: 160px;
    }
}
