@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap');

/* ============================
   RESET Y ESTILOS BASE
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    min-height: 100vh;
    text-align: left;
    position: relative;
    padding-top: 92px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    line-height: 1.8;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('logo.webp') no-repeat center center/contain;
    opacity: 0.15;
    z-index: -1;
}

/* ============================
   HEADER Y NAVEGACIÓN
   ============================ */
.main-header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ffc107;
    padding: 10px 20px;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu li a:hover {
    background-color: #ffc107;
    color: #1a1a1a;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffc107;
    font-size: 2em;
    cursor: pointer;
    padding: 5px 10px;
    flex-shrink: 0;
}

.mobile-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    z-index: 999;
    border-bottom: 1px solid #ffc107;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 700;
    transition: color 0.3s;
}

.mobile-menu ul li a:hover {
    color: #ffc107;
}

/* ============================
   CONTENEDOR PRINCIPAL
   ============================ */
.localidad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* ============================
   HERO SECTION LOCAL
   ============================ */
.localidad-hero {
    background: linear-gradient(135deg, #2c5f2d 0%, #4a7c59 50%, #588a6a 100%);
    border-radius: 15px;
    padding: 60px 30px;
    margin: 30px auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(76, 175, 80, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
}

.localidad-title {
    font-size: 2.8em;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.localidad-subtitle {
    font-size: 1.3em;
    color: #ecf0f1;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.localidad-subtitle strong {
    color: #4caf50;
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-hero-telefono,
.btn-hero-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-telefono {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #ffffff;
    border: 2px solid #ffc107;
}

.btn-hero-telefono:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.btn-hero-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border: 2px solid #25d366;
}

.btn-hero-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-hero-telefono i,
.btn-hero-whatsapp i {
    font-size: 1.3em;
}

/* ============================
   SECCIONES GENERALES
   ============================ */
.section-title {
    font-size: 2.2em;
    font-weight: 800;
    color: #ffc107;
    margin: 60px 0 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.section-title i {
    font-size: 1.2em;
}

.section-intro {
    font-size: 1.2em;
    color: #cccccc;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ============================
   INTRODUCCIÓN
   ============================ */
.intro-localidad-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 40px 30px;
    margin: 40px auto;
    max-width: 1200px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.intro-text strong {
    color: #4caf50;
}

/* ============================
   ZONAS GRID
   ============================ */
.zonas-localidad-section {
    padding: 20px 0;
}

.zonas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px auto;
    max-width: 1200px;
}

.zona-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    text-align: left;
}

.zona-card:hover {
    transform: translateY(-5px);
    border-color: #4caf50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.zona-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.zona-icon i {
    font-size: 1.6em;
    color: #ffffff;
}

.zona-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 12px;
}

.zona-card p {
    color: #cccccc;
    font-size: 0.95em;
    line-height: 1.6;
}

.zona-nota {
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.4);
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 900px;
    margin: 30px auto 0;
}

.zona-nota i {
    color: #4caf50;
    font-size: 1.5em;
    flex-shrink: 0;
}

.zona-nota p {
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

.zona-nota strong {
    color: #4caf50;
}

/* ============================
   SERVICIOS GRID
   ============================ */
.servicios-localidad-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 50px 30px;
    margin: 60px auto;
    max-width: 1200px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.servicios-localidad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.servicio-localidad-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 25px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
    display: block;
}

.servicio-localidad-card:hover {
    transform: translateY(-5px);
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.servicio-localidad-card.urgencia-card {
    border-color: rgba(231, 76, 60, 0.4);
    background: rgba(231, 76, 60, 0.05);
}

.servicio-localidad-card.urgencia-card:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.servicio-localidad-card.urgencia-card .servicio-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.servicio-icon i {
    font-size: 1.6em;
    color: #ffffff;
}

.servicio-localidad-card h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 12px;
}

.servicio-localidad-card.urgencia-card h3 {
    color: #e74c3c;
}

.servicio-localidad-card p {
    color: #cccccc;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.servicio-link {
    color: #ffc107;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================
   PROYECTOS LOCALES
   ============================ */
.proyectos-localidad-section {
    padding: 40px 0;
}

.proyectos-localidad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px auto;
    max-width: 1200px;
}

.proyecto-localidad-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: left;
}

.proyecto-localidad-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.proyecto-localidad-icon i {
    font-size: 1.3em;
    color: #ffffff;
}

.proyecto-localidad-item h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 12px;
}

.proyecto-localidad-item p {
    color: #cccccc;
    font-size: 0.9em;
    line-height: 1.6;
}

.proyectos-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.proyectos-cta p {
    color: #e0e0e0;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.btn-proyectos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-proyectos:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

/* ============================
   VENTAJAS GRID
   ============================ */
.por-que-localidad-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 50px 30px;
    margin: 60px auto;
    max-width: 1200px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.ventaja-item {
    text-align: center;
    padding: 25px 20px;
}

.ventaja-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ventaja-icon i {
    font-size: 1.8em;
    color: #ffffff;
}

.ventaja-item h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 12px;
}

.ventaja-item p {
    color: #cccccc;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ============================
   CTA FINAL
   ============================ */
.cta-final-localidad {
    background: linear-gradient(135deg, #2c5f2d 0%, #4a7c59 100%);
    border-radius: 15px;
    padding: 50px 30px;
    margin: 60px auto;
    max-width: 1000px;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.3);
}

.cta-final-content {
    text-align: center;
}

.cta-final-content h2 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-final-content p {
    font-size: 1.15em;
    color: #ecf0f1;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-final-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.btn-final-telefono,
.btn-final-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-final-telefono {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #ffffff;
    border: 2px solid #ffc107;
}

.btn-final-telefono:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.btn-final-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border: 2px solid #25d366;
}

.btn-final-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-final-telefono i,
.btn-final-whatsapp i {
    font-size: 1.3em;
}

.cta-garantia {
    margin-top: 25px;
    font-size: 0.95em;
    color: #bdc3c7;
}

.cta-garantia i {
    color: #4caf50;
    margin-right: 8px;
}

/* ============================
   FOOTER
   ============================ */
.main-footer {
    background-color: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #ffc107;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: #999999;
    margin: 10px 0;
}

.footer-content a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #ffffff;
}

.footer-servicios {
    margin-bottom: 15px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .localidad-title {
        font-size: 1.8em;
    }

    .localidad-subtitle {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .zonas-grid,
    .servicios-localidad-grid,
    .proyectos-localidad-grid,
    .ventajas-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-buttons,
    .cta-final-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-telefono,
    .btn-hero-whatsapp,
    .btn-final-telefono,
    .btn-final-whatsapp {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 75px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .localidad-hero {
        padding: 40px 20px;
    }

    .localidad-title {
        font-size: 1.5em;
    }

    .localidad-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.4em;
    }

    .zona-card,
    .servicio-localidad-card,
    .proyecto-localidad-item {
        padding: 20px 15px;
    }
}
