/* =========================================
   1. CONFIGURACIÓN BASE & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Paleta de Colores */
    --bg-dark: #2D3047;
    --primary: #1B998B;
    --light: #F3F3F3;
    --accent: #E4FF1A;
    
    /* Textos en Dark Mode */
    --text-on-dark: #F3F3F3;
    --text-muted: #AAB0C5;

    /* Tipografías */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado estándar */
    --container-width: 1100px;
}

/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--bg-dark); color: var(--text-on-dark); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.1; margin-bottom: 1rem; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* Utilidades */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.text-highlight {
    color: var(--accent);
    position: relative;
}

/* =========================================
   2. HEADER & NAVEGACIÓN
   ========================================= */
/* --- HEADER & NAV (Versión Vidrio) --- */
.site-header {
    background-color: rgba(45, 48, 71, 0.85); /* Un poco transparente */
    backdrop-filter: blur(12px); /* El efecto de borrosidad mágica */
    -webkit-backdrop-filter: blur(12px); /* Para que funcione en iPhone/Safari */
    
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 75px; 
    width: auto;
    display: block;
}

.nav-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-desktop a {
    color: var(--text-on-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-desktop a:hover { color: var(--primary); }

.btn-nav {
    background-color: transparent;
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary) !important;
}

.btn-nav:hover {
    background-color: var(--primary);
    color: #fff !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Barra Beta */
.beta-alert {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 2000;
}

.beta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.beta-link {
    color: var(--bg-dark);
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.beta-link:hover { opacity: 0.7; color: var(--bg-dark); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    padding: 80px 0;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: rgba(27, 153, 139, 0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: #157a6e; transform: translateY(-2px); }

.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.2); color: white; }
.btn-ghost:hover { border-color: white; background-color: rgba(255, 255, 255, 0.05); }

.trust-indicator {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-item i { color: var(--primary); font-size: 1.2rem; }

/* Imagen Hero */
.hero-image-container { position: relative; display: flex; justify-content: center; }

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    border: 4px solid rgba(27, 153, 139, 0.3);
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.image-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27,153,139,0.4) 0%, rgba(27,153,139,0) 70%);
    z-index: 1;
    filter: blur(40px);
}

/* =========================================
   4. SECCIÓN SERVICIOS
   ========================================= */
.services-section { padding: 100px 0; background-color: #25283d; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: white; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    border-bottom: 3px solid var(--accent); 
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(27, 153, 139, 0.2);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.service-card h3 { color: white; font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }

.service-list {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.service-list li {
    color: #d1d5db;
    margin-bottom: 10px;
    display: flex; align-items: center;
    font-size: 0.9rem;
}

.service-list li::before {
    content: "•"; color: var(--accent); font-weight: bold;
    display: inline-block; width: 15px;
}

.highlight-card {
    background: linear-gradient(145deg, rgba(27,153,139,0.1) 0%, rgba(45,48,71,0) 100%);
    border: 1px solid rgba(27, 153, 139, 0.3);
}

/* =========================================
   5. SECCIÓN PORTAFOLIO / PROYECTOS
   ========================================= */
.projects-section { padding: 100px 0; background-color: var(--bg-dark); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* En pantallas grandes, forzar 2 columnas */
@media (min-width: 960px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
    background-color: #25283d;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.project-image { height: 200px; width: 100%; position: relative; }

/* COLORES DE FONDOS DE TARJETAS */
.color-bogota { background: linear-gradient(135deg, #2D3047 0%, #004857 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.color-pbi { background: linear-gradient(135deg, #F2C811 0%, #996300 100%); display: flex; align-items: center; justify-content: center; }
.color-tableau { background: linear-gradient(135deg, #4E79A7 0%, #2D3047 100%); display: flex; align-items: center; justify-content: center; }
.color-looker { background: linear-gradient(135deg, #4285F4 0%, #0F3569 100%); display: flex; align-items: center; justify-content: center; }
/* Genericos antiguos por si acaso */
.color-2 { background: linear-gradient(135deg, #3E4261 0%, #E4FF1A 100%); }
.color-3 { background: linear-gradient(135deg, #2D3047 0%, #cf7704 100%); }

.project-tag {
    position: absolute; top: 15px; right: 15px;
    background-color: var(--accent); color: var(--bg-dark);
    font-weight: 700; font-size: 0.75rem; padding: 4px 10px;
    border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.project-logo-overlay {
    max-height: 80%; max-width: 80%; object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}
.project-card:hover .project-logo-overlay { transform: scale(1.1); }

/* Contenido Proyecto */
.project-content { padding: 25px; }
.project-content h3 { color: white; font-size: 1.25rem; margin-bottom: 10px; }
.project-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; min-height: 60px; }

.project-stats {
    display: flex; gap: 20px; margin-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { color: white; font-size: 1rem; }
.stat span { color: var(--primary); font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }

.btn-text {
    color: var(--accent); font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 5px; transition: gap 0.3s ease;
}
.btn-text:hover { gap: 10px; }

.project-links-group { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }

.link-btn {
    font-size: 0.85rem; padding: 6px 12px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2); color: white; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.link-btn:hover { background: white; color: var(--bg-dark); }

.highlight-btn { border-color: var(--primary); color: var(--primary); }
.highlight-btn:hover { background: var(--primary); color: white; }

.disclaimer { display: block; margin-top: 8px; font-size: 0.7rem; color: var(--text-muted); opacity: 0.7; font-style: italic; }

/* =========================================
   6. SECCIÓN BIO / PERFIL
   ========================================= */
.bio-section {
    padding: 100px 0;
    background-color: #202230;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bio-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: center;
}

.bio-label {
    color: var(--primary); font-weight: 700; font-size: 0.8rem;
    letter-spacing: 2px; margin-bottom: 15px; display: block; text-transform: uppercase;
}

.bio-content h2 { color: white; font-size: 2.5rem; margin-bottom: 30px; line-height: 1.2; }
.bio-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; }
.bio-content strong { color: white; font-weight: 600; }

.signature {
    font-family: var(--font-heading); font-size: 1.5rem;
    color: var(--primary); margin-top: 30px; font-style: italic; opacity: 1;
}
.sig-go { color: var(--accent); font-weight: 700; }

/* Tarjeta Stats Bio */
.bio-stats-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05); padding: 40px; border-radius: 20px;
    transition: all 0.3s ease;
}

.bio-stats-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.philosophy-item { margin-bottom: 30px; }
.philosophy-item:last-child { margin-bottom: 0; }

.philosophy-item i {
    font-size: 2rem; color: var(--primary); margin-bottom: 10px; display: block;
    transition: transform 0.3s ease;
}
.bio-stats-card:hover .philosophy-item i { transform: scale(1.1); }

.philosophy-item h4 { color: white; font-size: 1.2rem; margin-bottom: 5px; }
.philosophy-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }

/* =========================================
   7. SECCIÓN CONTACTO
   ========================================= */
.contact-section {
    padding: 100px 0; background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.contact-text h2 { font-size: 3rem; color: white; margin-bottom: 20px; }
.contact-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; max-width: 90%; }

.contact-card {
    background-color: #25283d; padding: 40px; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.contact-option {
    display: flex; align-items: center; gap: 20px; padding: 20px;
    border-radius: 12px; background-color: rgba(255,255,255,0.03);
    margin-bottom: 15px; transition: all 0.3s ease; border: 1px solid transparent;
}
.contact-option:last-child { margin-bottom: 0; }

/* CORRECCIÓN AQUÍ: Cambiamos translateX(10px) por translateY(-5px) */
.contact-option:hover {
    background-color: rgba(255,255,255,0.08); 
    transform: translateY(-5px); /* Ahora TODOS suben */
    border-color: rgba(255,255,255,0.1);
}

.icon-circle {
    width: 50px; height: 50px; background-color: var(--bg-dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary);
}

.option-info { display: flex; flex-direction: column; }
.label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.value { color: white; font-weight: 600; font-size: 1.1rem; word-break: break-all; }

/* ESTILOS DE BOTONES INDIVIDUALES (Colores) */

/* WhatsApp (Verde) */
.highlight-option {
    background-color: rgba(27, 153, 139, 0.1); 
    border: 1px solid var(--primary); 
    box-shadow: 0 0 15px rgba(27, 153, 139, 0.1);
}
.highlight-option:hover {
    background-color: var(--primary); color: white;
    box-shadow: 0 0 20px rgba(27, 153, 139, 0.4); border-color: var(--primary);
    /* Ya hereda el translateY(-5px) de arriba, así que subirá igual */
}
.highlight-option:hover .icon-circle { background-color: rgba(255,255,255,0.2); color: white; }

/* LinkedIn (Azul) */
.linkedin-option { border: 1px solid rgba(26, 162, 235, 0.3); }
.linkedin-option:hover {
    background-color: #0077b5; border-color: #0077b5; color: white;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.4); 
    /* El transform ya está en la clase base, no hace falta repetirlo */
}
.linkedin-option:hover .icon-circle { background-color: rgba(255,255,255,0.2); color: white; }

/* Email (Verde Limón) */
.email-option { border: 1px solid var(--accent); box-shadow: 0 0 10px rgba(228, 255, 26, 0.1); }
.email-option:hover {
    background-color: var(--accent); border-color: var(--accent);
    color: var(--bg-dark); font-weight: 700;
    box-shadow: 0 0 25px rgba(165, 219, 38, 0.4); 
    /* El transform ya está en la clase base */
}
.email-option:hover .icon-circle { background-color: rgba(45, 48, 71, 0.2); color: var(--bg-dark); }


/* =========================================
   8. FOOTER
   ========================================= */
.site-footer {
    background-color: #1a1c29; padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem;
}

.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 30px;
}

.brand-text {
    font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
    color: white; display: block; margin-bottom: 10px;
}

.location-text {
    color: var(--text-muted); font-size: 0.85rem; margin-bottom: 5px;
    display: flex; align-items: center; gap: 5px;
}

.copyright { color: var(--text-muted); opacity: 0.5; font-size: 0.8rem; line-height: 1.4; }

.footer-links-group {
    display: flex; flex-direction: column; align-items: flex-end; gap: 15px;
}

.footer-nav { display: flex; gap: 15px; align-items: center; }

.footer-nav a {
    color: white; font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }

.separator { color: var(--text-muted); opacity: 0.3; }

.security-badge {
    color: var(--primary); background-color: rgba(27, 153, 139, 0.1);
    padding: 6px 14px; border-radius: 50px; font-size: 0.75rem;
    display: flex; align-items: center; gap: 6px; border: 1px solid rgba(27, 153, 139, 0.2);
}

/* =========================================
   9. RESPONSIVE / MÓVIL (Todo Agrupado)
   ========================================= */

/* Tablet y Móvil (General) */
@media (max-width: 960px) {
    /* Hero */
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero h1 { font-size: 2.5rem; }
    .cta-group { justify-content: center; }
    .trust-indicator { justify-content: center; }
    .hero-image-container { order: -1; margin-bottom: 20px; }
    .hero-img { max-width: 250px; }

    /* Bio */
    .bio-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .bio-content h2 { font-size: 2rem; }
    
    /* Contacto */
    .contact-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-text p { margin: 0 auto 30px auto; }
    /* Mantener opciones a la izquierda para mejor lectura en botones */
    .contact-option { text-align: left; } 
    
    /* Footer */
    .footer-content { flex-direction: column; text-align: center; gap: 40px; }
    .footer-links-group { align-items: center; }
    .brand-text { margin-bottom: 5px; }
}

/* Móvil Pequeño (Específico para menú) */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-toggle { display: block; }
    
    /* Ajuste barra beta */
    .beta-content { font-size: 0.8rem; gap: 5px; flex-direction: column; }
}
/* =========================================
   10. MEJORA DE EXPERIENCIA TÁCTIL (Móvil)
   ========================================= */
@media (max-width: 960px) {
    /* Quitamos el hover "pegajoso" para que no moleste */
    .service-card:hover, .project-card:hover, .contact-option:hover {
        transform: none;
        box-shadow: none;
    }

    /* EFECTO DE PRESIÓN: Al tocar con el dedo (:active) */
    .btn:active, 
    .service-card:active, 
    .project-card:active, 
    .contact-option:active,
    .bio-stats-card:active {
        transform: scale(0.98); /* Se encoge un 2% (efecto click físico) */
        border-color: var(--primary); /* Se ilumina el borde */
        background-color: rgba(255,255,255,0.05); /* Flash de luz suave */
        transition: transform 0.1s ease; /* Reacción rápida */
    }
}

/* OPCIÓN B1: Luz Táctica Suave */
.logo-img {
    /* Sombra muy pegada y transparente para definir los bordes sin ser agresiva */
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

/* Bonus: Un pequeño destello extra al pasar el mouse */
.logo-img:hover {
    filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.7));
    transform: translateY(-2px);
}