/* --- Variables y Reset --- */
:root {
    --primary-blue: #006D9E; /* Azul del Logo */
    --primary-green: #8BC53F; /* Verde del Logo */
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --white: #ffffff;
    --gray: #666;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-blue); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(to right, var(--primary-blue), var(--primary-green)); margin-top: 10px; }
.text-center { text-align: center; }
.subtitle { color: var(--gray); margin-bottom: 50px; font-size: 1.1rem; }

/* --- Botones --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: linear-gradient(90deg, var(--primary-blue), var(--primary-green)); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,109,158,0.3); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-blue); }
.btn-light { background: var(--white); color: var(--primary-blue); }

/* --- Navbar --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background: var(--white); box-shadow: var(--shadow); z-index: 1000; padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a { font-weight: 600; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary-green); }
.btn-nav { background: var(--primary-blue); color: var(--white) !important; padding: 8px 20px; border-radius: 20px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }

/* --- Hero Section --- */
.hero { height: 100vh; background: url('../img/hero-bg.jpg') no-repeat center center/cover; position: relative; display: flex; align-items: center; text-align: center; color: var(--white); }
/* Para pruebas si no hay imagen aun: */
.hero { background-color: #333; } 
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 40, 60, 0.7); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 3rem; color: var(--white); margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* --- Nosotros --- */
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.col-text { flex: 1; min-width: 300px; }
.col-img { flex: 1; min-width: 300px; }
.stats-grid { display: flex; gap: 20px; margin-top: 30px; }
.stat-item { flex: 1; text-align: center; padding: 20px; background: var(--light); border-radius: 10px; }
.stat-item i { font-size: 2rem; color: var(--primary-green); margin-bottom: 10px; }
.stat-item span { font-weight: 600; display: block; font-size: 0.9rem; }
.img-placeholder { width: 100%; height: 350px; background: #ddd; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 10px; color: #777; }

/* --- Servicios --- */
.bg-light { background-color: #f9fbfd; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); transition: 0.3s; border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-5px); border-bottom-color: var(--primary-green); }
.icon-box { width: 60px; height: 60px; background: rgba(139, 197, 63, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.icon-box i { font-size: 1.5rem; color: var(--primary-blue); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 15px; }
.service-card p { font-size: 0.9rem; color: var(--gray); }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(135deg, var(--primary-blue), #004e75); color: var(--white); }
.cta-section h2 { color: var(--white); }
.cta-section p { margin-bottom: 30px; opacity: 0.9; }

/* --- Contacto --- */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 50px; }
.contact-info { flex: 1; min-width: 300px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { width: 50px; height: 50px; background: var(--light); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--primary-green); font-size: 1.2rem; }
.info-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.social-links { display: flex; gap: 15px; margin-top: 30px; }
.social-links a { width: 40px; height: 40px; background: var(--primary-blue); color: var(--white); display: flex; justify-content: center; align-items: center; border-radius: 50%; }
.social-links a:hover { background: var(--primary-green); }

.contact-form { flex: 1; min-width: 300px; background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-blue); }

/* --- Footer --- */
footer { background: #111; color: #888; padding: 30px 0; font-size: 0.9rem; }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: #25d366; color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 2000; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); display: none; }
    .nav-menu.active { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
}