@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

:root { 
    --primary: #2F5E48;      
    --secondary: #6FA382;    
    --accent: #E8F3EB;       
    --text-dark: #2C3E50;    
    --text-light: #64748b;   
    --white: #ffffff; 
    --bg-light: #f8f9fa;     
    --shadow: 0 10px 30px rgba(47, 94, 72, 0.08); 
}

body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* REGLAS VISIBILIDAD */
.menu-toggle { display: none !important; }
.mobile-admin-link { display: none !important; }
.nav-buttons { display: block !important; }

/* NAVBAR */
.navbar {
    background: var(--white); height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 8%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 1000;
}
.logo-img { height: 55px; }
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn-admin { border: 1px solid var(--text-dark); padding: 10px 25px; border-radius: 50px; color: var(--text-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.btn-admin:hover { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 4px 10px rgba(47, 94, 72, 0.2); }

/* HERO */
.hero { position: relative; overflow: hidden; background-color: var(--primary); min-height: 550px; display: flex; align-items: center; padding: 0 10%; }
.hero-carousel, .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; transform: scale(1.05); transition: transform 6s, opacity 1.5s; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(30, 50, 40, 0.85) 0%, rgba(30, 50, 40, 0.4) 100%); z-index: 1; }
.hero-content { flex: 1; color: var(--white); position: relative; z-index: 2; max-width: 600px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero-content p { font-size: 1.2rem; margin-bottom: 35px; opacity: 0.9; font-weight: 300; }
.btn-white { background: var(--white); color: var(--primary); padding: 14px 35px; border-radius: 50px; font-weight: 700; font-size: 14px; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: inline-block; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; position: relative; z-index: 2; }
.image-box img { max-width: 350px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }

/* SERVICIOS */
.services-section { padding: 80px 10%; text-align: center; background-color: var(--bg-light); }
.section-title { font-size: 2.2rem; color: var(--primary); margin-bottom: 60px; font-weight: 700; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--secondary); margin: 15px auto 0; border-radius: 2px; }

/* --- CORRECCIÓN: 2 COLUMNAS EN PC --- */
.cards-container { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* AQUÍ ESTÁ EL CAMBIO */
    gap: 40px; 
    max-width: 1000px; 
    margin: 0 auto; 
}

.card { background: var(--white); padding: 40px 30px; border: none; border-radius: 15px; box-shadow: var(--shadow); transition: all 0.4s ease; }

/* --- CORRECCIÓN: SOPORTE PARA FOTOS EN CÍRCULOS --- */
.icon-box { 
    width: 70px; height: 70px; 
    border-radius: 50%; 
    background: var(--secondary); 
    margin: 0 auto 25px;
    display: flex; justify-content: center; align-items: center; 
    overflow: hidden; 
}
.icon-box i { font-size: 2.5rem; color: var(--white); }
.icon-box img { width: 100%; height: 100%; object-fit: cover; } 

.card h3 { margin-bottom: 15px; color: var(--text-dark); font-weight: 600; }
.card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 30px; }
.btn-card { color: var(--primary); background: transparent; border: 2px solid var(--primary); padding: 10px 25px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; }

/* CONTACTO */
.contact-map-section { padding: 100px 10%; background-color: var(--white); }
.contact-container { display: flex; flex-wrap: wrap; gap: 60px; align-items: flex-start; }
.form-column, .map-column { flex: 1; min-width: 300px; }
.subtitle { font-size: 1.8rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 700; }
.home-form input, .home-form textarea { width: 100%; padding: 15px 20px; border: 1px solid #e0e0e0; background: #f9f9f9; border-radius: 8px; outline: none; margin-bottom: 20px; font-size: 0.95rem; }
.btn-green-submit { background-color: var(--primary); color: white; padding: 15px 35px; border: none; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; width: 100%; }
.map-frame { border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); border: none; height: 450px; }

/* FOOTER */
footer { background-color: var(--primary); color: var(--white); padding: 70px 10%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; font-size: 0.95rem; border-top: 5px solid var(--secondary); }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { margin-bottom: 25px; color: var(--secondary); font-size: 1.1rem; text-transform: uppercase; font-weight: 600; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.85); margin-bottom: 12px; display: block; text-decoration: none; }
.socials a { display: inline-block; font-size: 1.4rem; margin-right: 20px; color: var(--white); }

/* === MÓVIL (INTACTO) === */
@media (max-width: 768px) {
    .navbar { position: fixed !important; top: 0; left: 0; right: 0; width: 100%; background-color: var(--white); z-index: 9999; padding: 0 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); height: 80px; }
    body { padding-top: 80px; }

    .menu-toggle { display: block !important; font-size: 1.8rem; cursor: pointer; color: var(--primary); }
    .nav-buttons { display: none !important; }
    .mobile-admin-link { display: block !important; margin-top: 10px; }
    .mobile-admin-link a { border: 2px solid var(--primary); padding: 8px 20px; border-radius: 50px; color: var(--primary) !important; font-weight: 700; }

    .nav-links { display: none; position: fixed; top: 80px; left: 0; width: 100%; background-color: var(--white); flex-direction: column; align-items: center; padding: 30px 0; gap: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); z-index: 9998; border-top: 1px solid #eee; overflow-y: auto; max-height: 80vh; }
    .nav-links.active { display: flex !important; }

    .hero { flex-direction: column; text-align: center; padding: 50px 20px; margin-top: 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-image { display: none; }
    
    /* EN MÓVIL SEGUIRÁ SIENDO 1 SOLA COLUMNA */
    .cards-container { grid-template-columns: 1fr; } 
    
    .contact-container { flex-direction: column; }
    footer { flex-direction: column; text-align: center; }
    .socials { justify-content: center; display: flex; }
}