/* Variables de Color Modernizadas */
:root {
    --primary-color: #003366; /* Azul más oscuro y elegante */
    --secondary-color: #e67e22; /* Naranjo corporativo */
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.d-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.8rem; font-weight: 800; text-decoration: none; }
.logo a { color: var(--primary-color); text-decoration: none; }
.logo span { color: var(--secondary-color); }

.nav-menu ul { display: flex; list-style: none; align-items: center; }
.nav-menu ul li { margin-left: 20px; }
.nav-menu ul li a { text-decoration: none; color: var(--dark-color); font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.nav-menu ul li a:hover, .nav-menu ul li a.active { color: var(--secondary-color); }

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
    transition: 0.3s background;
}
.btn-nav:hover { background: var(--secondary-color); }

/* Menú Móvil */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), 
                url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&q=80') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content { max-width: 700px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }

.badge {
    background: var(--secondary-color);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s all;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--secondary-color); color: var(--white); margin-right: 10px; }
.btn-primary:hover { background: #d67118; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4); }
.btn-secondary { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-secondary:hover { background: var(--white); color: var(--primary-color); }

/* Trust Bar */
.trust-bar { background: var(--white); padding: 25px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.d-flex-around { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 15px;}
.trust-item { font-weight: 700; color: var(--primary-color); font-size: 1rem; display: flex; align-items: center; }
.trust-item i { margin-right: 10px; color: var(--secondary-color); font-size: 1.2rem; }

/* Grid & Cards */
.services-section { padding: 80px 0; background: var(--light-color); }
.section-title { font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-color); }

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: 0.4s;
    border-bottom: 4px solid transparent;
}
.card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--secondary-color); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card-icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.card p { font-size: 1rem; color: var(--gray); margin-bottom: 20px; }

/* Formularios */
.contact-form { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-color); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--secondary-color); outline: none; box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2); }

/* Footer */
.footer { background: var(--primary-color); color: var(--white); padding: 60px 0 20px; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 30px;}
.footer-info h3 { font-size: 1.5rem; margin-bottom: 15px; }
.footer-contact p { margin-bottom: 10px; font-size: 1.1rem; }
.footer-contact i { color: var(--secondary-color); margin-right: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.9rem; color: #ccc; }

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.05); }
.whatsapp-btn i { font-size: 1.8rem; margin-right: 10px; }

/* Estilos extra para Obras Menores y Metodología */
.methodology-box { background: var(--white); border-left: 5px solid var(--secondary-color); padding: 30px; margin: 30px 0; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { display: none; width: 100%; text-align: center; background: var(--white); position: absolute; top: 100%; left: 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; padding: 20px 0; }
    .nav-menu ul li { margin: 10px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-content { flex-direction: column; text-align: center; }
}