/* Copied compiled CSS from scss/style.scss (keeps same rules to preserve design) */
:root {
    --primary: #08bcd4; /* Azul Bootstrap Salud */
    --secondary: #13AF54; /* Verde Azulado */
    --accent: #fd7e14; /* Naranja cálido */
    --dark: #212529;
    --light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.97);
    --glass-border: rgba(255, 255, 255, 0.4);
    --blur: 10px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #f4f7f6;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.navbar {
    transition: var(--transition);
    padding: 1.5rem 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0), rgba(32, 201, 151, 0.4));
    z-index: -1;
}

.hero-sphere {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    backdrop-filter: blur(5px);
    z-index: 0;
}

section {
    padding: 80px 0;
    position: relative;
}

.plan-card {
    cursor: pointer;
    transition: var(--transition);
    border: none;
    border-radius: 15px;
}

.plan-card:hover, .plan-card.selected {
    transform: translateY(-10px);
    border: 2px solid var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.cta-section {
    /* background-color: var(--dark); */
    background-color:   #fcbf10  ;
    color: white;
    overflow: hidden;
    position: relative;
}

.cta-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

#contacto-anchor {
    min-height: 600px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, #eef1f5, #ffffff);
}

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #13AF54;
    border-radius: 30px; /* Redondo inicialmente */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.whatsapp-widget.docked {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.wa-float-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 30px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.wa-form-content {
    opacity: 0;
    padding: 2rem;
    display: none; /* Se activa con JS */
    width: 100%;
}

.final-video-section {
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero box variations for alternating sections */
.hero-box { border-radius: 12px; }
.hero-box.alt { background: linear-gradient(180deg, rgba(248,249,250,1), rgba(255,255,255,1)); }
.hero-box .lead { font-size: 1.05rem; }
.hero-box ul { margin-top: .5rem; }
.hero-box img { max-height: 380px; object-fit: cover; }

/* Carousel guia styles */
#guia .carousel-item { padding: 2rem 0; }
.bi-carousel-icon { display: inline-block; border-radius: 12px; padding: 8px; background: rgba(13,110,253,0.06); }
.carousel-item h3 { margin-top: 0; }
.carousel-item p { margin-bottom: 0.5rem; }

@media (max-width: 767px) {
    .bi-carousel-icon { width: 48px; height: 48px; }
}

footer {
    background: #111;
    color: #aaa;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.spinner-border-sm {
    display: none;
}
.loading .spinner-border-sm {
    display: inline-block;
}

/* Chat / WhatsApp widget styles */
.whatsapp-widget {
    transition: transform 0.35s ease, width 0.35s ease, height 0.35s ease, border-radius 0.35s ease;
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 3000;
}
.wa-float-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 30px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
}

/* Ensure the floating icon is visible and accessible */
.wa-float-icon { background: transparent; color: #fff; }

/* Ensure content panel appears to the right when open on wide screens */
@media (min-width: 992px) {
    .whatsapp-widget.docked {
        right: 40px;
        bottom: 40px;
    }
    .wa-form-content {
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        border-radius: 14px;
    }
}
.wa-typing-indicator {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0,0,0,0.1);
}

.wa-form-content {
    display: none;
    opacity: 0;
    width: 100%;
}

.whatsapp-widget.docked .wa-form-content {
    display: block;
}

.chat-window {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f2;
    background: transparent;
}
.chat-body {
    padding: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), #fff);
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
}
.messages { display:flex; flex-direction:column; gap:10px; }
.message { max-width: 78%; padding:10px 12px; border-radius: 18px; font-size:14px; line-height:1.2; }
.message.incoming { background: #f1f3f5; align-self:flex-start; color:#111; }
.message.outgoing { background: var(--primary); color: white; align-self:flex-end; }
.typing { padding:8px; display:flex; justify-content:flex-start; }
.typing span { display:inline-block; width:8px; height:8px; background:#ccc; border-radius:50%; margin-right:6px; animation: blink 1s infinite; }
.typing span:nth-child(2){ animation-delay: .2s }
.typing span:nth-child(3){ animation-delay: .4s }
@keyframes blink { 0% { opacity: .2 } 50% { opacity: 1 } 100% { opacity: .2 } }

.chat-footer { padding:10px; border-top:1px solid #eef0f2; background:transparent }
.chat-footer .form-control { border-radius: 20px 0 0 20px; }
.chat-footer .btn { border-radius: 0 20px 20px 0; }

.contact-form-container { padding: 1rem; }

/* Responsive */
@media (max-width: 576px) {
    .chat-window { max-width: 92vw; }
    .wa-form-content { width: 92vw; }
}
