/* ==========================================================================
   Plomería Exprés - Hoja de Estilos de Demostración
   Negocio ficticio para portafolio de diegosh.com
   ========================================================================== */

:root {
    --primary: #0284C7;
    --primary-dark: #0369A1;
    --primary-light: #E0F2FE;
    --accent: #F59E0B;
    --navy: #0F2744;
    --navy-dark: #0A192C;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --whatsapp: #25D366;
    --whatsapp-dark: #1EBE5D;
    --border: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(15, 39, 68, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 39, 68, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(15, 39, 68, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BARRA DE AVISO DEMO (FICTICIO)
   ========================================================================== */
.demo-banner {
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #FCD34D;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.demo-banner a {
    color: #92400E;
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 700;
}

/* ==========================================================================
   ESTRUCTURA GENERAL
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-navy {
    background-color: var(--navy);
    color: #FFFFFF;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.bg-navy .section-tag {
    color: #38BDF8;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--navy);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.bg-navy .section-title h2 {
    color: #FFFFFF;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.bg-navy .section-title p {
    color: #94A3B8;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 41px;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.3rem;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.brand-name span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-whatsapp-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-whatsapp-nav:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-bullets {
    list-style: none;
    margin-bottom: 30px;
}

.hero-bullets li {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-bullets li span.check-icon {
    width: 20px;
    height: 20px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp-hero {
    background: var(--whatsapp);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-whatsapp-hero:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--navy);
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Tarjeta rápida Hero */
.hero-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.hero-card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.hero-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-card-submit {
    width: 100%;
    background: var(--navy);
    color: #FFFFFF;
    border: none;
    padding: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-card-submit:hover {
    background: var(--primary);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.service-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-box p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   BENEFICIOS / POR QUÉ ELEGIRNOS
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #38BDF8;
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.benefit-card p {
    font-size: 0.92rem;
    color: #94A3B8;
}

/* ==========================================================================
   ZONAS DE COBERTURA
   ========================================================================== */
.zones-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.zones-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.zone-tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
}

.zone-tag.highlight {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-card:hover {
    border-color: var(--primary);
}

.faq-card summary {
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-icon-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}

details[open] .faq-icon-toggle {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   CONTACTO FINAL
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info h2,
.contact-info h3 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.contact-info p {
    color: #94A3B8;
    margin-bottom: 25px;
}

.contact-direct-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.contact-direct-card strong {
    display: block;
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--navy-dark);
    color: #94A3B8;
    padding: 40px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 20px;
}

.footer-demo-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #FCD34D;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* ==========================================================================
   MODAL / TOAST DE DEMOSTRACIÓN DE WHATSAPP
   ========================================================================== */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 44, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.demo-modal-overlay.active .demo-modal-box {
    transform: translateY(0);
}

.modal-icon-badge {
    width: 64px;
    height: 64px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.demo-modal-box h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.demo-modal-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.demo-modal-quote {
    background: var(--bg-light);
    border-left: 3px solid var(--whatsapp);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
    border-radius: 0 8px 8px 0;
}

.btn-close-modal {
    background: var(--navy);
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-modal:hover {
    background: var(--primary);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (DEMO)
   ========================================================================== */
.floating-whatsapp-demo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--whatsapp);
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.floating-whatsapp-demo:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 868px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }
}
