/* ==========================================================================
   CSS ESTILOS PREMIUM - PLOMEROS NAVOJOA (RANK & RENT)
   Mobile-First & Ultra-Rápido
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    --primary-color: #0b63e5; /* Azul Agua/Servicios */
    --primary-hover: #094eb8;
    --accent-color: #e03131;  /* Rojo Emergencia/Gas */
    --accent-hover: #c92a2a;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #128c7e;
    
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #12141c;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f8f9fa;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(11,99,229,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.06);
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de Estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px; /* Offset para el header fijo */
}

/* Layout y Utilidades */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .grid-2 {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

/* Títulos y Secciones */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-description-text {
    color: var(--text-secondary);
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.title-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0 auto;
    border-radius: 2px;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    gap: 10px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.15rem;
}

.btn-primary {
    background-color: var(--accent-color); /* Rojo/Naranja Emergencia prioritario */
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(224, 49, 49, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(224, 49, 49, 0.35);
}

.btn-secondary {
    background-color: var(--whatsapp-color);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-secondary:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

.btn-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Animación de Pulso para Llamada */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(224, 49, 49, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 49, 49, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Main Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    gap: 8px;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.logo-text strong {
    font-weight: 800;
    color: var(--primary-color);
}

.header-cta-desktop {
    display: none;
}

@media (min-width: 768px) {
    .header-cta-desktop {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .cta-label {
        font-weight: 500;
        color: var(--text-secondary);
        font-size: 0.95rem;
    }
    
    .phone-link-desktop {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--accent-color);
        font-weight: 800;
        font-size: 1.25rem;
        text-decoration: none;
        transition: var(--transition);
    }
    
    .phone-link-desktop:hover {
        color: var(--accent-hover);
        transform: scale(1.03);
    }
    
    .phone-icon {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-light);
    padding: 60px 0 80px 0;
    overflow: hidden;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(11, 99, 229, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    gap: 8px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero {
        padding: 90px 0 110px 0;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
}

.hero-lead {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 50px auto;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 1.25rem;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Manganese Alert Card */
.manganese-alert-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.manganese-alert-card {
    background-color: var(--bg-white);
    border-left: 5px solid var(--accent-color);
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .manganese-alert-card {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
}

.alert-icon {
    font-size: 2.2rem;
    background-color: rgba(224, 49, 49, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.alert-content p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.5;
}

.alert-content strong {
    color: var(--accent-color);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 99, 229, 0.2);
}

.service-card-icon-wrapper, .service-card-icon-wrapper-gas {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card-icon-wrapper {
    background-color: rgba(11, 99, 229, 0.08);
}

.service-card-icon-wrapper-gas {
    background-color: rgba(224, 49, 49, 0.08);
}

.service-card-icon {
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Local Problem Section */
.local-problem-section {
    padding: 85px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.local-text h2 {
    margin-top: 15px;
    margin-bottom: 20px;
}

.badge-accent {
    display: inline-block;
    background-color: rgba(11, 99, 229, 0.08);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

.local-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.local-list {
    list-style: none;
    margin-bottom: 35px;
}

.local-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1rem;
}

.local-list li strong {
    font-weight: 700;
}

.btn-inline-desktop {
    width: 100%;
}

@media (min-width: 576px) {
    .btn-inline-desktop {
        width: auto;
    }
}

.local-badge-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 24px;
    padding: 40px;
    color: var(--text-light);
    text-align: center;
    box-shadow: 0 15px 35px rgba(11, 99, 229, 0.25);
}

.badge-card-container {
    max-width: 320px;
    margin: 0 auto;
}

.badge-huge-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

.local-badge-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.local-badge-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.badge-phone {
    font-size: 1.6rem;
    font-weight: 800;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 16px;
}

/* Coverage Area Section */
.coverage-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.colonias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (min-width: 576px) {
    .colonias-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .colonias-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.colonia-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.colonia-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.colonia-dot {
    font-size: 1.1rem;
}

.coverage-footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    font-family: var(--font-main);
    gap: 20px;
}

.faq-icon-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in-out;
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(45deg);
    color: var(--accent-color);
}

/* Main Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 110px 0; /* Espacio extra abajo para el móvil cta */
}

@media (min-width: 768px) {
    .main-footer {
        padding: 80px 0 40px 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
    }
}

.footer-brand h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* MOBILE-ONLY FLOATING CALL BUTTON (90% de búsquedas urgentes) */
.mobile-cta-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
    padding: 12px 16px;
    z-index: 999;
}

@media (min-width: 768px) {
    .mobile-cta-floating {
        display: none; /* Ocultar en tablets y desktop */
    }
}

.btn-floating-call {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    height: 56px;
    border-radius: 14px;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(224, 49, 49, 0.3);
    animation: pulse 2.5s infinite;
}

.floating-icon {
    font-size: 1.35rem;
}

.floating-text {
    letter-spacing: 0.5px;
}
