:root {
    --primary: #2daa29;
    --primary-dark: #16a085;
    --dark: #000000;
    --light: #ffffff;
    --text-dark: #333;
    --pear-dark: #190038;
    --pear-light: #2daa29;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
}

/* --- Navegación --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 5%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.logo img { height: 50px; transition: var(--transition); }
header.scrolled .logo img { height: 40px; }

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--light); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; }
.nav-links a:hover { color: var(--primary); }

.menu-toggle { display: none; background: none; border: none; color: var(--light); cursor: pointer; }

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    background: url('../assets/imagenes/fondo1.jpg') center/cover no-repeat;
    position: relative;
}

.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); }

.hero-content { position: relative; z-index: 1; padding: 0 20px; }

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-btns {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Stats (Alineación Centrada Corregida) --- */
.stats-bar {
    background: var(--pear-dark);
    color: var(--light);
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
}

.stat-number { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--pear-light);
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.stat-label {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 0.9rem;
}

/* --- SECCIONES (SOLUCIÓN IMAGEN ABAJO) --- */
.container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }

.section-block {
    display: block; 
    margin-bottom: 100px;
}

.info-block { margin-bottom: 40px; }
.info-block h2 { font-size: 2rem; color: var(--pear-dark); text-transform: uppercase; margin-bottom: 20px; }

.image-block img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- Feature List --- */
.feature-list { list-style: none; margin: 25px 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }

.feature-list li svg {
    color: var(--primary) !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex-shrink: 0;
}

/* --- Botones --- */
.btn { 
    padding: 14px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: inline-block; 
    transition: var(--transition); 
    font-size: 0.8rem;
    min-width: 160px;
    text-align: center;
}

.btn-primary { 
    background: var(--primary); 
    color: white; 
    border: none;
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
}

.btn-outline { 
    border: 2px solid white; 
    color: white; 
}
.btn-outline:hover { 
    background: white; 
    color: var(--dark); 
}

.contact-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.btn-contact { padding: 15px 30px; border-radius: 50px; color: white; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.btn-office { background: #343a40; }
.btn-whatsapp { background: #25D366; }

/* --- Footer --- */
.main-footer { background: var(--dark); color: white; text-align: center; padding: 40px; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links { position: fixed; right: -100%; top: 0; height: 100vh; width: 250px; background: var(--dark); flex-direction: column; padding: 100px 20px; transition: 0.4s; }
    .nav-links.show { right: 0; }
}

@media (max-width: 600px) {
    .btn-contact { width: 100%; justify-content: center; }
}