/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-neon-green: #00ff88;
    --accent-electric-blue: #00d4ff;
    --text-light: #e0e0e0;
    --text-gray: #a0a0a0;
    --border-color: #2a3f5f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-electric-blue);
    text-shadow: 0 0 10px var(--accent-electric-blue);
    white-space: nowrap; 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-electric-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-electric-blue);
    border-radius: 1px;
}

/* Agrega esto justo debajo de tus estilos de .navbar actuales */

.hamburger {
    display: none; /* Oculto en escritorio */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: radial-gradient(circle at 30% 50%, var(--accent-electric-blue), transparent);
    opacity: 0.1;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    animation: blob-animation 8s infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: 50px;
    left: -50px;
    background: radial-gradient(circle at 30% 50%, var(--accent-neon-green), transparent);
    animation: blob-animation 10s infinite reverse;
}

@keyframes blob-animation {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-electric-blue), var(--accent-neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-electric-blue);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-electric-blue), var(--accent-neon-green));
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    border: 2px solid var(--accent-electric-blue);
    color: var(--accent-electric-blue);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.btn-link {
    color: var(--accent-electric-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--accent-neon-green);
}

/* ===== CONTENEDOR Y SECCIONES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 5;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-electric-blue), var(--accent-neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    display: flex;
    align-items: center;

    /* CAMBIO 1: Alineamos al inicio (arriba) en vez de al centro */
    align-items: flex-start; 
    /* CAMBIO 2: Controlamos el espacio superior manualmente */
    padding-top: 2rem; /* <--- Reduce este número si quieres que suba más */
}

/* Busca esta sección en tu CSS y reemplázala */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start; /* <--- ESTO HACE QUE SUBA AL INICIO */
    position: relative;
}

.about-image {
    display: flex;
    justify-content: center;
    position: sticky; /* <--- ESTO LA HACE FLOTANTE */
    top: 100px; /* Distancia desde la barra de navegación */
    height: fit-content; /* Necesario para que el sticky funcione */
}

.about-image img {
    width: 400px;
    height: 400px;
    border-radius: 15px;
    border: 2px solid var(--accent-electric-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-electric-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-electric-blue);
    transform: translateY(-5px);
}

.skill-card h4 {
    color: var(--accent-electric-blue);
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    min-height: 100vh;
    margin-top: 80px;
    display: flex;
    align-items: center;

    /* CAMBIO 1: Alineamos al inicio (arriba) en vez de al centro */
    align-items: flex-start; 
    /* CAMBIO 2: Controlamos el espacio superior manualmente */
    padding-top: 2rem; /* <--- Reduce este número si quieres que suba más */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    
    /* ===== CAMBIOS PARA ANCHO FIJO Y ESTABLE ===== */
    width: 100%;        /* Ocupa el espacio de la celda */
    max-width: 600px;   /* PERO nunca pases de 500px (Tamaño tarjeta ideal) */
    margin: 0 auto;     /* Si sobra espacio a los lados, céntrate */
}

.project-card:hover {
    border-color: var(--accent-electric-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--accent-electric-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Busca esta clase en style.css y reemplázala o actualízala */
.project-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    
    /* AGREGA ESTAS 3 LÍNEAS PARA CORREGIR EL TEXTO */
    white-space: normal;       /* Permite saltos de línea naturales */
    overflow-wrap: break-word; /* Rompe palabras largas si es necesario */
    word-break: break-word;    /* Asegura que el texto no desborde horizontalmente */
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-electric-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-electric-blue);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

/* ===== RESPONSIVE DESIGN (MÓVIL) ===== */
@media (max-width: 768px) {
    
    /* 1. ARREGLO PRINCIPAL: Evitar desbordes horizontales */
    .navbar-container, 
    .container {
        padding: 0 1rem; /* Reducimos el espacio lateral */
        width: 100%;
        overflow-x: hidden; /* Corta cualquier elemento que se salga */
    }

    /* 2. Ajustes del Logo */
    .logo {
        font-size: 1.2rem;
        white-space: nowrap; /* Evita que el nombre se rompa en dos líneas */
    }

    /* 3. Botón Hamburguesa */
    .hamburger {
        display: block;
        z-index: 1001;
        margin-left: auto; /* IMPORTANTE: Asegura que se pegue a la derecha */
    }

    /* 4. Menú Desplegable */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .lang-btn {
        margin-left: 0;
        display: inline-block;
        margin-top: 1rem;
        padding: 8px 20px;
    }

    /* 5. ARREGLO DE PROYECTOS (CRÍTICO) */
    /* Esto fuerza a las tarjetas a encogerse al tamaño del celular */
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr; /* 1 columna flexible (elimina los 350px fijos) */
        gap: 2rem;
        padding: 0;
        margin-top: 2rem;
    }

    .project-card {
        width: 100%;
        max-width: 100%; /* Se adapta al 100% de la pantalla */
        margin: 0;
    }

    /* 6. Textos y About */
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .about-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .about-image {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .about-image img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-image img {
        width: 250px;
        height: 250px;
    }
}


/* ===== CONTACT PAGE STYLES ===== */
/* ===== CONTACT PAGE STYLES (ESTRATEGIA TIPO CV - ESTABILIDAD TOTAL) ===== */

.contact-section {
    /* Copiamos la estructura exacta del CV (.cv-section) */
    min-height: 100vh; /* Altura completa */
    margin-top: 80px;  /* Espacio para el navbar */
    padding: 4rem 0;   /* Espacio vertical, el horizontal lo maneja .container */
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    
    /* IMPORTANTE: Quitamos 'display: flex'. 
       Esto evita que la caja se encoja/estire según el texto. 
       Ahora se comporta como un bloque sólido igual que el CV. */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% exacto para cada lado */
    gap: 4rem;
    align-items: start;
    
    /* No necesitamos poner anchos aquí porque el div padre ".container" 
       (que ya tienes en el HTML) ya limita el ancho a 1200px fijo. */
}

/* --- Columna Izquierda (Texto) --- */
.contact-info h3 {
    color: var(--accent-electric-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.3;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h4 {
    color: var(--accent-neon-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    margin-bottom: 0;
}

/* --- Columna Derecha (Formulario) --- */
.contact-form {
    background: rgba(26, 31, 58, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Llenar el 100% de su mitad de la columna */
    width: 100%; 
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box; 
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-electric-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Una columna en móvil */
        gap: 3rem;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
}

/* ===== ESTILOS DEL FOOTER REDES SOCIALES (Estilo Imagen) ===== */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Bordes redondeados cuadrados */
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

/* Efecto Hover General */
.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Colores Específicos al pasar el mouse */
.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.social-btn.github:hover {
    background: #333;
    border-color: #333;
    color: white;
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    color: white;
}


/* ===== BOTÓN DE IDIOMA ===== */
.lang-btn {
    background: transparent;
    border: 1px solid var(--accent-electric-blue);
    color: var(--accent-electric-blue);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--accent-electric-blue);
    color: var(--primary-dark);
}

/* ===== ESTILOS PÁGINA CV ===== */
.cv-section {
    min-height: 100vh;
    margin-top: 80px;
    padding: 4rem 2rem;
    background: var(--primary-dark);

    /* CAMBIO 1: Alineamos al inicio (arriba) en vez de al centro */
    align-items: flex-start; 
    /* CAMBIO 2: Controlamos el espacio superior manualmente */
    padding-top: 2rem; /* <--- Reduce este número si quieres que suba más */
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.cv-subtitle {
    color: var(--accent-electric-blue);
    font-size: 1.1rem;
    margin-top: -10px;
}

.cv-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes experiencia, 1 parte sidebar */
    gap: 4rem;
}

.cv-section-title {
    color: var(--accent-neon-green);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-neon-green);
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Items de Experiencia */
.cv-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.cv-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent-electric-blue);
}

.cv-date {
    font-size: 0.9rem;
    color: var(--accent-electric-blue);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cv-job-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.cv-company {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 1rem;
}

.cv-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

/* Sidebar (Educación y Skills) */
.cv-block {
    margin-bottom: 3rem;
}

.cv-item-small {
    margin-bottom: 1.5rem;
}

.cv-date-small {
    font-size: 0.85rem;
    color: var(--accent-electric-blue);
}

.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-electric-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.cv-list {
    list-style: none;
    color: var(--text-gray);
}

.cv-list li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cv-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== ESTILOS PARA DASHBOARD RESPONSIVE ===== */
.dashboard-container {
    position: relative;
    width: 100%;
    /* Truco para mantener proporción 16:9 (9 / 16 = 0.5625) */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Sombra elegante */
    background-color: var(--secondary-dark); /* Fondo mientras carga */
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.project__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ajuste para móviles si el dashboard es muy alto */
@media (max-width: 768px) {
    .dashboard-container {
        /* En celular lo hacemos un poco más alto para que sea legible */
        padding-bottom: 75%; 
    }
}

/* ===== ESTILOS PÁGINA DETALLE PROYECTO ===== */
.project-detail-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
    position: relative; /* Necesario para el botón de atrás absoluto */
}

.project-detail-hero .hero-title {
    font-size: 3rem; /* Reducimos de 4rem a 3rem solo aquí */
    margin-bottom: 0.5rem; /* Opcional: ajustamos el margen si queda muy separado */
}

/* Botón Atrás Flotante */
.back-floating-btn {
    position: absolute;
    top: 100px; /* Ajustado para no chocar con el navbar */
    left: 2rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 10;
}

.back-floating-btn:hover {
    color: var(--accent-electric-blue);
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(-5px);
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.detail-block {
    margin-bottom: 3rem;
    background: rgba(255,255,255,0.02);
    padding: 2rem;
    border-radius: 15px;
    border-left: 3px solid var(--accent-electric-blue);
}

.detail-block h3 {
    color: var(--accent-neon-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.detail-block ul {
    list-style: none;
    margin-top: 1rem;
}

.detail-block ul li {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-block ul li i {
    color: var(--accent-electric-blue);
}

/* Grid de KPIs */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.kpi-card {
    background: rgba(0, 212, 255, 0.05);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-electric-blue);
}

.kpi-card h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.kpi-card p {
    color: var(--accent-electric-blue);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

/* Responsive botón atrás */
@media (max-width: 768px) {
    .back-floating-btn {
        top: 85px;
        left: 1rem;
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}