:root {
    --bg-dark: #121212;         /* Negro mate suave */
    --bg-card: #1e1e1e;         /* Negro ligeramente más claro para tarjetas */
    --primary-green: #48a34d;    /* Verde no muy chillón */
    --secondary-green: #2d5a30;  /* Verde oscuro para degradados */
    --text-main: #e0e0e0;       /* Gris muy claro (no blanco puro) */
    --text-muted: #a0a0a0;      /* Gris para detalles */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* NAVEGACIÓN */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(18, 18, 18, 0.95);
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span { color: var(--primary-green); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { margin: 0 15px; }

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary-green); }

/* Menú Contextual */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    top: 100%;
    border-top: 2px solid var(--primary-green);
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    font-size: 0.85rem;
}

.dropdown-content a i { margin-right: 8px; color: var(--primary-green); }

.dropdown:hover .dropdown-content { display: block; }

/* HERO SECTION */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1549923746-c502d488b3ea?auto=format&fit=crop&q=80&w=1470') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.8), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 { font-size: clamp(2rem, 8vw, 3.5rem); margin-bottom: 20px; }
.text-green { color: var(--primary-green); }

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    margin: 10px;
    display: inline-block;
}

.btn-secondary {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    margin: 10px;
    display: inline-block;
}

/* SERVICIOS */
.services { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--primary-green); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--secondary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-green);
    font-size: 1.5rem;
}

/* FORMULARIO */
.contact { padding: 60px 0; background-color: #0d0d0d; }
.contact-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
}

.form-row { display: flex; gap: 15px; margin-bottom: 15px; }

input, textarea {
    width: 100%;
    padding: 12px;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    margin-bottom: 15px;
}

.btn-submit {
    background: var(--primary-green);
    border: none;
    color: white;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar para móvil */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--bg-dark);
        width: 100%;
        padding: 20px 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .form-row { flex-direction: column; }
    .menu-toggle { display: block; color: white; font-size: 1.5rem; cursor: pointer; }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #222;
    color: var(--text-muted);
}

/* ESTILOS ADICIONALES PARA PÁGINAS INTERNAS */

.hero-sub {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(18,18,18,0.9), rgba(18,18,18,0.9)), 
                url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&q=80&w=1470');
    background-size: cover;
    text-align: center;
}

.hero-sub h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-sub p { max-width: 700px; margin: auto; font-size: 1.2rem; color: var(--text-muted); }

.info-section { padding: 80px 0; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-text h2 { font-size: 2.2rem; margin-bottom: 20px; }
.info-text p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem; }

.benefits { background-color: #161616; padding: 80px 0; }

.cta-dark {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to right, #121212, var(--secondary-green), #121212);
}

.cta-dark h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-dark p { margin-bottom: 30px; font-size: 1.2rem; }

/* Ajuste para iconos en tarjetas */
.service-card i { margin-bottom: 20px; display: block; }

@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub h1 { font-size: 2.2rem; }
}

/* Estilos para el Modal de Mapas */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Por encima de la navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Fondo oscuro translúcido */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--primary-green);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 20px rgba(72, 163, 77, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-green);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 8px;
}