/* ==========================================================================
   ASOCIACIÓN CLÍNICA PARA LA RODILLA — V3 LIGHT PREMIUM
   ========================================================================== */

:root {
    --teal: #2BA0B4;
    --teal-50: #E8F7FA;
    --teal-100: #C4EDF3;
    --teal-200: #8DDAE6;
    --teal-600: #1E8193;
    --teal-700: #166A79;
    --teal-shadow: rgba(43, 160, 180, 0.2);
    --teal-glow: rgba(43, 160, 180, 0.12);

    --crimson: #C4323C;
    --crimson-50: #FDF2F2;
    --crimson-100: #FCE4E4;
    --crimson-600: #A5222B;
    --crimson-shadow: rgba(196, 50, 60, 0.15);

    --gray-950: #0C0F17;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }
body {
    font-family: var(--font);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { color: var(--gray-900); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--teal); transition: color var(--transition); }
a:hover { color: var(--teal-700); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.text-highlight {
    color: var(--teal);
    position: relative;
}
.text-crimson { color: var(--crimson); font-weight: 900; }

/* ── Section Utilities ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.section-desc { color: var(--gray-500); font-size: 1.05rem; }
.section-label {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.6875rem; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; color: var(--teal);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 100px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem; border-radius: var(--radius);
    font-weight: 700; font-family: var(--font); font-size: 0.9rem;
    cursor: pointer; border: none; transition: all var(--transition);
    text-decoration: none; white-space: nowrap;
}
.btn-primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 14px var(--teal-shadow);
}
.btn-primary:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43,160,180,0.3);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal-200);
}
.btn-outline:hover { background: var(--teal-50); border-color: var(--teal); color: var(--teal-700); }
.btn-wa {
    background: rgba(37,211,102,0.08);
    color: #128C7E;
    border: 1.5px solid rgba(37,211,102,0.2);
}
.btn-wa:hover {
    background: #25D366; color: var(--white);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.btn-nav-cta {
    background: var(--crimson) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.8125rem !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 4px 14px var(--crimson-shadow);
}
.btn-nav-cta:hover { background: var(--crimson-600) !important; transform: translateY(-1px); }
.btn-submit {
    width: 100%; justify-content: center;
    background: var(--crimson); color: var(--white);
    padding: 0.95rem; font-size: 1rem; font-weight: 800;
    box-shadow: 0 6px 20px var(--crimson-shadow);
    border: none; border-radius: var(--radius); cursor: pointer;
    font-family: var(--font); transition: all var(--transition);
}
.btn-submit:hover { background: var(--crimson-600); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196,50,60,0.25); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Topbar ── */
.topbar {
    background: var(--gray-900);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    position: relative; z-index: 1001;
}
.topbar-inner { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: nowrap; overflow: hidden; }
.topbar-text { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: #34D399; box-shadow: 0 0 8px #34D399;
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.topbar-cta {
    color: var(--teal-200); font-weight: 700;
    padding: 0.2rem 0.75rem; border: 1px solid rgba(43,160,180,0.3);
    border-radius: 100px; font-size: 0.75rem;
    transition: all var(--transition);
}
.topbar-cta:hover { background: var(--teal); color: var(--white); }

/* ── Navbar ── */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
    transition: all var(--transition);
}
header.scrolled { box-shadow: var(--shadow-md); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { max-height: 42px; width: auto; }
.nav-menu ul { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
    color: var(--gray-600); font-weight: 500; font-size: 0.875rem;
    position: relative; padding: 0.25rem 0;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background: var(--teal);
    transition: width var(--transition);
}
.nav-link:hover { color: var(--gray-900); }
.nav-link:hover::after { width: 100%; }
.nav-phone-link {
    display: flex; align-items: center; gap: 0.35rem;
    color: var(--gray-900); font-weight: 700; font-size: 0.875rem;
}
.nav-phone-link svg { color: var(--teal); }
.mobile-menu-toggle {
    display: none; background: transparent; border: none; cursor: pointer;
    width: 24px; height: 18px; position: relative;
}
.mobile-menu-toggle span {
    display: block; width: 100%; height: 2px; background: var(--gray-800);
    position: absolute; border-radius: 2px; transition: all 0.3s;
}
.mobile-menu-toggle span:nth-child(1) { top:0; }
.mobile-menu-toggle span:nth-child(2) { top:8px; }
.mobile-menu-toggle span:nth-child(3) { top:16px; }

/* ── Hero ── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(170deg, var(--gray-50) 0%, var(--white) 40%, var(--teal-50) 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: -50%; right: -20%; width: 70%; height: 200%;
    background: radial-gradient(circle, rgba(43,160,180,0.04), transparent 60%);
    z-index: 0;
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--teal);
    background: var(--teal-50); border: 1px solid var(--teal-100);
    border-radius: 100px; padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal); box-shadow: 0 0 10px var(--teal);
    animation: pulse-green 2s infinite;
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    margin-bottom: 1rem;
    color: var(--gray-950);
}
.hero-sub { font-size: 1.1rem; color: var(--gray-500); max-width: 520px; margin-bottom: 2rem; }

/* Hero Mini Form */
.hero-mini-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 540px;
}
.hero-mini-form h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.mini-form-sub { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 1rem; }
.mini-form-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.mf-input {
    flex: 1; padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius);
    font-family: var(--font); font-size: 0.875rem; color: var(--gray-800);
    transition: all var(--transition); background: var(--gray-50);
}
.mf-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); background: var(--white); }
.mf-input::placeholder { color: var(--gray-400); }
.mf-select { appearance: none; cursor: pointer; }
.btn-mini-submit {
    background: var(--crimson); color: var(--white);
    padding: 0.7rem 1.25rem; border: none; border-radius: var(--radius);
    font-family: var(--font); font-weight: 800; font-size: 0.8125rem;
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
    box-shadow: 0 4px 14px var(--crimson-shadow);
}
.btn-mini-submit:hover { background: var(--crimson-600); transform: translateY(-1px); }
.mini-form-trust {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.6875rem; color: var(--gray-400); font-weight: 500;
    margin-top: 0.75rem;
}
.mini-form-trust svg { color: var(--gray-400); flex-shrink: 0; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-img-wrapper {
    position: relative; border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--shadow-xl);
}
.hero-img { width: 100%; height: 480px; object-fit: cover; }
.hero-img-prosthesis {
    object-fit: contain;
    background: radial-gradient(ellipse at center, rgba(0,194,168,0.08) 0%, transparent 70%);
    filter: drop-shadow(0 0 40px rgba(0,194,168,0.3)) drop-shadow(0 0 80px rgba(0,194,168,0.1));
}
.hero-img-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
}
.float-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    display: flex; align-items: center; gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}
.fc-top { top: 20px; right: -15px; }
.fc-bottom { bottom: 30px; left: -15px; animation-delay: -3s; }
.fc-icon {
    width: 36px; height: 36px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fc-teal { background: var(--teal-50); color: var(--teal); }
.fc-gold { background: #FEF3C7; color: #D97706; }
.float-card strong { display: block; font-size: 0.875rem; color: var(--gray-900); }
.float-card span { font-size: 0.6875rem; color: var(--gray-500); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Trust Bar ── */
.trust-bar {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.trust-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 200px; }
.trust-icon {
    width: 48px; height: 48px; border-radius: var(--radius-lg);
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 0.8125rem; color: var(--gray-900); font-weight: 700; }
.trust-item span { font-size: 0.75rem; color: var(--gray-500); }
.trust-divider { width: 1px; height: 40px; background: var(--gray-200); }

/* ── Surgeries ── */
.surgeries-section { padding: 5rem 0; background: var(--gray-50); }
.surgery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.5rem;
}
.s-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden; transition: all var(--transition);
    display: flex; flex-direction: column;
    position: relative;
}
.s-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--teal-200);
}
.s-featured { border-color: var(--teal-200); box-shadow: 0 0 0 1px var(--teal-100), var(--shadow-lg); }
.s-card-badge {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    padding: 0.25rem 0.65rem; font-size: 0.6875rem; font-weight: 800;
    border-radius: var(--radius); letter-spacing: 0.3px;
    background: var(--crimson); color: var(--white);
}
.s-badge-alt { background: var(--teal-50); color: var(--teal); border: 1px solid var(--teal-100); }
.s-card-img { position: relative; height: 190px; overflow: hidden; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.s-card:hover .s-card-img img { transform: scale(1.05); }
.s-card-img-fade {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, var(--white), transparent);
}
.s-card-body { padding: 1.25rem 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.s-card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.s-card-body > p { color: var(--gray-500); font-size: 0.875rem; }
.s-card-list { margin: auto 0 1rem; padding-top: 0.5rem; }
.s-card-list li {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.8125rem; font-weight: 600; color: var(--gray-700);
    margin-bottom: 0.35rem;
}
.s-card-list svg { color: var(--teal); flex-shrink: 0; }
.s-card-btn { width: 100%; justify-content: center; }

/* ── Counters ── */
.counters-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--teal), var(--teal-600));
}
.counters-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.counter-item { text-align: center; }
.counter-number {
    font-size: 2.75rem; font-weight: 900; color: var(--white);
    display: inline;
}
.counter-suffix { font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,0.8); }
.counter-label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: rgba(255,255,255,0.75); text-transform: uppercase;
    letter-spacing: 1px; margin-top: 0.25rem;
}

/* ── Why Section ── */
.why-section { padding: 5rem 0; background: var(--white); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.why-visual { position: relative; }
.why-image {
    width: 100%; height: 480px; object-fit: cover;
    border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
}
.why-accent-border {
    position: absolute; top: -12px; left: -12px; width: 100%; height: 100%;
    border: 2px solid var(--teal-200); border-radius: var(--radius-xl); z-index: -1;
}
.testimonial-float {
    position: absolute; bottom: -15px; right: -15px;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 1.25rem;
    max-width: 280px; box-shadow: var(--shadow-lg); z-index: 5;
}
.tf-stars { color: #F59E0B; font-size: 0.8125rem; margin-bottom: 0.35rem; letter-spacing: 2px; }
.testimonial-float p { font-size: 0.8125rem; color: var(--gray-600); font-style: italic; margin-bottom: 0.5rem; }
.tf-author { display: flex; align-items: center; gap: 0.5rem; }
.tf-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal);
    font-size: 0.6875rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.tf-author strong { font-size: 0.75rem; color: var(--gray-900); display: block; }
.tf-author span { font-size: 0.625rem; color: var(--gray-500); }
.why-content h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 0.75rem; }
.why-intro { color: var(--gray-500); font-size: 1rem; margin-bottom: 1.5rem; }
.benefit-list { margin-bottom: 1.5rem; }
.benefit-item {
    display: flex; gap: 0.75rem; padding: 0.875rem;
    margin-bottom: 0.5rem; border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all var(--transition);
}
.benefit-item:hover { background: var(--teal-50); border-color: var(--teal-100); }
.b-icon {
    width: 42px; height: 42px; border-radius: var(--radius);
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid var(--teal-100);
}
.benefit-item h4 { font-size: 0.9375rem; margin-bottom: 0.15rem; }
.benefit-item p { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }
.why-cta { margin-top: 0.5rem; }

/* ── Testimonials ── */
.testimonials-section { padding: 5rem 0; background: var(--gray-50); }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
.testi-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition);
    display: flex; flex-direction: column;
    position: relative;
}
.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-200);
}
.testi-featured {
    border-left: 4px solid var(--teal);
    background: linear-gradient(135deg, var(--white), var(--teal-50));
}
.testi-rating { color: #F59E0B; font-size: 0.8125rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.testi-quote {
    font-size: 0.9rem; color: var(--gray-600);
    line-height: 1.7; flex-grow: 1;
    font-style: italic;
}
.testi-quote strong { color: var(--gray-800); font-style: normal; }
.testi-author {
    display: flex; align-items: center; gap: 0.6rem;
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}
.testi-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal);
    font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 2px solid var(--teal-100);
}
.testi-author strong { font-size: 0.8125rem; color: var(--gray-900); display: block; }
.testi-author span { font-size: 0.6875rem; color: var(--gray-500); }
.testi-tag-procedure {
    position: absolute; top: 14px; right: 14px;
    padding: 0.2rem 0.6rem;
    background: var(--teal-50); color: var(--teal);
    font-size: 0.5625rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 100px; border: 1px solid var(--teal-100);
}
.testi-cta-wrap {
    text-align: center; margin-top: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; flex-wrap: wrap;
}
.testi-cta-text {
    font-size: 1.1rem; font-weight: 800; color: var(--gray-800); margin: 0;
}

/* ── FAQ ── */
.faq-section { padding: 5rem 0; background: var(--gray-50); }
.faq-grid { max-width: 750px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item:hover { border-color: var(--teal-200); }
.faq-item.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal-glow); }
.faq-question {
    width: 100%; padding: 1rem 1.25rem;
    background: transparent; border: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: var(--font);
    font-size: 0.9375rem; font-weight: 700; color: var(--gray-800);
    text-align: left;
}
.faq-chevron { transition: transform var(--transition); color: var(--gray-400); flex-shrink: 0; margin-left: 1rem; }
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--teal); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.25rem;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 1.25rem 1.25rem; }
.faq-answer p { font-size: 0.875rem; color: var(--gray-500); margin: 0; line-height: 1.7; }

/* ── Branches ── */
.branches-section { padding: 5rem 0; background: var(--white); }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.branch-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: all var(--transition);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--teal-200); }
.bc-img { position: relative; height: 160px; overflow: hidden; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.branch-card:hover .bc-img img { transform: scale(1.06); }
.bc-img-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, var(--white), transparent);
}
.bc-map { height: 180px; }
.bc-map iframe {
    width: 100%; height: 100%; border: 0;
    pointer-events: none; transition: filter 0.3s;
    filter: saturate(0.9);
}
.branch-card:hover .bc-map iframe { pointer-events: auto; filter: saturate(1); }
.bc-tag {
    position: absolute; top: 10px; left: 10px;
    padding: 0.2rem 0.5rem; background: var(--white);
    color: var(--teal); font-size: 0.625rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: var(--radius); border: 1px solid var(--teal-100);
    box-shadow: var(--shadow-sm);
}
.bc-body { padding: 1rem 1.25rem; }
.bc-body h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.bc-detail {
    display: flex; align-items: flex-start; gap: 0.4rem;
    font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.35rem;
}
.bc-detail svg { color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.bc-cta {
    display: block; text-align: center; padding: 0.75rem;
    background: var(--teal-50); color: var(--teal); font-weight: 700; font-size: 0.8125rem;
    border-top: 1px solid var(--teal-100);
    transition: all var(--transition);
    margin-top: 0.75rem; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.bc-cta:hover { background: var(--teal); color: var(--white); }

/* ── Mid CTA ── */
.mid-cta-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}
.mid-cta-grid {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 2rem;
}
.mid-cta-grid h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.25rem; }
.mid-cta-grid > div:first-child p { color: var(--gray-400); margin: 0; font-size: 0.95rem; }
.mid-cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Contact ── */
.contact-section { padding: 5rem 0; background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
.contact-info > p { color: var(--gray-500); }
.info-cards { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.info-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 1rem; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.info-card:hover { border-color: var(--teal-200); box-shadow: var(--shadow-md); }
.ic-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card strong { font-size: 0.75rem; color: var(--gray-900); display: block; }
.info-card span { font-size: 0.8125rem; color: var(--gray-500); }
.urgency-banner {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem; background: var(--crimson-50);
    border: 1px solid var(--crimson-100); border-radius: var(--radius-lg);
}
.ub-pulse {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--crimson); flex-shrink: 0;
    animation: ub-pulse 2s infinite;
}
@keyframes ub-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(196,50,60,0.4); } 50% { box-shadow: 0 0 0 8px rgba(196,50,60,0); } }
.urgency-banner strong { display: block; font-size: 0.8125rem; color: var(--crimson); }
.urgency-banner span { font-size: 0.75rem; color: var(--gray-600); }

/* Lead Form */
.lead-form {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.form-head h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.form-head p { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.form-field { margin-bottom: 0.875rem; }
.form-field label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gray-700); margin-bottom: 0.3rem; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.7rem 0.85rem;
    background: var(--gray-50); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); font-family: var(--font); font-size: 0.875rem;
    color: var(--gray-800); transition: all var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
    background: var(--white);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--gray-400); }
.form-field select { appearance: none; cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-status { font-size: 0.8125rem; font-weight: 600; text-align: center; margin-bottom: 0.75rem; display: none; }
.form-status.success { display: block; color: #059669; }
.form-status.error { display: block; color: var(--crimson); }
.spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
    border-top-color: var(--white); animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-legal { font-size: 0.6875rem; color: var(--gray-400); text-align: center; margin-top: 0.75rem; margin-bottom: 0; display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
.form-legal a { color: var(--gray-500); text-decoration: underline; }

/* ── Footer ── */
.footer { background: var(--gray-900); padding-top: 3.5rem; color: var(--gray-400); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { max-height: 40px; margin-bottom: 0.75rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.8125rem; max-width: 260px; color: var(--gray-500); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--gray-500); font-size: 0.8125rem; }
.footer-links a:hover { color: var(--teal); }
.footer-contact p { font-size: 0.8125rem; margin-bottom: 0.35rem; color: var(--gray-400); }
.fp { margin-top: 0.75rem; }
.fp a { color: var(--gray-500); text-decoration: underline; font-size: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1rem 0; text-align: center; }
.footer-bottom p { font-size: 0.6875rem; color: var(--gray-600); margin: 0; }

/* ── Sticky Bottom Bar (Mobile) ── */
.sticky-bottom-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1200;
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 0.5rem;
    gap: 0.5rem;
}
.sbb-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    padding: 0.5rem; border-radius: var(--radius);
    font-size: 0.6875rem; font-weight: 700; text-decoration: none;
    transition: all var(--transition);
}
.sbb-call { color: var(--gray-700); background: var(--gray-100); }
.sbb-form { color: var(--white); background: var(--crimson); }
.sbb-wa { color: var(--white); background: #25D366; }

/* ── Popup ── */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-box {
    background: var(--white); border-radius: var(--radius-xl);
    width: 90%; max-width: 720px; overflow: hidden;
    position: relative; box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.popup-overlay.show .popup-box { transform: scale(1) translateY(0); }
.popup-close {
    position: absolute; top: 10px; right: 14px; background: transparent;
    border: none; font-size: 1.75rem; color: var(--gray-400); cursor: pointer; z-index: 10;
}
.popup-close:hover { color: var(--crimson); }
.popup-content { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.popup-left { padding: 2rem; }
.popup-badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    background: var(--crimson-50); color: var(--crimson);
    font-size: 0.625rem; font-weight: 800; letter-spacing: 1px;
    border-radius: var(--radius); margin-bottom: 0.75rem;
}
.popup-left h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.popup-price { color: var(--crimson); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.popup-perks { margin-bottom: 1.25rem; }
.popup-perks li { font-size: 0.8125rem; color: var(--gray-600); font-weight: 600; margin-bottom: 0.25rem; }
.popup-actions { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.popup-actions .btn { padding: 0.65rem 1rem; font-size: 0.8125rem; }
.popup-scarcity {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.75rem; color: var(--crimson); font-weight: 600;
}
.popup-right {
    background: linear-gradient(135deg, var(--teal-50), var(--gray-50));
    display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.popup-img { max-height: 260px; object-fit: contain; }

/* ── Social Proof Toast ── */
.social-toast {
    position: fixed; bottom: 90px; left: 20px; z-index: 1100;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 0.75rem 1rem;
    display: flex; align-items: center; gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateX(-110%);
    transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 280px;
}
.social-toast.show { opacity: 1; transform: translateX(0); }
.toast-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast-text strong { font-size: 0.75rem; color: var(--gray-900); }
.toast-text span { font-size: 0.75rem; color: var(--gray-600); }
.toast-text small { display: block; font-size: 0.625rem; color: var(--gray-400); margin-top: 0.15rem; }

/* ── WhatsApp Widget ── */
.wa-widget { position: fixed; bottom: 25px; right: 25px; z-index: 1500; max-width: calc(100vw - 25px); }
.wa-fab {
    width: 56px; height: 56px; background: #25D366;
    border: none; border-radius: 50%; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    position: relative; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-notification {
    position: absolute; top: -2px; right: -2px;
    background: var(--crimson); color: white;
    width: 18px; height: 18px; font-size: 0.625rem; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--white);
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.wa-menu {
    position: absolute; bottom: 68px; right: 0;
    width: 280px; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); overflow: hidden;
    opacity: 0; visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.wa-menu.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-menu-head {
    background: var(--gray-50); padding: 0.875rem;
    display: flex; align-items: center; gap: 0.6rem;
    border-bottom: 1px solid var(--gray-200);
}
.wa-menu-logo { width: 32px; height: 32px; object-fit: contain; border-radius: var(--radius); background: var(--white); padding: 2px; }
.wa-menu-head h4 { font-size: 0.8125rem; color: var(--gray-900); }
.wa-menu-head p { font-size: 0.625rem; color: var(--gray-500); margin: 0; }
.wa-menu-body { padding: 0.375rem; }
.wa-branch-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.625rem; border-radius: var(--radius);
    transition: background var(--transition);
}
.wa-branch-link:hover { background: var(--gray-50); }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #25D366; box-shadow: 0 0 6px #25D366; flex-shrink: 0; }
.wa-branch-link strong { display: block; font-size: 0.75rem; color: var(--gray-900); }
.wa-branch-link small { font-size: 0.625rem; color: var(--gray-500); }
.wa-section-label {
    font-size: 0.5625rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--gray-400);
    padding: 0.35rem 0.625rem 0.1rem;
    display: block;
}
.wa-divider { height: 1px; background: var(--gray-100); margin: 0.375rem 0.625rem; }
.wa-call-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.625rem; border-radius: var(--radius);
    transition: background var(--transition);
    text-decoration: none;
}
.wa-call-link:hover { background: var(--teal-50); }
.wa-call-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid var(--teal-100);
}
.wa-call-link strong { display: block; font-size: 0.75rem; color: var(--gray-900); font-weight: 700; }
.wa-call-link small { font-size: 0.625rem; color: var(--gray-500); }

/* ── Scroll Animations ── */
[data-animate] { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-down"] { transform: translateY(-20px); }
[data-animate="fade-up"] { transform: translateY(25px); }
[data-animate].visible { opacity: 1; transform: translate(0); }

/* ── Footer Social ── */
.footer-social { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.social-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gray-100); color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.social-icon:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-mini-form { max-width: 100%; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .hero-img { height: 350px; }
    .fc-top { right: 8px; } .fc-bottom { left: 8px; }
    .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .why-visual { max-width: 480px; margin: 0 auto; }
    .why-image { height: 360px; }
    .contact-grid { grid-template-columns: 1fr; }
    .mid-cta-grid { flex-direction: column; text-align: center; }
    .mid-cta-actions { justify-content: center; }
    .popup-content { grid-template-columns: 1fr; }
    .popup-right { display: none; }
}

@media (max-width: 768px) {
    /* Topbar: ocultar en móvil — la barra inferior ya tiene los mismos CTAs */
    .topbar { display: none; }
    .mobile-menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 60px; left: -100%;
        width: 100%; height: calc(100vh - 60px);
        background: var(--white);
        transition: left var(--transition);
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-xl);
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 1.25rem; }
    .nav-link { font-size: 1rem; }
    .nav-phone-link { font-size: 1rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .mini-form-row { flex-direction: column; }
    .trust-grid { flex-direction: column; text-align: center; }
    .trust-item { justify-content: center; }
    .trust-divider { width: 60px; height: 1px; background: var(--gray-200); margin: 0 auto; }
    .counters-grid { flex-direction: column; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .footer-social { justify-content: center; }
    .form-row-2 { grid-template-columns: 1fr; }
    .sticky-bottom-bar { display: flex; }
    .wa-widget { display: none; }
    .social-toast { display: none; }
    body { padding-bottom: 60px; overflow-x: hidden; }
    html { overflow-x: hidden; }
    .popup-left { padding: 1.5rem; }
    .popup-left h2 { font-size: 1.25rem; }
    .popup-actions { flex-direction: column; }
    /* Mid CTA buttons: stack on mobile */
    .mid-cta-actions { flex-direction: column; align-items: stretch; }
    .mid-cta-actions .btn { justify-content: center; }
    /* Float cards: no overflow on phone */
    .fc-top { right: 8px; top: 8px; }
    .fc-bottom { left: 8px; bottom: 8px; }
    /* Why section decorative elements */
    .why-accent-border { display: none; }
    .testimonial-float { position: static; max-width: 100%; margin-top: 1rem; }
}
