:root {
  color-scheme: light;
}

body{
    font-size: 20px;
}

.size-25{
    font-size: 25px !important;
}

a {
    text-decoration: none !important;
}

.main-banner {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.custom-arrow .carousel-control-prev-icon,
.custom-arrow .carousel-control-next-icon {
  filter: invert(1);
  background-size: 50% 50%;
}

.carousel-control-next, .carousel-control-prev {
  bottom: 20% !important;
}

.carousel-control-prev {
  left: 8px;
}

.carousel-control-next {
  right: 8px;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    overflow: hidden;
    z-index: 2;
}
.wave {
    display: block;
    width: 100%;
    /*height: 100%; */
}
.fixed-bottom {
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.85);
}
.quick-action {
    color: #333;
    text-decoration: none;
    font-size: 18px !important;
    width: 80px;
}
.icon-lg {
    width: 60px;
    height: 60px;
    /*border-radius: 50%;  */
    padding: 10px;
    background-color: #f1f1f1;
    margin-bottom: 5px;
    transition: transform 0.2s;
}
.icon-lg:hover {
    transform: scale(1.1);
}
.icon-sm {
    width: 30px;
    height: 30px;
}
.mini-card {
    border: none;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.51);
    transition: all 0.2s ease;
}
.mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Mostrar solo en móviles (pantallas menores a 768px) */
.only-mobile {
    display: block;
    background-color: #fff;
}
@media (min-width: 768px) {
    .only-mobile {
        display: none !important;
    }
}
.pc-only {
    display: none;
    min-height: 70vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
}
.pc-only .pc-message {
    max-width: 500px;
    border: 2px solid #a31522;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(163, 21, 34, 0.25);
    color: #222;
    font-weight: 500;
    font-size: 1.1rem;
}
.pc-only .pc-message a img {
    max-width: 150px;
    margin: 1rem auto;
    display: block;
    transition: transform 0.3s ease;
}
.pc-only .pc-message a:hover img {
    transform: scale(1.05);
    cursor: pointer;
}
/* Mostrar solo en pantallas grandes */
@media (min-width: 768px) {
    .pc-only {
        display: flex;
    }
}


#pdfModal .btn-close, #pdfModal2  .btn-close {
    position: absolute;
    z-index: 1100;
    background-color: aliceblue;
}


.carousel-control-prev-icon, .carousel-control-next-icon {
    display: none !important;
}


/* ESTILOS PARA EL CONTADOR DE VISITAS */
    .qca-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: #fff !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        font-family: inherit;
    }

    /* SOLO cuando esta instalada como app
    @media (display-mode: standalone) {
        .qca-footer {
            padding-bottom: calc(10px + env(safe-area-inset-bottom));
        }
    } */

    /* BLOQUE BLANCO (BOTONES) */
    .qca-footer-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
        background: #ffffff;
    }

    /* BOTONES */
    .qca-footer-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #333;
        font-size: 15px;
        font-weight: 500;
    }

    .qca-footer-btn img {
        width: 28px;
        margin-bottom: 4px;
    }

    /* DIVISOR */
    .qca-divider {
        width: 1px;
        height: 40px;
        background: #ddd;
    }

    /* BLOQUE GRIS INFERIOR */
    .qca-footer-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 16px;
        background: #e5e5e5;
        font-size: 13px;
        color: #444;
    }

    /* LADO IZQUIERDO */
    .qca-footer-left {
        flex: 1;
        overflow: hidden;
    }

    .qca-empresa-nombre {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* LADO DERECHO */
    .qca-footer-right {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .qca-eye {
        width: 14px;
        height: 14px;
    }

/* Estilos de chatbot */
    /* --- NUEVO: Capa de fondo oscura (Overlay) --- */
    #chat-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        display: none; /* Se activa con JS */
        z-index: 1040;
        backdrop-filter: blur(2px);
    }
    #chatbot-wrapper {
        position: fixed;
        bottom: 25%;
        right: 0rem;
        z-index: 1050;
        height: 80%;
    }
    /* Animación de flotación para el robot */
    @keyframes robotFloat {
        0%, 100% { transform: translateY(0) rotate(0); }
        50% { transform: translateY(-12px) rotate(3deg); }
    }
    .robot-trigger {
        width: 90px;
        height: 90px;
        cursor: pointer;
        animation: robotFloat 3.5s ease-in-out infinite;
        filter: drop-shadow(0 8px 15px rgba(13, 110, 253, 0.3));
        transition: transform 0.3s ease;
    }
    .robot-trigger:hover {
        transform: scale(1.1);
    }
    /* Ventana de Chat Estilo Premium */
    .chat-window {
        display: none; /* Se controla con JS */
        width: 100%;
        height: auto;
        border-radius: 25px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        border: none;
        background: rgba(255, 255, 255, 0.98);
        bottom: -3rem;
    }
    .chat-header {
        background: linear-gradient(135deg, var(--bot-blue), #0a58ca);
        padding: 1.5rem;
        color: white;
    }
    .chat-body {
        height: 400px;
        overflow-y: auto;
        background-color: #f8f9fa;
        padding: 1.25rem;
    }
    /* Estilos de Mensajes */
    .bot-msg, .user-msg {
        max-width: 85%;
        margin-bottom: 1rem;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .bot-msg {
        background-color: white;
        border-radius: 15px 15px 15px 0;
        border: 1px solid #dee2e6;
        color: #343a40;
    }
    .user-msg {
        background-color: var(--bot-blue);
        color: white;
        border-radius: 15px 15px 0 15px;
        margin-left: auto;
    }
    /* Tarjetas de opciones de la encuesta */
    .survey-option {
        cursor: pointer;
        border: 1px solid #dee2e6;
        border-left: 4px solid var(--bot-blue);
        transition: all 0.2s ease;
        background: white;
        margin-bottom: 0.5rem;
    }
    .survey-option:hover {
        background-color: #eef5ff;
        transform: translateX(5px);
    }
    /* Burbuja de texto inicial */
    .initial-bubble {
        display: none;
        position: absolute;
        right: 60%;
        bottom: 40px;
        background: white;
        padding: 0.6rem 1.2rem;
        border-radius: 15px 15px 0 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        white-space: nowrap;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--bot-dark);
        border: 1px solid #eee;
    }
    /* Ocultar barra de scroll */
    .chat-body::-webkit-scrollbar { width: 5px; }
    .chat-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
     /* --- NUEVO: Estilo para la imagen física del robot --- */
    .robot-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
