/* ===============================================
   VARIABLES CSS
   =============================================== */
:root {
    --primary-color: #3B82F6;
    --secondary-color: #F0F4F8;
    --accent-color: #21183b;
    --text-dark: #111827;
    --success-color: #10B981;
}

/* ===============================================
   CONFIGURACIÓN GLOBAL
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===============================================
   LOADER DE CARGA
   =============================================== */
#loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    font-family: Arial, sans-serif;
    animation: fadeText 1.5s infinite;
}

.loader {
    display: block;
    width: 84px;
    height: 84px;
    position: relative;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFF;
    transform: translate(-50%, -100%) scale(0);
    animation: push_401 2s infinite linear;
}

.loader:after {
    animation-delay: 1s;
}

@keyframes fadeText {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes push_401 {

    0%,
    50% {
        transform: translate(-50%, 0%) scale(1)
    }

    100% {
        transform: translate(-50%, -100%) scale(0)
    }
}

/* ===============================================
   NAVBAR
   =============================================== */
.navbar-custom {
    background: transparent !important;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-custom.scrolled {
    background: #00000050 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 70px;
    height: 70px;
    padding: 12px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-custom.scrolled .navbar-brand {
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding-bottom: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -3px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-custom.scrolled .nav-link {
    color: #fff !important;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.navbar-toggler {
    border: 2px solid white;
    border-radius: 10px;
    background: transparent;
}

/* ===============================================
   BOTONES
   =============================================== */
.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
    text-decoration: none;
}

.btn-accent:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-accent-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--accent-color);
    padding: 5px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.btn-accent-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-simulate {
    background: var(--accent-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-color);
}

.btn-simulate:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-color);
    border: none;
    transition: all 0.3s ease-in-out;
}

/* ===============================================
   SECCIÓN HERO
   =============================================== */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000050;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.0em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ===============================================
   EFECTO TYPED (CURSOR)
   =============================================== */
.typed-cursor {
    font-size: 1.2em;
    color: #fff;
    opacity: 1;
    animation: typed-blink 0.7s infinite;
}

@keyframes typed-blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ===============================================
   ESTILOS DE SECCIÓN
   =============================================== */
.section-padding {
    padding: 80px 0;
}

.bg-secondary-custom {
    background: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================================
   CARRUSEL "¿POR QUÉ ELEGIR MERCY?"
   =============================================== */
.why-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.why-track-container {
    overflow: hidden;
    flex: 1;
}

.why-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.why-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
}

.why-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.why-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}

.why-arrow-prev {
    margin-right: 16px;
}

.why-arrow-next {
    margin-left: 16px;
}

.why-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.why-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.why-dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: 5px;
}

/* ===============================================
   TARJETAS (FEATURES Y TESTIMONIOS)
   =============================================== */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin: 3rem 0; /* Más margen para la paginación */
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Swiper Customization */
.mySwiper {
    padding-bottom: 50px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background: white;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: #D1D5DB !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    width: 25px !important;
    border-radius: 5px !important;
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important; /* Ocultar flechas en móvil para una vista más limpia, usar swipe */
    }
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.stars {
    color: #F59E0B;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* ===============================================
   BANNER DE FRASE
   =============================================== */
.quote-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1a0f38 40%, #0d2a5e 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.quote-banner::before {
    content: '\201C';
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: -60px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.quote-banner-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quote-icon {
    font-size: 2.5rem;
    color: #60A5FA;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.quote-text {
    font-size: 1.55rem;
    font-weight: 600;
    color: #fff;
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    border: none;
    padding: 0;
}

.quote-author {
    font-size: 1rem;
    color: #93C5FD;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.03em;
}

/* ===============================================
   SECCIÓN SERVICIOS BENTO
   =============================================== */
.bento-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(auto, auto);
    gap: 24px;
    margin-bottom: 3rem;
}

.glass-premium {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.featured-service {
    grid-column: span 2;
}

.glass-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.38));
    color: #059669;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.service-card-body h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-card-body p {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.premium-list li {
    font-size: 0.85rem;
    color: #374151;
    padding: 4px 0;
    display: flex;
    align-items: center;
}

.premium-list .bi-check-circle-fill {
    color: var(--success-color);
    font-size: 0.95rem;
    margin-right: 8px;
}

/* CTA en servicios */
.services-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1a0f38 50%, #0d2a5e 100%);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.services-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
}

.services-cta-text h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.services-cta-text p {
    color: #93C5FD;
    margin: 0;
    font-size: 0.95rem;
}

.services-cta .btn-simulate {
    white-space: nowrap;
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.services-cta .btn-simulate:hover {
    background: #f0f0f0;
    color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===============================================
   SECCIÓN FAQ
   =============================================== */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E5E7EB;
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid #E5E7EB;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: color 0.25s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-answer.open {
    max-height: 400px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0 20px 0;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
}

.footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/* ===============================================
   MODALES
   =============================================== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(7px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #00000080;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.modal-content p {
    color: #fff;
    font-size: 1rem;
}

#terms-modal-content {
    max-width: 800px;
    width: 90%;
    height: 80vh;
    text-align: left;
    display: flex;
    flex-direction: column;
    background: #00000080;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#terms-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.9em;
    padding-right: 15px;
    color: #f0f0f0;
}

#terms-modal-body h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3em;
}

#terms-modal-body p,
#terms-modal-body ul {
    margin-bottom: 1rem;
    color: #f0f0f0;
}

#terms-modal-body::-webkit-scrollbar {
    width: 8px;
}

#terms-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#terms-modal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* ===============================================
   EFECTOS (LAZY LOAD Y BLUR)
   =============================================== */
.lazy-load {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lazy-load.visible {
    opacity: 1;
    transform: translateX(0);
}

.content-blur {
    filter: blur(5px) !important;
    transition: filter 0.3s ease;
    pointer-events: none;
}

/* ===============================================
   CHATBOT LANDING PAGE (DASHBOARD STYLE)
   =============================================== */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 130px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1060;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 110, 253, 0.05);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: chatSlideIn 0.3s ease;
}

.user-bubble {
    align-self: flex-end;
    background: #0d6efd;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border-bottom-left-radius: 4px;
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1055;
    transition: transform 0.3s;
}

.chatbot-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid var(--primary-color, #0d6efd);
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.chatbot-call-to-action {
    position: fixed;
    bottom: 40px;
    right: 105px;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 1px solid rgba(13, 110, 253, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: bounce-horizontal 2.5s infinite ease-in-out;
    display: flex;
    align-items: center;
}

.chatbot-call-to-action::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
}

@keyframes bounce-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }
}

/* typing indicators style */
.typing-indicator {
    padding: 10px 15px;
    display: inline-block;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Feature modal */
.glass-overlay-fx {
    background-color: rgba(14, 23, 38, 0.7);
    backdrop-filter: blur(12px);
}

.glass-feature-modal {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-modal-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
    font-size: 1.5rem;
}

.mySwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* ===============================================
   DISEÑO RESPONSIVO
   =============================================== */

/* --- Menú móvil (pantalla completa) --- */
@media (max-width: 991.98px) {
    .navbar-collapse.collapse.show {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 82px);
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .navbar-collapse.show .navbar-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .navbar-collapse.show .nav-item {
        margin: 1.5rem 0;
    }

    .navbar-collapse.show .nav-item.ms-3,
    .navbar-collapse.show .nav-item.ms-2 {
        margin-left: 0 !important;
    }

    .navbar-collapse.show .nav-link {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--text-dark) !important;
        text-align: center;
    }

    .navbar-collapse.show .btn-accent,
    .navbar-collapse.show .btn-accent-outline {
        font-size: 1rem;
        margin-top: 1rem;
        text-decoration: none;
        white-space: nowrap;
    }

    .navbar-collapse.show .btn-accent-outline {
        color: var(--accent-color) !important;
        border-color: var(--accent-color);
    }

    .navbar-collapse.show .btn-accent-outline:hover {
        background-color: var(--accent-color);
        color: #fff !important;
    }

    /* Carrusel en tablet */
    .why-slide {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }

    /* Grid de servicios en tablet: 2 columnas */
    .bento-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Las tarjetas featured no se extienden en tablet */
    .featured-service {
        grid-column: span 1;
    }

    .services-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

/* --- Ajustes responsivos generales --- */
@media (max-width: 992px) {
    .btn-accent {
        margin-bottom: 1em;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1em;
    }

    .typed-cursor {
        font-size: 1.5em;
    }

    .quote-text {
        font-size: 1.2rem;
    }

    /* Carrusel en móvil */
    .why-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    /* Grid de servicios en móvil: 1 columna */
    .bento-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-service {
        grid-column: span 1;
    }

    .glass-premium {
        border-radius: 16px;
        padding: 1.4rem;
    }

    .glass-icon-wrapper {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .service-card-body h5 {
        font-size: 1.05rem;
    }

    .chatbot-container {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 90px;
        height: calc(100vh - 120px);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2em;
        min-height: 5rem;
    }

    .btn-simulate {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .typed-cursor {
        font-size: 1em;
    }
}

/* ===============================================
   SCROLLBAR PERSONALIZADO
   =============================================== */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #fff;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #60a5fa;
}