:root {
    --primary-color: #1d3557;
    --secondary-color: #457b9d;
    --accent-color: #a8dadc;
    --highlight-color: #e63946;
    --light-color: #f1faee;
    --dark-color: #333;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.sticky {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-contenido { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }

/* Logo */
.nav-logo { display: flex; align-items: center; text-decoration: none; gap: 15px; }
.logo-icon { font-size: 2.5rem; color: var(--primary-color); }
.logo-nombre { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); line-height: 1.2; }
.logo-tagline { font-size: 0.9rem; color: var(--secondary-color); font-weight: 500; }

/* Menú principal */
.nav-menu { display: flex; list-style: none; gap: 5px; margin: 0; padding: 0; }
.nav-link {
    display: flex; align-items: center; gap: 8px; padding: 12px 20px; text-decoration: none;
    color: var(--dark-color); font-weight: 500; font-size: 1rem; border-radius: 8px;
    transition: all 0.3s ease; white-space: nowrap;
}
.nav-link i { font-size: 1.1rem; color: var(--primary-color); }
.nav-link:hover { background-color: rgba(29, 53, 87, 0.05); color: var(--primary-color); transform: translateY(-2px); }
.nav-item.active .nav-link { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; }
.nav-item.active .nav-link i { color: white; }

/* Dropdown */
.has-dropdown .nav-link { padding-right: 40px; position: relative; }
.has-dropdown .nav-link .fa-chevron-down { position: absolute; right: 15px; font-size: 0.8rem; transition: transform 0.3s ease; }
.has-dropdown:hover .nav-link .fa-chevron-down { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: white; min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 8px; padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
    list-style: none; z-index: 100;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px; text-decoration: none;
    color: var(--dark-color); font-size: 0.95rem; transition: all 0.2s ease;
}
.dropdown-menu a:hover { background-color: rgba(29, 53, 87, 0.05); color: var(--primary-color); padding-left: 25px; }

/* CTA Nav */
.nav-cta {
    display: flex; align-items: center; gap: 10px; padding: 12px 25px;
    background: linear-gradient(135deg, var(--highlight-color), #ff4d6d); color: white;
    text-decoration: none; border-radius: 50px; font-weight: 600; transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.2);
}
.nav-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3); }

/* Menú móvil */
.nav-mobile { display: none; }
.menu-toggle { background: none; border: none; font-size: 1.8rem; color: var(--primary-color); cursor: pointer; padding: 10px; }

/* Menú móvil overlay */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.9);
    z-index: 1100; display: none; opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu-overlay.show { opacity: 1; }
.mobile-menu-contenido {
    position: fixed; top: 0; right: 0; bottom: 0; width: 320px; background: white; padding: 30px;
    overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-menu-overlay.show .mobile-menu-contenido { transform: translateX(0); }

/* HERO SECTION */
.hero-section {
    position: relative; height: 80vh; min-height: 600px; margin-bottom: 80px; margin-top: 95px;
    background: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.9)),
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 900px; }
.hero-title { font-size: 4rem; font-weight: 800; margin-bottom: 20px; color: var(--light-color); line-height: 1.2; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 40px; color: var(--accent-color); font-weight: 300; }
.hero-stats { display: flex; justify-content: center; gap: 50px; margin: 50px 0; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 20px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; min-width: 150px; }
.stat-number { display: block; font-size: 3rem; font-weight: 700; color: var(--light-color); margin-bottom: 5px; }
.stat-text { font-size: 1.1rem; color: var(--accent-color); font-weight: 500; }

/* Botones comunes */
.btn-hero, .servicio-btn, .btn-ver-todos, .cta-button, .submit-button, .nav-cta {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px;
    text-decoration: none; font-weight: 600; transition: all 0.3s ease; border-radius: 50px;
}
.btn-hero { padding: 18px 35px; font-size: 1.2rem; min-width: 180px; justify-content: center; }
.btn-hero.primary { background-color: var(--highlight-color); color: white; box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3); }
.btn-hero.secondary { background-color: transparent; color: white; border: 2px solid white; }
.btn-hero:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* COMPROMISO SECTION */
.compromiso-section { padding: 60px 0; background-color: #f8f9fa; }
.compromiso-container {
    padding: 30px 45px; margin: 0 auto; max-width: 1000px;
    border-left: 4px solid var(--accent-color);
}
.compromiso-contenido { display: block; }
.compromiso-icono { display: none; }
.compromiso-titulo { color: var(--primary-color); font-size: 1.6rem; margin-bottom: 8px; }
.compromiso-descripcion { font-size: 1.15rem; color: var(--secondary-color); margin: 10px 0; font-style: italic; }
.compromiso-compromiso {
    font-size: 1.05rem; color: #555; margin: 12px 0 0 0;
    padding: 0; background: none; border: none; border-radius: 0;
}

/* SERVICIOS SECTION */
.servicios-section { padding: 80px 0; background-color: white; }
.section-title {
    color: var(--primary-color); font-size: 2.5rem; margin-bottom: 20px; font-weight: 700;
    position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 0; width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color)); border-radius: 2px;
}
.center-title { text-align: center; }
.center-title::after { left: 50%; transform: translateX(-50%); }
.section-subtitle { text-align: center; color: var(--secondary-color); font-size: 1.2rem; margin-bottom: 50px; max-width: 700px; margin: 0 auto 50px; }

.servicios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin: 50px 0; }
.servicio-card {
    background: white; padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #eaeaea;
    display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden;
}
.servicio-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-color: var(--accent-color); }
.servicio-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
}
.servicio-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; text-align: center; }
.servicio-title { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 600; text-align: center; }
.servicio-desc { color: var(--secondary-color); margin-bottom: 20px; text-align: center; flex-grow: 1; }
.servicio-list { list-style: none; padding: 0; margin-bottom: 25px; }
.servicio-list li { margin-bottom: 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; color: var(--dark-color); }
.servicio-list li i { color: var(--accent-color); }
.servicio-btn {
    background-color: var(--primary-color); color: white; border: 2px solid var(--primary-color);
    margin-top: auto; justify-content: center;
}
.servicio-btn:hover { background-color: white; color: var(--primary-color); transform: translateY(-3px); }
.btn-ver-todos {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white;
    padding: 16px 35px; font-size: 1.1rem; box-shadow: 0 8px 20px rgba(29, 53, 87, 0.2);
}
.btn-ver-todos:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(29, 53, 87, 0.3); }

/* WHY CHOOSE SECTION */
.why-choose-section { padding: 80px 0; background-color: #f8f9fa; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.benefit-item { text-align: center; padding: 40px 25px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.3s ease; }
.benefit-item:hover { transform: translateY(-10px); }
.benefit-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px; }
.benefit-title { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 600; }
.benefit-text { color: var(--secondary-color); font-size: 1.05rem; line-height: 1.6; }

/* ZONA SECTION */
.zona-section {
    padding: 80px 0; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white; position: relative; overflow: hidden;
}
.zona-section .section-title { color: #a8dadc; }
.zona-content { display: flex; align-items: center; gap: 50px; position: relative; z-index: 2; }
.zona-desc { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; }
.service-areas { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.area-tag {
    background: rgba(255, 255, 255, 0.15); padding: 10px 20px; border-radius: 50px; font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3); transition: all 0.3s ease;
}
.area-tag:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-3px); }
.zona-image i { font-size: 8rem; color: rgba(255, 255, 255, 0.2); }

/* CONTACTO SECTION */
.contacto-section { padding: 80px 0; background-color: white; }
.form-container { max-width: 800px; margin: 0 auto; background: white; padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-header { text-align: center; margin-bottom: 40px; }
.form-title { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 15px; }
.form-subtitle { color: var(--secondary-color); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group input, .form-group textarea {
    padding: 15px; border: 2px solid #eaeaea; border-radius: 8px; font-size: 1rem; font-family: inherit;
    transition: all 0.3s ease; background-color: #f9f9f9;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent-color); background-color: white;
    box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.2);
}
.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white;
    border: none; padding: 18px 40px; font-size: 1.2rem; box-shadow: 0 8px 20px rgba(29, 53, 87, 0.2);
    justify-content: center; cursor: pointer;
}
.submit-button:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(29, 53, 87, 0.3); }
.contact-info-rapida { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 50px; padding-top: 40px; border-top: 2px solid #eaeaea; }
.contact-item {
    display: flex; align-items: center; gap: 20px; padding: 20px; background-color: #f9f9f9;
    border-radius: 10px; transition: transform 0.3s ease; flex: 0 1 300px; min-width: 260px;
}
.contact-item:hover { transform: translateY(-5px); background-color: #f1f9ff; }
.contact-item i { font-size: 2rem; color: var(--accent-color); background: white; padding: 15px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.contact-item h4 { color: var(--primary-color); margin-bottom: 5px; font-size: 1.1rem; }
.contact-item p { color: var(--secondary-color); font-size: 0.95rem; }

/* CTA SECTION */
.cta-section {
    padding: 100px 0; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white; text-align: center; position: relative; overflow: hidden;
}
.cta-title { font-size: 2.8rem; margin-bottom: 20px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.cta-text { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; max-width: 600px; margin: 0 auto 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-button { min-width: 180px; justify-content: center; }
.cta-button.phone { background-color: var(--highlight-color); color: white; box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3); }
.cta-button.email { background-color: white; color: var(--primary-color); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2); }
.cta-button.about { background-color: transparent; color: white; border: 2px solid white; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

/* WHATSAPP BUTTON */
.whatsapp-fijo {
    position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #25d366, #128c7e);
    color: white; padding: 18px 25px; border-radius: 50px; text-decoration: none; font-size: 1.2rem;
    font-weight: 600; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); transition: all 0.3s ease;
    z-index: 1000; display: flex; align-items: center; gap: 10px; animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-fijo:hover { transform: scale(1.1); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6); }

/* FOOTER */
.footer {
    width: 100%; background-color: #1a1a2e; color: #ffffff; padding: 40px 20px; margin-top: 0;
}
.footer-contenido { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; justify-content: space-between; gap: 30px; }
.footer-columna { flex: 1; min-width: 150px; }
.footer-titulo { font-size: 1.1em; font-weight: bold; margin-bottom: 15px; color: #00bcd4; border-bottom: 2px solid #00bcd4; padding-bottom: 5px; }
.footer-columna ul { list-style: none; padding: 0; margin: 0; }
.footer-columna ul li { margin-bottom: 10px; }
.footer-columna ul li a {
    color: #cccccc; text-decoration: none; font-size: 0.95rem; transition: color 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.footer-columna ul li a:hover { color: #ffffff; text-decoration: underline; }
.footer-columna.contacto p { margin: 5px 0; color: #cccccc; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.redes-sociales { display: flex; gap: 10px; margin-bottom: 20px; }
.redes-sociales a {
    color: #1a1a2e; background-color: #ffffff; border-radius: 50%; width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease;
}
.redes-sociales a:hover { background-color: #00bcd4; color: #ffffff; transform: translateY(-3px); }
.footer-copyright { text-align: center; padding-top: 20px; margin-top: 30px; border-top: 1px solid #333; }
.footer-copyright p { margin: 0; font-size: 0.9em; color: #888888; }

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content, .compromiso-container, .servicio-card, .benefit-item, .contact-item, .cta-content {
    animation: fadeInUp 0.8s ease-out;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.5rem; }
    .zona-content { flex-direction: column; text-align: center; }
    .zona-image { order: -1; }
    .zona-image i { font-size: 6rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .compromiso-titulo { text-align: center; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
    .nav-mobile { display: block; }
    .nav-contenido { padding: 10px 0; }
    .hero-section { margin-top: 95px; }
    .hero-buttons { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .btn-hero { min-width: 160px; }
}

@media (max-width: 768px) {
    .hero-section { height: 70vh; min-height: 520px; margin-top: 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; margin-bottom: 25px; }
    .hero-stats { gap: 12px; margin: 25px 0; flex-wrap: nowrap; }
    .stat-item { flex: 1; min-width: 0; padding: 12px 8px; }
    .stat-number { font-size: 1.8rem; }
    .stat-text { font-size: 0.78rem; }
    .hero-buttons, .cta-buttons { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; max-width: 260px; padding: 14px 24px; font-size: 1.05rem; min-width: 0; }
    .cta-button { width: 100%; max-width: 300px; }
    .section-title { font-size: 2rem; }
    .servicios-grid, .benefits-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 30px 20px; }
    .compromiso-container { padding: 30px 20px; margin: 0 20px; }
}

@media (max-width: 576px) {
    /* height: auto es la clave — el contenido nunca se sale del hero */
    .hero-section { height: auto; min-height: 0; padding: 100px 0 45px; }
    .hero-content { padding: 0 18px; }
    .hero-title { font-size: 1.65rem; line-height: 1.25; margin-bottom: 12px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 18px; }
    .hero-stats { gap: 8px; margin: 18px 0; flex-wrap: nowrap; }
    .stat-item { flex: 1; min-width: 0; padding: 10px 6px; }
    .stat-number { font-size: 1.5rem; }
    .stat-text { font-size: 0.68rem; }
    .hero-buttons { gap: 10px; margin-top: 5px; }
    .btn-hero { padding: 12px 20px; font-size: 0.95rem; max-width: 230px; }
    .section-title { font-size: 1.8rem; }
    .cta-title { font-size: 2rem; }
    .cta-text { font-size: 1.1rem; }
    .whatsapp-fijo { bottom: 20px; right: 20px; padding: 15px 20px; font-size: 1rem; }
    .compromiso-descripcion { font-size: 1.1rem; }
    .compromiso-compromiso { font-size: 1rem; }
    .service-areas { justify-content: center; }
    .contact-info-rapida { gap: 15px; }
    .contact-item { min-width: 100%; flex: 1 1 100%; }
    .servicios-grid { gap: 20px; }
    .servicio-card { padding: 30px 20px; }
    .form-container { padding: 25px 15px; }
}

@media (max-width: 400px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.65rem; }
    .cta-title { font-size: 1.75rem; }
    .compromiso-container { padding: 22px 12px; }
}

.text-center { text-align: center; }