/* =================================================================
   BASE & VARIABLES (RedSun Dark Theme)
   ================================================================= */
:root {
    /* Brand Colors */
    --orange: #F4811F;
    --red-glow: #e63946;
    
    /* Light Theme Colors */
    --black: #ffffff;
    --black-light: #f4f4f2;
    --white: #111111;
    --text: #333333;
    --text-muted: #666666;
    
    /* Glassmorphism Light */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Mulish', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--black);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1.1;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =================================================================
   GLOW BLOBS (RedSun Effect)
   ================================================================= */
.hero-blob, .services-blob, .doctor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--red-glow) 0%, rgba(230,57,70,0) 70%);
    top: -100px;
    left: -100px;
}

.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--orange) 0%, rgba(244,129,31,0) 70%);
    bottom: -50px;
    right: -50px;
}

.services-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orange) 0%, rgba(244,129,31,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

.doctor-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--red-glow) 0%, rgba(230,57,70,0) 70%);
    top: 10%;
    right: -10%;
    opacity: 0.4;
}

.doctor-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orange) 0%, rgba(244,129,31,0) 70%);
    bottom: -10%;
    left: -10%;
    opacity: 0.3;
}

/* =================================================================
   BUTTONS (RedSun Glow)
   ================================================================= */
.btn-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--orange);
    color: var(--white);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(244, 129, 31, 0.4);
    border: 1px solid var(--orange);
}

.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(244, 129, 31, 0.6);
    background: #ff9d47;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}
.btn-ghost:hover {
    color: var(--white);
}

/* =================================================================
   NAVBAR
   ================================================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-img {
    height: 75px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    background: var(--glass-bg);
    color: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(244, 129, 31, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--black-light);
    border-bottom: 1px solid var(--glass-border);
    display: none;
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 1.5rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
}

.mobile-cta {
    color: var(--orange) !important;
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
    position: relative;
    padding: 200px 0 120px;
    text-align: center;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(244, 129, 31, 0.1);
    color: var(--orange);
    border: 1px solid rgba(244, 129, 31, 0.2);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--orange);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-item svg {
    color: var(--orange);
}

/* =================================================================
   SERVICES (Dark Grid)
   ================================================================= */
.services {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 4rem;
}

.section-heading em {
    color: var(--orange);
    font-style: italic;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.srv-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.srv h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.srv p {
    font-size: 0.95rem;
    color: var(--text);
}

/* =================================================================
   COMBO
   ================================================================= */
.combo {
    padding: 100px 0;
    background: var(--black-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.combo-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.combo-lead {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 3rem;
    max-width: 600px;
}

.combo-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.combo-item {
    flex: 1;
    text-align: center;
}

.combo-img-wrap {
    background: var(--black);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.combo-img-wrap img {
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.combo-label {
    font-weight: 600;
    color: var(--white);
    font-size: 1rem;
}

.combo-plus {
    font-size: 2rem;
    color: var(--orange);
    font-weight: 300;
}

.combo-fine {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =================================================================
   DOCTOR EN LÍNEA (Dark Chat)
   ================================================================= */
.doctor {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.consult-room {
    max-width: 800px;
    margin: 0 auto;
}

.room-header {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.room-doctor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-avatar {
    width: 48px;
    height: 48px;
    background: rgba(244, 129, 31, 0.1);
    border: 1px solid rgba(244, 129, 31, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
}

.room-status-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #25d366;
    border-radius: 50%;
    bottom: 2px;
    right: 2px;
    box-shadow: 0 0 0 3px var(--black-light);
}

.room-status-dot::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    background: #25d366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.room-name {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.room-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.room-status.analyzing { color: var(--orange); font-weight: 600; }
.room-status.diagnosing { color: var(--red-glow); font-weight: 600; }

.room-heartbeat svg {
    width: 100px;
    height: 35px;
}

.heartbeat-line {
    fill: none;
    stroke: var(--orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: pulseHeartbeat 3s linear infinite;
}

@keyframes pulseHeartbeat {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

.room-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(20, 20, 20, 0.9);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.3;
    transition: var(--transition);
}
.progress-step.active { opacity: 1; }

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--black);
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.progress-step.active .step-dot {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 0 10px rgba(244, 129, 31, 0.5);
}

.progress-step span {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.progress-step.done {
    opacity: 0.9;
}

.progress-step.done .step-dot {
    background: rgba(244, 129, 31, 0.2);
    border-color: var(--orange);
    color: var(--orange);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--glass-border);
    margin: 0 10px;
    margin-bottom: 15px;
    position: relative;
}

.progress-line-fill {
    width: 0;
    height: 100%;
    background: var(--orange);
    box-shadow: 0 0 8px rgba(244, 129, 31, 0.5);
    transition: width 0.4s ease;
}

.progress-line-fill.filled {
    width: 100%;
}

.doctor-chat {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 24px 24px;
    padding: 2.5rem;
    height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doctor-chat::-webkit-scrollbar { width: 6px; }
.doctor-chat::-webkit-scrollbar-track { background: transparent; }
.doctor-chat::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* Messages */
.chat-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.fadeUp {
    animation: fadeUp 0.4s ease-out forwards;
}

.msg {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 0.75rem;
}

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

.msg-patient { justify-content: flex-end; }
.msg-doctor { justify-content: flex-start; }

.msg-avatar {
    width: 34px;
    height: 34px;
    background: rgba(244, 129, 31, 0.15);
    border: 1px solid rgba(244, 129, 31, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.msg-body {
    max-width: 80%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.msg-patient .msg-body {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.msg-doctor .msg-body {
    background: rgba(244, 129, 31, 0.1);
    color: var(--white);
    border-top-left-radius: 4px;
    border: 1px solid rgba(244, 129, 31, 0.2);
}

.msg-name {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}
.msg-doctor .msg-name { color: var(--orange); }
.msg-patient .msg-name { color: var(--text-muted); }

/* Chat Options */
.msg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.opt-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.opt-btn:hover:not(.disabled) {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(244, 129, 31, 0.4);
}

.opt-btn.selected {
    background: var(--orange);
    border-color: var(--orange);
}

.opt-btn.disabled { opacity: 0.3; cursor: default; }

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 0.8rem 1.2rem;
    background: rgba(244, 129, 31, 0.1);
    border-radius: 16px;
    width: fit-content;
    border-top-left-radius: 4px;
    border: 1px solid rgba(244, 129, 31, 0.2);
    margin-bottom: 1rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-3px); opacity: 1; }
}

/* Diagnosis Card */
.diagnosis-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.dx-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.severity-low { background: rgba(46, 125, 50, 0.2); color: #81c784; border: 1px solid #4caf50; }
.severity-medium { background: rgba(245, 127, 23, 0.2); color: #ffd54f; border: 1px solid #ffb300; }
.severity-high { background: rgba(230, 81, 0, 0.2); color: #ffb74d; border: 1px solid #f57c00; }
.severity-critical { background: rgba(198, 40, 40, 0.2); color: #e57373; border: 1px solid #f44336; }

.dx-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.dx-section { margin-bottom: 1.2rem; }
.dx-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.dx-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.msg-actions { margin-top: 1rem; }

/* =================================================================
   LOCATION
   ================================================================= */
.location {
    padding: 100px 0;
    background: var(--black-light);
    border-top: 1px solid var(--glass-border);
}

.location-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.loc-details { margin-top: 2rem; }
.loc-details li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.loc-icon {
    width: 44px; height: 44px;
    background: rgba(244, 129, 31, 0.1);
    color: var(--orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(244, 129, 31, 0.2);
}

.loc-map {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    padding: 0 !important;
}

.loc-map iframe {
    width: 100%; height: 100%; filter: invert(90%) hue-rotate(180deg);
}

/* =================================================================
   FOOTER & WHATSAPP
   ================================================================= */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--black);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    animation: pulse-wa 2s infinite;
    transition: transform 0.2s;
}

.wa-float:hover { transform: scale(1.1); }

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 992px) {
    .location-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    
    .hero { padding: 150px 0 80px; }
    .hero-actions { flex-direction: column; align-items: center; }
    
    .services-row { grid-template-columns: 1fr; }
    
    .combo-grid { flex-direction: column; gap: 1.5rem; }
    .combo-plus { display: none; }
    
    .room-progress { padding: 1rem 0.5rem; }
    .progress-step { flex: 1; }
    .progress-step span { font-size: 0.55rem; }
    .progress-line { width: 15px; }
    
    .doctor-chat { padding: 1.5rem; }
    .dx-row { grid-template-columns: 1fr; }
    
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    
    .wa-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .wa-float svg { width: 24px; height: 24px; }
}

.footer-logo {
    height: 60px;
    object-fit: contain;
}

/* ===== CRO: LEAD MAGNET ===== */
.lead-magnet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.12), rgba(0, 113, 227, 0.08));
    border: 1px solid rgba(255, 149, 0, 0.35);
    border-radius: 16px;
}
.lm-badge {
    background: var(--orange, #ff9500);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.lm-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.lm-content h3 span {
    color: var(--orange, #ff9500);
}
.lm-content p {
    font-size: 0.9rem;
    color: var(--text-muted, #86868b);
    margin: 0;
}
.lm-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34c759;
    white-space: nowrap;
}
.lm-dot {
    width: 8px;
    height: 8px;
    background: #34c759;
    border-radius: 50%;
    box-shadow: 0 0 8px #34c759;
    animation: pulse 1.8s infinite;
}
@media (max-width: 768px) {
    .lead-magnet-card { flex-direction: column; text-align: center; }
}

/* ===== CRO: TESTIMONIOS ===== */
.testimonials {
    padding: 5rem 0;
    position: relative;
}
.section-center-header {
    text-align: center;
    margin-bottom: 3rem;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.test-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.test-stars {
    color: #ffb800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.test-quote {
    color: var(--text-main, #f5f5f7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.test-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.test-avatar {
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--orange, #ff9500);
}
.test-author strong {
    display: block;
    font-size: 0.95rem;
}
.test-author span {
    font-size: 0.8rem;
    color: var(--text-muted, #86868b);
}

/* =================================================================
   CORRECCIONES LIGHT THEME & RESPONSIVE CRO (Dr. Phone)
   ================================================================= */

/* 1. Botones con contraste optimizado */
.btn-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--orange);
    color: #ffffff !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(244, 129, 31, 0.35);
    border: 1px solid var(--orange);
}

.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(244, 129, 31, 0.5);
    background: #e06e12;
    border-color: #e06e12;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 2. Navbar en scroll adaptado a Light Theme */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* 3. Lead Magnet Card (Alineación & Responsive) */
.lead-magnet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    margin: 0 auto 2rem auto;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(244, 129, 31, 0.12), rgba(0, 113, 227, 0.06));
    border: 1px solid rgba(244, 129, 31, 0.35);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.lm-badge {
    background: var(--orange);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lm-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.lm-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.lm-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1b8a38;
    white-space: nowrap;
}

/* 4. Testimonios (Corrección de Texto Fantasma & Responsive Grid) */
.testimonials {
    padding: 5rem 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.test-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.test-quote {
    color: var(--text) !important; /* Corrige el valor fantasma #f5f5f7 */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* 5. Doctor en Línea / Chat Room (Adaptación Total a Light Theme) */
.room-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.room-name {
    color: var(--white);
}

.room-progress {
    background: rgba(246, 246, 248, 0.95);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

.progress-step span {
    color: var(--text-muted);
}

.step-dot {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: var(--text);
}

.progress-step.active .step-dot {
    background: var(--orange);
    border-color: var(--orange);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(244, 129, 31, 0.4);
}

.doctor-chat {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.msg-doctor .msg-body {
    background: rgba(244, 129, 31, 0.08);
    color: var(--text);
    border: 1px solid rgba(244, 129, 31, 0.22);
    border-top-left-radius: 4px;
}

.msg-patient .msg-body {
    background: #f0f0f4;
    color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom-right-radius: 4px;
}

.opt-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.opt-btn:hover:not(.disabled),
.opt-btn.selected {
    background: var(--orange);
    border-color: var(--orange);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(244, 129, 31, 0.35);
}

.opt-btn.disabled {
    opacity: 0.4;
    background: #f0f0f2;
    color: #888888;
    cursor: default;
}

.diagnosis-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.severity-low { background: rgba(46, 125, 50, 0.1); color: #2e7d32; border: 1px solid rgba(46, 125, 50, 0.3); }
.severity-medium { background: rgba(245, 127, 23, 0.1); color: #b26a00; border: 1px solid rgba(245, 127, 23, 0.3); }
.severity-high { background: rgba(230, 81, 0, 0.1); color: #d84315; border: 1px solid rgba(230, 81, 0, 0.3); }
.severity-critical { background: rgba(198, 40, 40, 0.1); color: #c62828; border: 1px solid rgba(198, 40, 40, 0.3); }

/* 6. Mapa Light Mode */
.loc-map iframe {
    filter: none !important; /* Elimina la inversión oscura */
}

/* 7. Media Query Responsive @media (max-width: 768px) */
@media (max-width: 768px) {
    .lead-magnet-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .lm-counter {
        justify-content: center;
    }
    
    .testimonials {
        padding: 3.5rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .test-card {
        padding: 1.5rem;
    }
}
