/* Importaci¨®n de Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0a2540;
    --secondary: #22c55e;
    --accent: #38bdf8;
    --bg-light: #f8fafc;
    --text-gray: #64748b;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-light); 
    color: var(--primary); 
    overflow-x: hidden; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* Loader */
.loader-container {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-direction: column;
}

/* Navbar */
.navbar { 
    background: rgba(255, 255, 255, 0.95) !important; 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}
.navbar-logo { 
    max-width: 150px; 
    height: auto; 
    object-fit: contain; 
}

/* Hero Section */
.hero-section { 
    background: radial-gradient(circle at top right, #1e293b, #0f172a); 
    color: white; 
    padding: 100px 0 80px 0; 
    overflow: hidden; 
    position: relative; 
}
.hero-shape { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(80px); 
    z-index: 0; 
}
.shape-1 { background: rgba(34, 197, 94, 0.2); width: 400px; height: 400px; top: -100px; right: -100px; }
.shape-2 { background: rgba(56, 189, 248, 0.15); width: 300px; height: 300px; bottom: -50px; left: -50px; }
.headline-hero { line-height: 1.15; letter-spacing: -1px; }

/* Botones */
.btn-custom { 
    background-color: var(--secondary); 
    color: white; 
    border: none; 
    transition: 0.3s all; 
}
.btn-custom:hover { 
    transform: translateY(-3px); 
    background-color: #16a34a; 
    color: white; 
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); 
}

/* Tarjetas de Caracter¨ªsticas */
.feature-card { 
    border-radius: 20px; 
    transition: 0.3s; 
}
.feature-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1) !important; 
}
.icon-circle { 
    width: 60px; 
    height: 60px; 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    margin-bottom: 20px; 
}

/* Pasos "C¨®mo Funciona" */
.step-number { 
    width: 40px; 
    height: 40px; 
    background: var(--secondary); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    font-size: 1.2rem; 
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3); 
}

/* Testimonios */
.testimonial-card { 
    border-radius: 20px; 
    padding: 30px; 
    border: 1px solid #e2e8f0; 
    display: flex;
    flex-direction: column;
}
.stars { color: #fbbf24; font-size: 1.2rem; }

/* Utilidades */
.text-gradient { 
    background: linear-gradient(135deg, #38bdf8 0%, #22c55e 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Estilos del Perfil de Doctor */
.dr-header { 
    background: radial-gradient(circle at top right, #1e293b, #0f172a); 
    height: 160px; 
    position: relative; 
    border-radius: 1.5rem 1.5rem 0 0; 
}
.dr-avatar { 
    width: 120px; 
    height: 120px; 
    object-fit: cover; 
    border: 5px solid white; 
    background-color: white; 
    border-radius: 50%; 
    margin-top: -60px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    position: relative; 
    z-index: 2; 
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ========================================== */
/* ESTILOS DEL WIDGET DE CHAT (ALONDRA)       */
/* ========================================== */

.chat-trigger-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; 
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-trigger-btn:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    background-color: #f8f9fa;
    z-index: 1050;
    border: 1px solid rgba(0,0,0,0.1);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-window.d-none {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.chat-window.show-chat {
    display: block !important;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.chat-header {
    background-color: #0a2540; 
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .chat-window {
        width: calc(100% - 50px);
        bottom: 90px;
    }
}