/* =====================================================================
   RESET Y CONFIGURACIÓN DE VARIABLES GLOBALES
   ===================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Esto mata cualquier elemento que intente salirse de la pantalla */
}
:root {
    --color-bg: #050505;
    --color-surface: #0f0f0f;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-accent: #b5ff00;
    --font-primary: 'Poppins', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    overflow-x: hidden;
}

/* =====================================================================
   HEADER & NAVEGACIÓN
   ===================================================================== */
header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    opacity: 0.9;
}

.logo span.highlight {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    padding-bottom: 4px;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.btn-talk {
    background-color: #000000;    /* Fondo blanco para que el marco sea visible */
    color: #ffffff;               /* Texto negro para contrastar */
    border: 2px solid #000000;    /* Tu marco negro sólido y más grueso */
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-talk:hover {
    background-color: var(--color-accent); /* Cambia al verde neón al pasar el cursor */
    color: #000000;                        /* Mantiene el texto negro */
    border-color: #000000;                 /* Mantiene el marco negro */
    transform: translateY(-2px);           /* Pequeño salto hacia arriba */
}

/* =====================================================================
   SECCIÓN HERO (ESTRUCTURA PRINCIPAL)
   ===================================================================== */
.hero-container {
    display: flex;
    min-height: 100vh;
    padding-left: 8%;
    align-items: center;
}

.hero-left {
    flex: 1.2;
    padding-right: 40px;
    padding-top: 80px;
}

.hero-right {
    flex: 0.95;
    height: 100vh;
    background-color: var(--color-accent);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
/* Cambiamos var(--color-accent) por var(--dynamic-accent, var(--color-accent)) */
 /* Efecto Luz Neón + Crecimiento al pasar cursor */
.profile-image:hover {
    /* Mantenemos el filtro que ya tenías */
    filter: drop-shadow(-3px -3px 0px #ffffff) 
            drop-shadow(3px -3px 0px #ffffff) 
            drop-shadow(-3px 3px 0px #ffffff) 
            drop-shadow(3px 3px 0px #ffffff)
            drop-shadow(0 0 20px var(--dynamic-accent, var(--color-accent)))
            drop-shadow(0 0 40px var(--dynamic-accent, var(--color-accent)));
            
    /* NUEVO: El crecimiento */
    transform: translateX(-40%) scale(1.05); 
}
.profile-image {
    /* ... tus otras propiedades ... */
     height: 60%;
    max-width: 100%;
    object-fit: cover;
    z-index: 80;
    
    position: absolute;
    
    /* CONTROL VERTICAL (Arriba / Abajo) */
    bottom: 0;   /* Cambia este 0 por 20px, 50px, etc. para subirla */
    
    /* CONTROL HORIZONTAL (Izquierda / Derecha) */
    left: 0;    /* Punto de anclaje */
    transform: translateX(-40%); /* Cambia -40% por -30% (se mueve a la derecha) o -50% (se mueve a la izquierda) */
    
    /* ESTO ES CLAVE: Permite que el mouse detecte la imagen */
    pointer-events: auto !important; 
    transition: var(--transition-smooth), filter 0.5s ease;
    
    /* Aseguramos que siempre esté arriba */
    z-index: 100 !important; 
}

/* --- Elementos de la Izquierda --- */
.hero-title {
    font-size: 76px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.typewriter-box {
    display: inline-block;
    border: 2px solid var(--color-accent);
    padding: 10px 22px;
    margin-bottom: 45px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
}

.typewriter-box::before, 
.typewriter-box::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
}
.typewriter-box::before { top: -4px; left: -4px; }
.typewriter-box::after { bottom: -4px; right: -4px; }

.typewriter-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.typewriter-cursor {
    font-size: 22px;
    color: var(--color-accent);
    animation: blink 0.8s infinite;
    margin-left: 3px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cta-group {
    margin-bottom: 60px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    border-color: var(--color-accent);
    background-color: rgba(181, 255, 0, 0.05);
}

.btn-primary .arrow {
    margin-left: 12px;
    transition: var(--transition-smooth);
}

.btn-primary:hover .arrow {
    transform: translateX(5px);
}

/* Grid de Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 600px;
}

.metric-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-value span {
    color: var(--color-accent);
}

.metric-label {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}


/* Efecto Luz Neón al pasar cursor */
.profile-image:hover {
    filter: drop-shadow(-3px -3px 0px #ffffff) 
            drop-shadow(3px -3px 0px #ffffff) 
            drop-shadow(-3px 3px 0px #ffffff) 
            drop-shadow(3px 3px 0px #ffffff)
            drop-shadow(0 0 20px var(--color-accent))
            drop-shadow(0 0 40px var(--color-accent));
}

.tech-sidebar {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.tech-sidebar-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--color-bg);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 15px;
}

.tech-badge {
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #000000;
    transition: var(--transition-smooth);
    cursor: default;
}

.tech-badge i {
    font-size: 20px;
}

.tech-badge:hover {
    transform: scale(1.15);
    background-color: var(--color-bg);
    color: var(--color-accent);
}

/* =====================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ===================================================================== */
@media (max-width: 1200px) {
    .hero-title { font-size: 60px; }
    .metrics-grid { gap: 15px; }
}

@media (max-width: 992px) {
    .navbar { padding: 25px 5%; }
    .hero-container { flex-direction: column; padding: 120px 5% 0 5%; min-height: auto; }
    .hero-left { padding-right: 0; text-align: center; width: 100%; margin-bottom: 60px; }
    .metrics-grid { margin: 0 auto; }
    .hero-right { width: 100%; height: 550px; border-radius: 16px 16px 0 0; }
    .profile-image { height: 95%; }
    
    .tech-sidebar { 
        flex-direction: row; 
        flex-wrap: wrap; 
        right: auto; 
        bottom: 30px; 
        top: auto; 
        transform: none; 
        width: 100%; 
        justify-content: center; 
        padding: 0 10px;
    }
    .tech-sidebar-title { 
        writing-mode: horizontal-tb; 
        transform: none; 
        margin-bottom: 0; 
        margin-right: 15px; 
        width: 100%; 
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .navbar { padding: 20px 5%; }
    .hero-title { 
        font-size: 36px; /* Reducido para evitar saltos de línea raros */
        margin-bottom: 20px;
    }
    .typewriter-box { 
        padding: 8px 16px; 
        width: 90%; /* Evita que el recuadro toque los bordes */
    }
    .hero-right {
        height: 400px; /* Reducir altura para que el usuario vea el contenido debajo */
    }
    .profile-image {
        transform: translateX(-20%) scale(0.9); /* Ajuste de posición para que no se corte tanto */
    }
}
/* =====================================================================
   ESTILOS DEL LOGO UNERMB
   ===================================================================== */
.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;     
}

.unermb-logo {
    height: 65px;          
    width: auto;
    margin-bottom: 0.5px;  
    transition: var(--transition-smooth);
}

.metric-item:hover .unermb-logo {
    transform: scale(1.8);
}