/* --- 1. VARIABLES & RESET --- */
:root {
    --primary: #1a2b49;       /* Azul Institucional */
    --secondary: #cfa156;     /* Dorado Sobrio */
    --accent: #25D366;        /* Verde WhatsApp */
    --bg-light: #f9fafb;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #666;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 4px;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; background: var(--bg-light); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. HEADER & NAV --- */
header { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }

.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 65px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.5px; }
.logo-text span { display: block; font-size: 0.85rem; color: #666; font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 2px; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { font-weight: 600; font-size: 0.9rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--secondary); }
.btn-nav { background: var(--primary); color: var(--white) !important; padding: 10px 25px; border-radius: 2px; }

.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 10px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--primary); margin: 6px 0; transition: 0.3s; }

/* --- 3. HERO SECTION (HOME DASHBOARD) --- */
.hero { 
    position: relative; 
    min-height: 95vh; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    background-size: cover; 
    background-position: center; 
    padding-top: 90px; 
    
    /* [MODIFICADO] Aumenté de 140px a 170px para evitar que el texto choque con las cards */
    padding-bottom: 170px; 
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(26, 43, 73, 0.97), rgba(26, 43, 73, 0.92)); z-index: 1; }

.hero-grid { 
    position: relative; 
    z-index: 2; 
    display: grid; 
    grid-template-columns: 320px 1fr 320px; 
    gap: 40px; 
    width: 100%; 
    max-width: 1400px; 
    /* No usamos align-items global para permitir control individual de columnas */
}

/* Columna Central */
.hero-center { text-align: center; color: var(--white); padding: 0 10px; margin-top: 30px; }
.hero-pretitle { 
    display: block; 
    color: var(--secondary); 
    font-weight: 700; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    font-size: 1.2rem; 
}
.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 15px; 
    color: var(--white);
    font-family: var(--font-heading);
    white-space: nowrap; 
}
.hero-name { font-size: 3rem; margin-bottom: 15px; color: var(--white); font-family: var(--font-heading); line-height: 1.1; }
.hero-sub { font-size: 1.3rem; color: var(--white) !important; font-weight: 300; max-width: 700px; margin: 0 auto 40px; line-height: 1.5; }

.btn-primary { 
    background: var(--secondary); 
    color: var(--white); 
    padding: 15px 40px; 
    font-size: 1rem; 
    border-radius: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); 
    transition: 0.3s; 
    display: inline-block; 
}
.btn-primary:hover { transform: translateY(-2px); background: #b88d45; }

/* Columnas Laterales */
.hero-side { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    padding-top: 20px;
    
    /* [MODIFICADO] Agregado margen interno de seguridad para evitar bordes de pantalla */
    padding-left: 20px;
    padding-right: 20px;
}

/* AJUSTE SOLICITADO: Centrar verticalmente la columna derecha */
.hero-side.right {
    justify-content: center; /* Centrado vertical */
    height: 100%; /* Necesario para que el centrado funcione */
    padding-top: 0; /* Quitamos padding para centrar puro */
}

.hero-side.left {
    justify-content: flex-start; /* Izquierda se mantiene arriba */
}

.service-item { text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; transition: 0.3s; }
.hero-side.right .service-item { text-align: right; } 
.service-item:hover { transform: translateX(5px); border-bottom-color: var(--secondary); }
.hero-side.right .service-item:hover { transform: translateX(-5px); }
.service-title { color: var(--white); font-weight: 400; font-size: 0.95rem; display: block; margin-bottom: 5px; line-height: 1.3; /* text-transform: uppercase;  <--- ESTO ES LO NUEVO */}
.service-link { color: var(--secondary); font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* --- 4. HERO SMALL & PAGE SPECIFICS --- */
.hero-small { min-height: 40vh; padding-top: 0; align-items: center; background-position: center; }
.hero-small .hero-content { text-align: center; color: white; position: relative; z-index: 2; }
.hero-small h1 { font-size: 3rem; margin-bottom: 10px; font-family: var(--font-heading); color: var(--white); }
.hero-small p { font-size: 1.2rem; color: rgba(255,255,255,0.9); }

.section-padding { padding: 80px 0; }

/* Trayectoria & Bio */
.profile-section { display: grid; grid-template-columns: 350px 1fr; gap: 60px; align-items: start; }
.bio-box { background: var(--white); padding: 50px; border-left: 4px solid var(--secondary); box-shadow: var(--shadow); border-radius: 2px; }
.bio-box h3 { font-size: 1.1rem; color: var(--primary); margin-top: 30px; margin-bottom: 15px; font-weight: 700; }
.credentials-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; line-height: 1.5; color: #444; }
.credentials-list li::before { content: '▪'; color: var(--secondary); font-size: 1.5rem; line-height: 0.8; }

/* Areas Content */
.area-block { background: var(--white); padding: 45px; border-radius: 2px; box-shadow: var(--shadow); margin-bottom: 40px; border: 1px solid rgba(0,0,0,0.05); }
.area-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.area-icon { width: 35px; height: 35px; fill: var(--primary); }
.area-icon svg { width: 100%; height: 100%; fill: var(--primary); }
.area-header h2 { margin: 0; font-size: 1.5rem; color: var(--primary); font-family: var(--font-heading); }

h3 { font-size: 1.1rem; color: var(--primary); margin-top: 25px; margin-bottom: 15px; font-weight: 700; }
.sub-list { padding-left: 10px; list-style: none; }
.sub-list li { margin-bottom: 10px; position: relative; padding-left: 20px; font-size: 0.95rem; }
.sub-list li::before { content: ''; width: 6px; height: 6px; background: var(--secondary); position: absolute; left: 0; top: 10px; border-radius: 50%; }

.grid-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.divider { border: 0; border-top: 1px dashed #ddd; margin: 30px 0; }

/* --- 6. HOME VALUES & SECTIONS --- */
.values-wrapper { 
    position: absolute; 
    
    /* [MODIFICADO] Cambiado de -80px a -110px para bajar las cards visualmente */
    bottom: -110px; 
    
    left: 0; 
    width: 100%; 
    z-index: 3; 
    padding: 0 20px; 
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1100px; margin: 0 auto; }
.value-card { background: var(--white); padding: 35px 25px; border-radius: 2px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); text-align: center; border-top: 3px solid var(--secondary); transition: 0.3s; }
.value-card:hover { transform: translateY(-5px); }
.value-icon { width: 45px; height: 45px; margin: 0 auto 20px; display: block; }
.value-icon svg { width: 100%; height: 100%; fill: var(--secondary); } /* CAMBIO: Iconos Dorados */
.value-card h3 { font-size: 1rem; margin-bottom: 15px; color: var(--primary); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.value-card p { font-size: 0.9rem; color: #555; margin: 0; line-height: 1.6; }

/* Meet Sergio Section */
.two-col { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; /* Foto a la izquierda 1 parte, Texto 1.5 partes */
    gap: 50px; 
    align-items: center; 
    max-width: 1000px; 
    margin: 0 auto; 
    background: var(--white); 
    padding: 60px; 
    box-shadow: var(--shadow); 
    border-radius: var(--radius); 
    border-left: 5px solid var(--primary);
}
.two-col h2 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary); font-family: var(--font-heading); }
.two-col p { font-size: 1.05rem; color: #555; margin-bottom: 25px; line-height: 1.8; }
.btn-secondary { display: inline-block; border: 2px solid var(--primary); color: var(--primary); padding: 10px 30px; font-weight: 700; border-radius: 4px; text-transform: uppercase; font-size: 0.85rem; transition:0.3s; }
.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* --- 7. FOOTER --- */
#contacto { background: var(--primary); color: var(--white); padding: 80px 0 30px; margin-top: 120px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; margin-bottom: 50px; }
#contacto h4 { color: var(--secondary); font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
#contacto p { color: rgba(255,255,255,0.8); margin-bottom: 8px; line-height: 1.6; }
.footer-muted { color: rgba(255,255,255,0.5) !important; font-size: 0.85rem; }
.footer-link { display: block; color: rgba(255,255,255,0.8); margin-bottom: 12px; transition: 0.2s; }
.footer-link:hover { color: var(--white); text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* --- 8. MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .hamburger { display: block; z-index: 1001; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: var(--white); flex-direction: column; justify-content: center; box-shadow: -5px 0 20px rgba(0,0,0,0.1); transition: 0.4s ease-in-out; z-index: 1000; padding: 40px; }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 1.1rem; margin: 15px 0; }
    
    .hero { min-height: auto; padding: 60px 0; display: block; }
    .hero-grid { display: block; padding: 0 20px; }
    .hero-side { display: none; } 
    .hero-center { margin-top: 0; padding: 0; }
    .hero h1, .hero-name { font-size: 2.2rem; white-space: normal; } 
    .hero-pretitle { font-size: 1rem; }
    .hero-sub { font-size: 1.1rem; margin-bottom: 30px; }

    .values-wrapper { position: relative; bottom: auto; padding: 0 20px; margin-top: 20px; }
    .values-grid { grid-template-columns: 1fr; gap: 20px; }

    .mobile-services { display: block !important; padding: 60px 20px; background: var(--bg-light); }
    .mobile-service-item { background: var(--white); padding: 15px; margin-bottom: 10px; border-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; border-left: 3px solid var(--primary); }
    .mobile-service-item h4 { font-size: 0.9rem; color: var(--primary); margin: 0; font-weight: 700; }
    /* Aumentamos font-size de 1.2rem a 2.5rem y agregamos negrita */
    .mobile-service-item span { 
    color: var(--secondary); 
    font-size: 2.5rem;   /* Antes era 1.2rem, ahora mucho más grande */
    font-weight: bold;   /* Para que se note más */
    line-height: 1;      /* Evita que se desalinee verticalmente */
    margin-left: 10px;   /* Un poco de aire extra a la izquierda */
}

    .grid-list { grid-template-columns: 1fr; }
    
    /* Responsive Two Col (Conocé a Sergio) */
    .two-col { grid-template-columns: 1fr; text-align: center; padding: 30px; }
    .two-col img { margin: 0 auto 20px; max-width: 250px; }
    
    .profile-section { grid-template-columns: 1fr; }
    .bio-box { padding: 30px; }
}
.mobile-services { display: none; }

/* --- FIX SCROLL OFFSET (Para que el menú no tape el título) --- */

html {
    scroll-behavior: smooth; /* Esto hace que el salto sea suave y elegante */
}

/* Aplicamos el margen de scroll a tus bloques de áreas */
.area-block {
    /* 90px (Altura de tu Header) + 30px (Aire extra para que respire) */
    scroll-margin-top: 110px; 
}

/* Por si acaso usas otros IDs en el futuro que no sean area-block */
:target {
    scroll-margin-top: 110px;
}

/* --- 9. CHATBOT STYLES --- */
#wbw-launch{position:fixed;right:20px;bottom:20px;z-index:9999;background:var(--accent);color:#fff;border:0;border-radius:50px;padding:12px 24px;font-family:var(--font-body);font-weight:600;font-size:15px;box-shadow:0 4px 15px rgba(0,0,0,0.2);cursor:pointer;display:flex;align-items:center;gap:10px; transition: 0.3s;}
#wbw-launch:hover { transform: scale(1.05); }
.wbw-launch-icon { width: 20px; height: 20px; display: block; }
.wbw-launch-icon svg { width: 100%; height: 100%; fill: #fff; }

#wbw-box{position:fixed;right:20px;bottom:80px;z-index:9999;width:340px;max-width:90vw;background:#fff;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,0.2);overflow:hidden;display:none;border:1px solid #eee;}
#wbw-head{background:var(--primary);color:#fff;padding:15px;font-weight:700;font-size:0.95rem;font-family:var(--font-heading);}
#wbw-body{padding:20px;}
.wbw-field{margin-bottom:15px;}
.wbw-field label{display:block;font-size:0.8rem;font-weight:700;margin-bottom:5px;color:var(--text-dark);}
.wbw-field input,.wbw-field textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:0.9rem;}
#wbw-actions{display:flex;gap:10px;margin-top:20px;}
.btn-primary-sm { background: var(--accent); color: #fff; border: 0; padding: 10px; flex: 1; border-radius: 4px; font-weight: 700; cursor: pointer; }
.btn-secondary { background: #eee; color: #333; border: 0; padding: 10px; flex: 1; border-radius: 4px; font-weight: 700; cursor: pointer; }