/* BZ Ingeniería — Hoja de estilo principal */

:root {
    --primary: #1e3a5f;
    --secondary: #2c5282;
    --accent: #3182ce;
    --accent-hover: #2b6cb0;
    --light: #f7fafc;
    --dark: #1a202c;
    --text-muted: #718096;
    --success: #2f855a;
    --warning: #ed8936;
    --danger: #e53e3e;
    --border-color: #e2e8f0;
}

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 140px; }

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

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header & Nav ─────────────────────────────────────────────────── */
.top-bar {
    background: #111827;
    color: #e5e7eb;
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.top-bar a { color: #60a5fa; font-weight: 700; text-decoration: none; margin-left: 0.4rem; }
.top-bar a:hover { text-decoration: underline; }

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo img { height: 60px; width: auto; }
.logo-text { color: var(--primary); font-weight: 700; font-size: 1.5rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn-primary { color: #fff; }

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { border-bottom: 1px solid #e2e8f0; }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; padding: 0.75rem 0; }
    .mobile-menu { display: block; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    margin-top: 130px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='80' cy='20' r='40' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='20' cy='80' r='30' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: cover;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-content .highlight { color: #63b3ed; font-weight: 700; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; }

.hero-badges { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.badge {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media { text-align: center; }
.hero-media img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-primary   { background: var(--accent);    color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success   { background: var(--success);   color: #fff; }
.btn-secondary { background: #fff;             color: var(--primary); border: 1px solid var(--border-color); }
.btn-block     { width: 100%; justify-content: center; font-size: 1.05rem; }

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 999;
    border-radius: 50%;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    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 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── Trust Bar ────────────────────────────────────────────────────── */
.trust-bar { background: var(--light); padding: 2rem; border-bottom: 1px solid var(--border-color); }
.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.trust-item .stat-number {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.trust-item p { color: #4a5568; font-weight: 500; }

/* ── Services ─────────────────────────────────────────────────────── */
.services { padding: 5rem 2rem; background: #fff; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.section-header p { color: #4a5568; font-size: 1.2rem; }

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-icon {
    width: 60px; height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-card h3 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.3rem; }
.service-card p { color: #4a5568; margin-bottom: 1rem; }

.service-features { list-style: none; margin-top: 1rem; }
.service-features li {
    padding: 0.3rem 0;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.service-features li::before { content: "✓"; color: var(--success); font-weight: bold; }

.service-link {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}
.service-link:hover { color: var(--primary); text-decoration: underline; }

/* ── Coverage ─────────────────────────────────────────────────────── */
.coverage { background: var(--primary); color: #fff; padding: 4rem 2rem; }
.coverage-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.coverage-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.coverage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.coverage-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}
.coverage-item strong { display: block; margin-bottom: 0.3rem; }
.coverage-item small { opacity: 0.9; }

.coverage-cta {
    background: rgba(255,255,255,0.08);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.coverage-cta .fa-truck-pickup { font-size: 3.5rem; color: #63b3ed; margin-bottom: 1rem; }
.coverage-cta h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.coverage-cta p { opacity: 0.9; font-size: 0.95rem; }
.coverage-cta .btn { margin-top: 1.5rem; }

/* ── Why Us ───────────────────────────────────────────────────────── */
.why-us { padding: 5rem 2rem; background: var(--light); }
.features-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-box { text-align: center; padding: 2rem; }
.feature-icon {
    width: 80px; height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    color: var(--primary);
}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact { padding: 5rem 2rem; background: #fff; }
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.5rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-icon { color: var(--accent); font-size: 1.2rem; margin-top: 0.2rem; }
.contact-detail a { color: var(--primary); text-decoration: none; font-weight: 600; }
.contact-detail a:hover { text-decoration: underline; }
.contact-icon.is-whatsapp,
.contact-detail a.is-whatsapp { color: #25D366; }

.contact-form { background: var(--light); padding: 2rem; border-radius: 12px; }
.form-title { color: var(--primary); margin-bottom: 1rem; font-size: 1.2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--dark); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }

.form-feedback { font-size: 0.85rem; min-height: 1.2em; margin-bottom: 0.8rem; }
.form-feedback.is-error   { color: var(--danger); }
.form-feedback.is-success { color: var(--success); }

/* ── Footer ───────────────────────────────────────────────────────── */
footer { background: var(--dark); color: #fff; padding: 3rem 2rem 1rem; }
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand span { font-weight: 700; font-size: 1.2rem; }
.footer-list { list-style: none; line-height: 2; font-size: 0.9rem; }
.footer-list a, .footer-grid a { color: #cbd5e0; text-decoration: none; }
.footer-list a:hover, .footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid h4 { margin-bottom: 1rem; }
.footer-grid .muted { color: #a0aec0; font-size: 0.9rem; line-height: 1.6; }

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* ── Pólizas de Mantenimiento (MRR) ─────────────────────────────────── */
.polizas-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border-top: 1px solid #e2e8f0;
}
.polizas-container {
    max-width: 1200px;
    margin: 0 auto;
}
.polizas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}
.poliza-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.poliza-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.poliza-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.15);
}
.poliza-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 1rem;
    border-radius: 20px;
}
.poliza-header h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.poliza-capacidad {
    display: inline-block;
    background: #ebf8ff;
    color: #2b6cb0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
}
.poliza-price {
    margin: 1.2rem 0;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
}
.poliza-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #718096;
}
.poliza-tax {
    display: block;
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
.poliza-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 0.92rem;
    line-height: 1.8;
}
.poliza-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: #4a5568;
}
.poliza-features li i {
    color: var(--success);
    margin-top: 0.3rem;
    flex-shrink: 0;
}
.poliza-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}
.poliza-btn-primary {
    background: var(--accent);
    color: #ffffff;
}
.poliza-btn-primary:hover {
    background: #d84315;
}
.poliza-btn-outline {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.poliza-btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}
.poliza-guarantee-badge {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px dashed var(--bz-navy-border, #cbd5e0);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: #4a5568;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content p { font-size: 0.95rem; }
    .section-header h2 { font-size: 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-container, .coverage-container, .contact-container { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .coverage-list { grid-template-columns: 1fr; }
    .cta-group .btn,
    .hero-content .btn,
    .coverage-cta .btn,
    .contact-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Clases Utilitarias y Cajas de Conversión ──────────────────────── */
.cta-box-promo {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #e2e8f0;
    border-radius: 12px;
}
.cta-box-promo h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}
.cta-box-promo p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}
.btn-shop-accent {
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: opacity 0.2s ease;
}
.btn-shop-accent:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* ── Clases para Páginas de Servicios CDMX ───────────────────────── */
.nav-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
}
.btn-cta-primary {
    background: var(--primary) !important;
    color: #ffffff !important;
}
.btn-cta-accent {
    background: var(--accent) !important;
    color: #ffffff !important;
}
.btn-cta-green {
    background: #2f855a !important;
    color: #ffffff !important;
}
.cta-row {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.cta-row-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.service-info-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.service-info-box h3 {
    color: var(--primary);
    margin-top: 0;
}
.service-info-box ul {
    margin-bottom: 0;
}
.brands-grid-cdmx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.brand-card-cdmx {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
}
.brand-card-cdmx strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
}
.brand-card-cdmx p {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.3rem;
}
.adv-card-accent { border-left: 4px solid var(--accent) !important; }
.adv-card-success { border-left: 4px solid var(--success) !important; }
.adv-card-warning { border-left: 4px solid var(--warning) !important; }
.adv-card-primary { border-left: 4px solid var(--primary) !important; }
.calc-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 1.5rem;
}
.icon-lg {
    font-size: 1.4rem;
}

/* ── SECCIÓN PREGUNTAS FRECUENTES (FAQ ACCORDION) ── */
.faq-section {
    padding: 4rem 2rem;
    background: #f8fafc;
}
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}
.faq-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(49,130,206,0.1);
}
.faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: "＋";
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after {
    content: "−";
    color: var(--primary);
}
.faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.98rem;
    border-top: 1px solid #edf2f7;
    margin-top: 0.5rem;
    padding-top: 0.8rem;
}
.faq-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fefcbf;
    color: #744210;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.faq-rating-badge .stars {
    color: #d69e2e;
}

/* ── BARRA FIJA DE CONVERSIÓN MÓVIL (STICKY BOTTOM BAR) ── */
.mobile-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
        z-index: 9999;
        padding: 8px 12px;
        gap: 10px;
        box-sizing: border-box;
        border-top: 1px solid #e2e8f0;
    }

    .mobile-sticky-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.92rem;
        text-decoration: none;
        text-align: center;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .mobile-sticky-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .mobile-sticky-btn-call {
        background: #ffffff;
        color: #1e3a5f;
        border: 2px solid #1e3a5f;
    }

    .mobile-sticky-btn-wa {
        background: #25D366;
        color: #ffffff;
        border: 2px solid #25D366;
    }

    /* Ajustar posición del botón circular flotante de WhatsApp en móvil para no tapar la barra */
    .btn-whatsapp {
        bottom: 75px !important;
        right: 18px !important;
        width: 52px !important;
        height: 52px !important;
    }

    /* Espacio inferior en el body para que la barra fija no tape el contenido del pie de página */
    body {
        padding-bottom: 70px !important;
    }
}

/* ==========================================================================
   COTIZADOR INTERACTIVO EN 3 PASOS (CRO & LEAD GENERATION)
   ========================================================================== */
.cotizador-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.cotizador-container {
    max-width: 860px;
    margin: 0 auto;
}

.cotizador-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.cotizador-header {
    background: #1e3a5f;
    color: #ffffff;
    padding: 30px 25px 20px;
    text-align: center;
}

.cotizador-header h1, .cotizador-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 0 10px;
    font-weight: 800;
}

.cotizador-header p {
    color: #cbd5e1;
    font-size: 1rem;
    margin: 0;
}

/* Barra de Progreso del Wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px 15px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.wizard-progress-track {
    position: absolute;
    top: 36px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: #cbd5e1;
    z-index: 1;
}

.wizard-progress-bar-fill {
    height: 100%;
    background: #3182ce;
    width: 33%;
    transition: width 0.35s ease;
}

.progress-step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #94a3b8;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step-item.active .step-circle {
    background: #3182ce;
    border-color: #3182ce;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.2);
}

.progress-step-item.completed .step-circle {
    background: #2f855a;
    border-color: #2f855a;
    color: #ffffff;
}

.step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.progress-step-item.active .step-label {
    color: #1e3a5f;
    font-weight: 700;
}

/* Pasos del Contenido */
.wizard-content {
    padding: 30px 25px;
}

.wizard-step-pane {
    display: none;
}

.wizard-step-pane.active {
    display: block;
    animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-instruction {
    text-align: center;
    margin-bottom: 25px;
}

.step-instruction h3 {
    font-size: 1.35rem;
    color: #1e3a5f;
    margin: 0 0 6px;
}

.step-instruction p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Grilla Paso 1: Tipo de Inmueble */
.inmueble-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.inmueble-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    user-select: none;
}

.inmueble-card:hover {
    border-color: #90cdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.1);
}

.inmueble-card.selected {
    border-color: #3182ce;
    background: #ebf8ff;
    box-shadow: 0 4px 14px rgba(49, 130, 206, 0.18);
}

.inmueble-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}

.inmueble-card h4 {
    margin: 0 0 5px;
    font-size: 1.05rem;
    color: #1e3a5f;
}

.inmueble-card p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.3;
}

.inmueble-card .check-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.7rem;
    background: #ffffff;
}

.inmueble-card.selected .check-indicator {
    border-color: #3182ce;
    background: #3182ce;
    color: #ffffff;
}

/* Configuración Paso 2: Soluciones */
.config-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.config-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.config-pill {
    flex: 1 1 calc(20% - 8px);
    min-width: 120px;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.config-pill:hover {
    border-color: #3182ce;
    background: #f0f9ff;
}

.config-pill.active {
    background: #3182ce;
    color: #ffffff;
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.25);
}

.config-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.config-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
}

.config-checkbox-label:hover {
    border-color: #90cdf4;
}

.config-checkbox-label.checked {
    border-color: #2f855a;
    background: #f0fff4;
    color: #22543d;
}

.config-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2f855a;
}

/* Paso 3: Ubicación y Contacto */
.step-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.step-form-full {
    grid-column: 1 / -1;
}

.step-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e3a5f;
}

.step-form-group input,
.step-form-group select,
.step-form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.step-form-group input:focus,
.step-form-group select:focus,
.step-form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* Paso 4: Resultados y Presupuesto */
.resultado-estimado-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.25);
}

.resultado-header-badge {
    display: inline-block;
    background: rgba(49, 130, 206, 0.3);
    border: 1px solid #63b3ed;
    color: #bee3f8;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.resultado-precio-rango {
    font-size: 2.2rem;
    font-weight: 800;
    color: #48bb78;
    margin: 8px 0 10px;
    letter-spacing: -0.5px;
}

.resultado-subtexto {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
}

.resumen-desglose {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.resumen-desglose h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #1e3a5f;
}

.resumen-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: #334155;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.resumen-item strong {
    color: #1e3a5f;
}

.incluye-garantia-list {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* Botones de Navegación del Wizard */
.wizard-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 12px;
}

.btn-wizard-back {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-wizard-back:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-wizard-next {
    background: #3182ce;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-wizard-next:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
}

.btn-wizard-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.btn-wizard-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

@media (max-width: 768px) {
    .inmueble-grid {
        grid-template-columns: 1fr;
    }
    .config-checkbox-group {
        grid-template-columns: 1fr;
    }
    .step-form-grid {
        grid-template-columns: 1fr;
    }
    .incluye-garantia-list {
        grid-template-columns: 1fr;
    }
    .resultado-precio-rango {
        font-size: 1.8rem;
    }
    .wizard-progress {
        padding: 15px 10px 10px;
    }
    .step-label {
        font-size: 0.7rem;
    }
}

/* ── Portafolio y Casos de Éxito Reales (CRO Social Proof) ──────────────── */
.portfolio-section {
    padding: 4rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 2rem;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.portfolio-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #edf2f7;
    overflow: hidden;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.03);
}

.portfolio-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(30, 58, 95, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portfolio-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    color: #1e3a5f;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.portfolio-info p {
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.portfolio-tag {
    font-size: 0.75rem;
    background: #edf2f7;
    color: #2b6cb0;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.portfolio-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.portfolio-cta-btn:hover {
    background: #20ba5a;
    color: #ffffff;
}

/* ── Lead Magnet Banner ─────────────────────────────────────────── */
.lead-magnet-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #2b6cb0 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin: 3.5rem auto;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.2);
}

.lead-magnet-text h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.lead-magnet-text p {
    color: #e2e8f0;
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.lead-magnet-badge {
    display: inline-block;
    background: #ecc94b;
    color: #1a202c;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.lead-magnet-cta .btn-magnet {
    background: #25D366;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.lead-magnet-cta .btn-magnet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

@media (max-width: 768px) {
    .lead-magnet-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .lead-magnet-cta {
        width: 100%;
    }
    .lead-magnet-cta .btn-magnet {
        width: 100%;
        justify-content: center;
    }
}



