body {
    font-family: "Roboto", sans-serif !important;
    font-weight: 300;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: center;
    font-size: 0.75rem;
}

.navbar-collapse {
    flex-grow: 0;
}

/* === CHATBOT ANIMATIONS === */
@keyframes chatOpen {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    60% { opacity: 1; transform: scale(1.03) translateY(-3px); }
    80% { transform: scale(0.98) translateY(1px); }
    100% { opacity: 1; transform: scale(1) translateY(0); visibility: visible; }
}

@keyframes chatClose {
    0% { opacity: 1; transform: scale(1) translateY(0); visibility: visible; }
    100% { opacity: 0; transform: scale(0.85) translateY(20px); visibility: hidden; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3), 0 0 0 0 rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(33, 150, 243, 0.5), 0 0 30px 5px rgba(99, 102, 241, 0.15); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dotWave {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-8px); opacity: 1; }
}

#chatbot {
    visibility: hidden;
    opacity: 0;
    color: whitesmoke;
    border-radius: 1.2rem;
}

#chatbot.visible {
    animation: chatOpen 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#chatbot.hidden {
    animation: chatClose 0.25s ease-out forwards;
}

#menu-navegacio .row {
    padding-right: 0px !important;
    padding-left: 0px !important;
}


.bg-primari {
    background-color: #E7E7E7 !important;
}

.bg-navbar {
    background-color: #FFFFFF !important;
}

.bg-navbar-top {
    background-color: #2196f3 !important
}

.font-color-grey-dark a {
    color: #818181 !important;

}

.font-color-grey-dark a:hover {
    color: #3f3f3f !important;
    background-color: #e0e0e0;
    transition: background-color 0.3s linear;
    -o-transition: background-color 0.3s linear;
    -ms-transition: background-color 0.3s linear;
    -moz-transition: background-color 0.3s linear;
    -webkit-transition: background-color 0.3s linear;

}


.mt-top-content {
    margin-top: 6rem !important;
}

.video_clinics {
    width: 100%;
    height: 19rem;
}

.modal-backdrop.show {
    opacity: 0.85 !important;
}

.modal-videos {
    max-width: 75% !important;
}

.modal-dialog {
    width: auto;
}


@media (max-width: 768px) {
    .modal-dialog {
        max-width: 100%;
    }

    .modal-videos {
        max-width: 100%;
    }
}

#videos .titol {
    color: white;
    font-size: 1rem;
    min-height: 3rem;
    margin-top: 0.5rem;
}

#videos .card-video {
    padding: 0.5rem;
}

#videos .card-video img {
    border-radius: 1.5rem;
}

.box_contenido {
    padding: 10px 15px;
    background-color: #FFFFFF;
    margin: 0 auto 20px;
    box-shadow: 0px 3px 3px -1px rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
}

.box_contenido_cerca {
    padding: 10px 15px;
    background-color: #FFFFFF;
    margin: 0 auto 20px;
    box-shadow: 0px 3px 3px -1px rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
}

.box_contenido_cerca h2 {
    text-transform: uppercase;
    font-size: 1.2em;
    color: #2196f3;
    margin-bottom: 15px;
    padding: 0;
    font-weight: 300;
}

.box_contenido .titulo {
    text-transform: uppercase;
    font-size: 1.2em;
    color: #2196f3;
    margin-bottom: 15px;
    padding: 0;
    font-weight: 300;
}


/* Cards Videos*/
#videos * {
    box-sizing: border-box;
}


#videos h2 {
    font-weight: 400;
    margin: 1rem 0 0.25rem 0;
}

#videos h1 {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    opacity: 0.5;
    margin: 0;
}

#videos p {
    margin: 0;
}



#videos figure {
    width: 100%;
    aspect-ratio: 8 / 5;
    --bg: #2196f3;
    --accent: #0b3856;

    transition: background 0.2s;
    /*background:
      radial-gradient(circle at top left, var(--accent), transparent 75%),
      var(--bg);*/
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

#videos figure:after {
    content: "";
    position: absolute;
    width: 20%;
    aspect-ratio: 1;
    border-radius: 50%;
    bottom: 0%;
    left: 10%;
    /*background: linear-gradient(-65deg, var(--bg) 50%, var(--accent) 50%);
    filter: blur(25px);*/
    transform:
        translateX(calc(var(--hover) * 15%)) scale(calc(1 + (var(--hover) * 0.2)));
    transition: transform 0.2s, background 0.2s;
}

#videos figure * {
    text-transform: uppercase;
    color: white;
    position: absolute;
    left: 8%;
    /*top: 40%;*/
    width: 70%;
    /*transform:
        translateX(calc(var(--hover) * 15%)) scale(calc(1 + (var(--hover) * 0.3)));
    transition: transform 0.2s;*/
}

.card-pdf:hover, article:hover{
    opacity: 0.8;

}

#videos article {
    background-image: url('../img/plantilla_portada_clinics2.png');
    background-size: cover;
    /* Ajusta la imagen para cubrir todo el contenedor */
    background-position: bottom;
    /* Centra la imagen en el contenedor */
    width: 100%;
    /* Ancho de la imagen */
    height: 100%;
    /* Alto de la imagen */
    margin: 0;
    /* Elimina cualquier margen */
    padding: 0;
    /* Elimina cualquier relleno */
    border-radius: 1.5rem;
    cursor: pointer;
    --hover: 0;
}

#videos .card-pdf {
    background-image: url('../img/plantilla_portada_clinics_pdf.jpg');
    background-size: cover;
    /* Ajusta la imagen para cubrir todo el contenedor */
    background-position: bottom;
    /* Centra la imagen en el contenedor */
    width: 100%;
    /* Ancho de la imagen */
    height: 100%;
    /* Alto de la imagen */
    margin: 0;
    /* Elimina cualquier margen */
    padding: 0;
    /* Elimina cualquier relleno */
    border-radius: 1.5rem;
    cursor: pointer;
    --hover: 0;
}


#videos article:hover, #videos .card-pdf:hover {
    --hover: 0.8;
}

.text-dinamic {
    font-size: 1rem;
    /* Tamaño de fuente inicial */
}
.cercle-clinics {
    top: 77% !important;
    left: 85% !important;
}
.cercle-clinics-pdf {
    top: 81% !important;
    left: 88% !important;
}

.cercle-clinics i {
    color: #ee9b37 !important;
    font-size: 1.7rem !important;
    left: unset !important;
}
.cercle-clinics-pdf .i-pdf {
    color: #2196f3 !important;
    font-size: 1.2rem !important;
    left: unset !important;
}
@media (max-width: 1750px) {
    .text-dinamic {
        font-size: 0.8rem;
    }
    .cercle-clinics-pdf .i-pdf {
        color: #2196f3 !important;
        font-size: 1.2rem !important;
        left: unset !important;
    }
}



.bottom {
    border-radius: 1.5rem;
    padding: 0.5rem;
}

.input-message {
    background-color: transparent;
    border: none;
    color: whitesmoke;
    padding-left: 1rem;
}

.user-icon {
    font-size: 2rem;
}

.input-message:focus {
    border: none;
    outline: none;
    box-shadow: none;
    border: 1px solid #ddd;

}

.btn-clinics {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #2196f3 !important;
    --bs-btn-border-color: #2196f3 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca !important;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2196f3;
    --bs-btn-disabled-border-color: #2196f3;
}

.right-message i {

    color: whitesmoke;
}

.chatbot {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    overflow: hidden;
}

.messages {
    overflow-y: auto;
    /* Habilita el desplazamiento vertical cuando sea necesario */
    max-height: calc(50vh - 100px);
    /* Ajusta esta altura según tus necesidades */
}


.message {
    display: flex;
    /* Habilita Flexbox */
    align-items: center;
    /* Alinea verticalmente los elementos al centro */
    margin-bottom: 10px;
    /* Espacio entre mensajes */
    padding: 5px;
    /* Espaciado interno para cada mensaje */
}

.left.message {
    justify-content: flex-start;
    /* Alinea los elementos a la izquierda */
}

.left.message p {
    justify-content: flex-start;
    /* Alinea los elementos a la izquierda */
    border-radius: 1rem;
    /*background-color: #0f0f0f;*/
    padding: 0.2rem;
}

.left.message img.avatar {
    height: 3rem;
    border-radius: 50%;
    margin-right: 10px;
    /* Espacio entre la imagen y el texto */
    align-self: flex-start;
}

.right {
    text-align: right;
}

.right.message {
    justify-content: flex-end;
    /* Alinea los elementos a la derecha */
}


.message img,
.message i {
    margin: 0 10px;
    /* Espaciado entre la imagen/icono y el texto */
}

.message p {
    flex-grow: 1;
    /* Permite que el texto ocupe el espacio restante */
}

.message-text {
    margin-right: 10px;
    /* Reduce o ajusta este valor según tus necesidades */
}

.message-text p {
    margin-bottom: 0px;
    margin-top: 0px;

}



#search-container {
    width: 30%;
}

@media (max-width: 768px) {
    #search-container {
        width: 100%;
    }
}



#functionModal .image-container {
    text-align: center;
    margin-top: 20px;
}

#functionModal .image-container img {
    width: 60%;
    height: auto;
}

#image-overlay {
    position: fixed;
    top: 75% !important;
    left: 17% !important;
    transform: translate(-50%, -50%);
    z-index: 100050 !important;
    display: none;
}

#image-overlay img {
    width: 30rem;
    height: auto;
}

.modal-welcome {
    box-shadow: 0 10px 50px -10px rgba(0, 0, 0, 0.9);
}


.minimize-icon {
    font-size: 1.5rem;
    color: white;
}

#chat-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.85), rgba(99, 102, 241, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 2rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.35);
    animation: pulse 3s ease-in-out infinite, float 4s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, opacity 0.3s ease, visibility 0s;
}

#chat-icon:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 40px rgba(33, 150, 243, 0.5);
    animation: none;
}

.chat-icon-sparkle {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0;
    white-space: nowrap;
}

.chat-icon-image {
    font-size: 1.3rem;
    opacity: 0.9;
}

.chat-icon-image::before {
    font-size: 1.3rem;
    vertical-align: 0.125em !important;
}

#chat-icon.hidden-icon {
    visibility: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s,
                opacity 0.3s ease,
                visibility 0s 0.3s;
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* === CHATBOT GLASSMORPHISM STYLES === */
#chatbot {
    width: 32rem;
    font-family: 'Figtree', Arial, sans-serif;
    border-radius: 1.2rem;
}

@media (min-width: 769px) {
    #chatbot { width: 40rem; }
}

@media (min-width: 1200px) {
    #chatbot { width: 50rem; }
}

@media (max-width: 480px) {
    #chatbot {
        width: calc(100vw - 20px);
        right: 10px !important;
        bottom: 70px !important;
    }
}

.chat-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(99, 102, 241, 0.12));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: #e2e8f0;
}

.chat-header-title i {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat {
    padding: 16px;
    flex-grow: 1;
}

.messages {
    height: 22rem;
    overflow-y: auto;
    padding: 4px 8px;
    list-style: none;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.messages::-webkit-scrollbar {
    width: 5px;
}

.messages::-webkit-scrollbar-track {
    background: transparent;
}

.messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.message {
    margin-bottom: 14px;
    animation: messageSlideIn 0.35s ease-out;
}

.right.message .message-text {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    padding: 12px 16px;
    font-size: 14px;
    color: #fff;
    border-radius: 1.2rem 1.2rem 0.3rem 1.2rem;
    line-height: 1.6;
    text-align: right;
    max-width: fit-content;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

.right.message .message-time {
    display: block;
    font-size: 11px;
    text-align: right;
    padding-right: 8px;
    padding-top: 4px;
    color: rgba(255, 255, 255, 0.4);
}

.left.message .message-text {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    font-size: 14px;
    color: #e2e8f0;
    border-radius: 1.2rem 1.2rem 1.2rem 0.3rem;
    line-height: 1.6;
    max-width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.left.message .message-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.left.message .message-text p {
    margin-bottom: 0;
    margin-top: 0;
    color: #e2e8f0;
}

.left.message .message-time {
    display: block;
    font-size: 11px;
    text-align: left;
    padding-left: 16px;
    padding-top: 4px;
    color: rgba(255, 255, 255, 0.4);
}

.left.message img.avatar {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
    margin-right: 10px;
    align-self: flex-start;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    border: 2px solid rgba(99, 102, 241, 0.25);
    object-fit: cover;
}

.bottom {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.input-message {
    padding: 10px 14px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
    color: #e2e8f0;
    width: calc(100% - 54px);
    margin-right: 10px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-message::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-message:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.12);
    background: rgba(255, 255, 255, 0.09);
}

.btn-clinics {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    border: none !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.btn-clinics:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-clinics i {
    font-size: 16px;
}

.minimize-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.minimize-icon:hover {
    color: #fff;
}

/* === CHATBOT SPINNER === */
.spinner-container {
    display: inline-flex;
    align-items: center;
}

.spinner {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
}

.spinner > div {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    animation: dotWave 1.4s ease-in-out infinite;
}

.spinner .bounce1 {
    animation-delay: 0s;
}

.spinner .bounce2 {
    animation-delay: 0.15s;
}

.spinner .bounce3 {
    animation-delay: 0.3s;
}

.btn-blau {
    background-color: #2196f3 !important;
    border-color: #2196f3 !important;
}

.nav-link {
    font-size: 1.1rem !important;
}

.drop-idiomes {
    position: absolute !important;
    right: 40px;
}

/* FAQS */
.accordion-header {
    margin-bottom: 0;
    margin-top: 0.5rem;
  }

  #faqs a{
    text-decoration: none;
    color: #2196f3 !important;
  }
  #faqs h1{
    text-decoration: none;
    color: #2196f3;
    font-weight: 400;
  }
  #faqs .no-mtop{
    margin-top: 0 !important;
  }

  #faqs .accordion-button:not(.collapsed) {
    color: whitesmoke;
    background-color: #2196f3 !important;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
  }
  #faqs .accordion-button {
    background-color: #E7E7E7 !important

  }

