@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; --whatsapp: #25D366; --shadow: 0 10px 30px rgba(47, 94, 72, 0.08); 
}

body { background-color: #fcfcfc; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; transition: 0.3s; }
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:hover, .nav-links a.active { color: var(--primary); }
.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%; }
.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); }

/* CONTENIDO */
.page-header { background-color: var(--primary); color: var(--white); text-align: center; padding: 100px 20px; background-image: linear-gradient(135deg, #2F5E48 0%, #244a38 100%); }
.page-header h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; letter-spacing: 1px; }
.page-header p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; }

.services-container { padding: 80px 10%; display: flex; flex-direction: column; gap: 80px; }
.service-card { display: flex; align-items: center; gap: 50px; background: white; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(47, 94, 72, 0.12); }
.service-card.reverse { flex-direction: row-reverse; }
.service-image { flex: 1; min-width: 350px; height: 400px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-info { flex: 1; padding: 40px 50px; }

/* CORRECCIÓN ICONOS/IMAGENES EN SERVICIOS */
.icon-title { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--primary); }
.icon-title i { font-size: 2rem; }
.icon-title h2 { font-size: 2rem; font-weight: 700; margin: 0; }

/* ESTO PERMITE QUE LA IMAGEN PEQUEÑA SE VEA REDONDA SI LA USAS AQUÍ */
.icon-title img { 
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary);
}

.service-info p { color: var(--text-light); margin-bottom: 30px; font-size: 1.05rem; line-height: 1.7; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; background-color: var(--whatsapp); color: white; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); transition: 0.3s; }
.btn-whatsapp:hover { background-color: #1ebc57; transform: translateY(-2px); }

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; letter-spacing: 1px; font-weight: 600; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.85); margin-bottom: 12px; display: block; text-decoration: none; }
.footer-col a:hover { color: var(--white); padding-left: 8px; color: var(--secondary); }
.socials a { display: inline-block; font-size: 1.4rem; margin-right: 20px; color: var(--white); opacity: 0.8; transition: 0.3s; background: transparent; width: auto; height: auto; line-height: normal; border-radius: 0; text-align: left; }
.socials a:hover { opacity: 1; color: var(--secondary); transform: translateY(-3px); background: transparent; padding-left: 0; }

/* === MÓVIL === */
@media (max-width: 900px) {
    .navbar { position: fixed !important; top: 0; left: 0; width: 100%; z-index: 2000; padding: 0 20px; }
    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: 15px; }
    .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: 1000; border-top: 1px solid #eee; overflow-y: auto; max-height: 80vh; }
    .nav-links.active { display: flex !important; }

    .service-card, .service-card.reverse { flex-direction: column; }
    .service-image { width: 100%; height: 250px; }
    .service-info { padding: 30px 20px; text-align: center; }
    
    .icon-title { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
    .icon-title h2 { font-size: 1.8rem; }
    
    .page-header { padding: 80px 20px; margin-top: 0; }
    .page-header h1 { font-size: 2.2rem; }
    
    footer { flex-direction: column; text-align: center; padding: 40px 20px; }
    .footer-col { width: 100%; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .socials { justify-content: center; display: flex; }
}