/**
 * Ubicación: ./public/css/main.css
 * Diseño único para Dosto S.A.
 * CORRECCIÓN: Se restauraron los colores rojos para los iconos y elementos de marca.
 */

:root {
    --brand-charcoal: #37413F;
    --brand-navy: #2C3E4F;
    --brand-red: #D42C28;
    --brand-light: #ECF0F1;
    --white: #FFFFFF;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--brand-charcoal); background: var(--brand-light); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.bg-white { background: var(--white); }
.bg-navy { background: var(--brand-navy); }
.text-white { color: var(--white); }
.text-red { color: var(--brand-red) !important; }
.text-upper { text-transform: uppercase; }

/* --- NAVEGACIÓN --- */
.navbar { position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(236, 240, 241, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1.2rem 0; transition: var(--transition); }
.nav-content { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo-wrap { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }

.menu-toggle { display: none; background: none; border: none; color: var(--brand-charcoal); cursor: pointer; }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--brand-charcoal); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; transition: var(--transition); }
.nav-links a:hover { color: var(--brand-red); }

/* Dropdown Menu Corregido */
.dropdown { position: relative; padding-bottom: 1rem; margin-bottom: -1rem; } 

.dropdown-menu { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: var(--white); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    border-radius: 12px; 
    padding: 0.8rem 0; 
    min-width: 240px; 
    z-index: 1010;
    margin-top: 0; 
}

/* Puente invisible para mantener el hover */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    display: block;
}

.dropdown:hover .dropdown-menu { 
    display: flex; 
}

.dropdown-item { 
    display: block; 
    width: 100%;
    padding: 0.8rem 1.5rem; 
    color: var(--brand-charcoal); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-align: left;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--brand-light); color: var(--brand-red); }

/* --- BOTONES --- */
.btn-red { background: var(--brand-red); color: var(--white) !important; border-radius: 8px; font-weight: 800; text-decoration: none; padding: 0.5rem 1.2rem; display: inline-block; transition: var(--transition); border: none; cursor: pointer; }
.btn-red:hover { background: var(--brand-navy); transform: translateY(-2px); }

.btn-navy { background: var(--brand-navy); color: var(--white) !important; border-radius: 10px; font-weight: 800; text-decoration: none; padding: 15px 35px; display: inline-block; transition: var(--transition); border: none; cursor: pointer; }
.btn-navy:hover { background: var(--brand-red); transform: translateY(-2px); }

.btn-outline-red { border: 2px solid var(--brand-red); color: var(--brand-red) !important; padding: 15px 35px; text-decoration: none; border-radius: 10px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); }
.btn-outline-red:hover { background: var(--brand-red); color: var(--white) !important; }

/* --- HERO --- */
.hero { padding: 12rem 0 6rem; background-image: radial-gradient(#37413f15 1px, transparent 1px); background-size: 40px 40px; }
.hero-flex { display: flex; flex-direction: row; align-items: center; gap: 4rem; }
.hero-content { flex: 1; }
.hero-visual { flex: 1; text-align: center; }
.hero-visual img { width: 100%; border-radius: 2.5rem; border: 10px solid var(--white); box-shadow: 0 40px 80px rgba(0,0,0,0.1); }
.hero h1 { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--brand-red); border: 1px solid rgba(212,44,40,0.1); padding: 8px 18px; border-radius: 50px; font-size: 11px; font-weight: 800; margin-bottom: 25px; }
.badge i, .badge svg { color: var(--brand-red); stroke: var(--brand-red); }

/* --- ICONOS Y UTILIDADES --- */
.icon-red { 
    width: 3rem; 
    height: 3rem; 
    color: var(--brand-red) !important; 
    stroke: var(--brand-red) !important; 
    margin-bottom: 2rem; 
}

/* Forzar color en iconos de Lucide (SVG) */
.icon-red svg, 
.card i svg, 
.card [data-lucide] { 
    color: var(--brand-red) !important; 
    stroke: var(--brand-red) !important; 
}

/* --- GRID & CARDS --- */
.section-header { text-align: center; margin-bottom: 5rem; }
.divider { width: 60px; height: 4px; background: var(--brand-red); margin: 1.5rem auto; }
.grid-3 { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card { background: var(--brand-light); padding: 3rem; border-radius: 2rem; transition: var(--transition); text-decoration: none; color: inherit; display: block; border: 1px solid transparent; }
.card:hover { background: var(--white); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: rgba(212,44,40,0.1); }
.card h3 { margin-bottom: 1rem; font-weight: 800; }

/* --- LISTAS --- */
.list-check { list-style: none; }
.list-check li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.2rem; }
.list-check li i, .list-check li svg { color: var(--brand-red); stroke: var(--brand-red); flex-shrink: 0; margin-top: 4px; }

/* --- TESTIMONIALS --- */
.testimonial-card { background: var(--brand-light); padding: 3rem; border-radius: 2rem; position: relative; overflow: hidden; }
.quote-bg { position: absolute; top: 20px; right: 20px; width: 80px; height: 80px; color: var(--brand-red) !important; stroke: var(--brand-red); opacity: 0.12; }
.avatar-circle { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); }
.client-meta-wrapper { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.5rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; display: none; padding-left: 1rem; }
    .dropdown:hover .dropdown-menu { display: flex; }
    .hero-flex { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
}