/* src/styles/mosaic-skills.css - VERSIÓN FINAL (TEXTOS VISIBLES) */

/* =======================================================
   1. SECCIÓN MOSAICO (SKILLS & BADGES) - SECCIÓN 2
   ======================================================= */

.mosaic-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px; 
}

/* Títulos de Categoría */
.mosaic-title {
    font-family: 'Courier New', monospace;
    color: #00e5ff; 
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
}

.mosaic-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,229,255,0.5), transparent);
    margin-left: 15px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* === EL BADGE (CHIP) === */
.tech-badge {
    position: relative;
    background: rgba(10, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 10px 22px;
    border-radius: 4px;
    
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    font-weight: 500;
    
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.tech-badge:hover {
    background: rgba(0, 229, 255, 0.1); 
    border-color: #00e5ff;               
    color: #fff;                        
    transform: translateY(-3px) scale(1.02);        
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.1);
    z-index: 10;
}

.tech-badge::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: #00e5ff;
    transform: translateX(-100%); transition: transform 0.4s ease;
}
.tech-badge:hover::before { transform: translateX(0); }


/* =======================================================
   2. SECCIÓN CONTACTO (GLASS & SOCIAL) - REWORK ALTO CONTRASTE
   ======================================================= */

.holo-form-card {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.holo-form-card:hover {
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.glass-header h3 {
    margin: 0; font-family: 'Courier New', monospace; font-size: 0.9rem;
    color: rgba(255,255,255,0.8); letter-spacing: 2px;
}
.status-dot {
    width: 8px; height: 8px; background: #00ff88; border-radius: 50%;
    box-shadow: 0 0 10px #00ff88; animation: blinkStatus 2s infinite;
}
@keyframes blinkStatus { 50% { opacity: 0.5; } }

.input-group { position: relative; margin-bottom: 30px; }

.input-group input, 
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
    padding: 10px 0;
    color: #ffffff !important; 
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1rem; 
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); 
    outline: none;
    resize: none;
}

.input-group label {
    position: absolute; top: 10px; left: 0;
    color: rgba(255, 255, 255, 0.7); 
    font-size: 0.9rem; font-family: 'Courier New', monospace;
    pointer-events: none; transition: 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -12px; 
    font-size: 0.75rem; 
    color: #00e5ff; 
    font-weight: bold;
}

.input-highlight {
    position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: #00e5ff; transition: 0.4s;
}
.input-group input:focus ~ .input-highlight,
.input-group textarea:focus ~ .input-highlight { width: 100%; }

.cyber-submit-btn {
    width: 100%; padding: 16px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid #00e5ff;
    color: #00e5ff;
    font-weight: bold; letter-spacing: 3px; cursor: pointer;
    transition: 0.3s; position: relative; overflow: hidden;
}
.cyber-submit-btn:hover {
    background: #00e5ff; color: #000;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}
.btn-glare {
    position: absolute; top: 0; left: -100%; width: 50px; height: 100%;
    background: rgba(255,255,255,0.5); transform: skewX(-20deg);
    transition: 0.5s;
}
.cyber-submit-btn:hover .btn-glare { left: 200%; transition: 0.5s; }

.social-grid {
    display: flex; flex-direction: column; gap: 15px;
    margin-top: 20px;
}

.social-card {
    display: flex; align-items: center; gap: 20px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer; pointer-events: auto;
}

.social-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-weight: bold; font-family: monospace;
    transition: 0.3s;
}

.social-info { display: flex; flex-direction: column; }
.social-label { color: #fff; font-weight: bold; font-size: 1rem; }
.social-status {
    color: rgba(255,255,255,0.5); font-size: 0.8rem;
    font-family: monospace; transition: 0.3s;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(10px);
}

.social-card:nth-child(1):hover { border-color: #0077b5; }
.social-card:nth-child(1):hover .social-icon { background: #0077b5; box-shadow: 0 0 15px rgba(0,119,181,0.4); }
.social-card:nth-child(2):hover { border-color: #9b59b6; }
.social-card:nth-child(2):hover .social-icon { background: #9b59b6; box-shadow: 0 0 15px rgba(155,89,182,0.4); }
.social-card:nth-child(3):hover { border-color: #00e5ff; }
.social-card:nth-child(3):hover .social-icon { background: #00e5ff; color: #000; box-shadow: 0 0 15px rgba(0,229,255,0.4); }

.social-card:hover .social-status { color: #fff; transform: translateX(5px); }


/* =======================================================
   3. CONTACT QUICK-ACCESS (HERO SECTION - FUNCIONAMIENTO DINÁMICO)
   ======================================================= */

.contact-hero-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding: 10px;
    z-index: 100;
    position: relative;
}

.contact-hero-box {
    display: flex;
    align-items: center;
    
    /* Estado Inicial: Botón compacto */
    width: 50px;
    height: 50px;
    
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px; /* Circular al inicio */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden; /* Crucial para el efecto de estiramiento */
}

/* Contenedor interno para mantener los elementos alineados durante la expansión */
.box-content {
    display: flex;
    align-items: center;
    padding-left: 13px; /* Alineación del icono */
    min-width: max-content;
}

.contact-hero-box img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3));
    transition: transform 0.3s ease;
}

/* Texto que se revela al estirar */
.reveal-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-left: 0;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.3s ease, margin 0.3s ease, max-width 0.4s ease;
}

/* --- EFECTO HOVER: EL ESTIRAMIENTO --- */
.contact-hero-box:hover {
    width: 260px; /* Se estira para revelar el texto */
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(0, 229, 255, 0.2);
    border-radius: 12px; /* Se vuelve más rectangular al estirarse */
}

.contact-hero-box:hover .reveal-text {
    opacity: 1;
    max-width: 220px;
    margin-left: 15px; /* Espacio entre el icono y el texto revelado */
}

.contact-hero-box:hover img {
    transform: rotate(360deg) scale(1.1);
}

/* Variaciones de color en Hover */
.contact-hero-box.linkedin:hover { border-color: #0077b5; background: rgba(0, 119, 181, 0.1); }
.contact-hero-box.phone:hover { border-color: #00ff88; background: rgba(0, 255, 136, 0.1); }
.contact-hero-box.email:hover { border-color: #ff3e3e; background: rgba(255, 62, 62, 0.1); }

/* Responsivo */
@media (max-width: 600px) {
    .contact-hero-box:hover {
        width: 200px; /* Un poco más corto en móviles */
    }
}

