/*quiero que el navbar se ajuste al tamaño siempre */
html {
    scroll-behavior: smooth;
    width: 100vw;
}

/* html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* evita scroll innecesario 
} */

/* Pantalla inicial carga */
#intro,
#introPrivado {
    position: fixed;
    inset: 0;
    background-color: #d8c6e0;
    /* lavanda claro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    height: 100dvh;
    /* ✅ altura segura en móviles modernos */
    animation: fadeOut 1s ease 1.8s forwards;
}

#introPrivado {
    display: none;
}

/* Contenedor del texto */
#intro h1,
#introPrivado h1 {
    font-size: 35px;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    display: flex;
    gap: 4px;
}

/* Cada letra animada */
#introPrivado h1 span,
#intro h1 span {
    display: inline-block;
    animation: wave 0.6s ease forwards;
}

/* Animación del salto tipo ola */
@keyframes wave {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Animación para desaparecer el fondo */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Contenido de la web */
.contenido {
    opacity: 0;
    animation: showContent 0.5s ease 2s forwards;
}

@keyframes showContent {
    to {
        opacity: 1;
    }
}

.titulo {
    text-align: center;
    color: white;
    font-weight: 800;
    margin-top: 80px;
}

/* Fin animacion intro */

/* 
body {
    background: linear-gradient(to bottom, #7d7d62, #D7A49A);
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
} */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100vw;
    /* Fondo animado más vivo */
    background: linear-gradient(270deg, #7d7d62, #b88c84, #a19c84);
    background-size: 600% 600%;
    animation: gradientFlow 15s ease-in-out infinite;
}

/* Animación más marcada del degradado */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#navbar {
    /* background-color: #554159; */
    overflow: hidden;
    display: flex;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    font-family: Arial, sans-serif;
    font-size: small;
    justify-content: center;
    /* border-radius: 10px; */
    margin-bottom: 20px;
    background: rgba(85, 65, 89, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
}

#ultimaconexionver{
    color: white;
    font-size: small;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    z-index: 101;
}

footer {
    /* background-color: #554159; */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    bottom: 0;
    left: 0;
    font-family: Arial, sans-serif;
    font-size: small;
    justify-content: center;
    /* border-radius: 10px; */
    margin-top: 20px;
    background: rgba(85, 65, 89, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

footer p {
    color: white;
    margin: 5px;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

#navbar div a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 10px;
    text-decoration: none;
}

#navbar div a:hover {
    background-color: #443447;
    opacity: 0.7;
    border-radius: 15px;
    font-weight: 600;
}

h2 {
    text-align: center;
    color: white;
    font-weight: 800;
}

#cuerpo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    padding: 20px;
}

.oscurotexto{
    color: #202020;
}

#logo {
    text-align: center;
    font-size: 2em;
    color: #ffffff;
    margin-top: 60px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
}

#imagen {
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    width: 220px;
    height: 250px;
    object-fit: cover;
}

#boton-whatsapp {
    position: fixed;
    bottom: 10px;
    right: 15px;
    background: #25d3659f;
    backdrop-filter: blur(3px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

#boton-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#bloque1 p {
    margin-top: 3px;
    /* line-height: 1; */
}

.bloque,
.bloquePsicologo {
    border: 1px solid grey;
    width: 88%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    margin: 7px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.bloquePsicologo {
    max-width: 1000px;
}

.bloque p {
    text-align: justify;
}

.modal-contenido {
    width: 100%;
}


#listaServicios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columnas iguales */
    gap: 15px;
    justify-items: center;
    /* centra cada tarjeta en su celda */
}

.tarjetaServicios {
    display: flex;
    /* emoji izquierda, texto derecha */
    align-items: center;
    /* centra verticalmente */
    gap: 10px;
    /* separación entre emoji y texto */
    border: 1px solid rgb(255, 255, 255);
    border-radius: 10px;
    width: 140px;
    background: rgba(67, 139, 63, 0.8);
    padding: 10px;
    color: white;
    font-weight: 500;
    transition: transform 0.2s;
}

.tarjetaServicios:hover {
    transform: scale(1.05);
}

.emoji {
    flex-shrink: 0;
    /* evita que se deforme */
}

.emojidentro {
    width: 30px;
    height: 30px;
}

#linkLeyenda {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(30, 30, 30, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px 15px;
    letter-spacing: 0.8px;
    transition: 0.3s ease-in-out;
}

#linkLeyenda:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(30, 30, 30, 0.2);
    letter-spacing: 1.2px;
}

#header {
    position: relative;
    background-image: url("cuadro.JPEG");
    background-size: cover;
    /* la imagen cubre todo el div */
    background-position: left;
    display: flex;
    justify-content: center;
    align-items: center;
    /* centrada */
    color: white;
    /* texto en blanco */
    text-align: center;
    padding: 80px 20px;
    /* espacio interno */
    height: 550px;
    font-size: large;
}

#header::before {
    content: "";
    position: absolute;
    inset: 0;
    /* ocupa todo */
    background: rgba(0, 0, 0, 0.5);
    /* capa oscura semitransparente para legibilidad */
}

#header .overlay {
    position: relative;
    /* asegura que el texto esté por encima */
    z-index: 1;
}

.overlay {
    /* fijalo abajo */
    display: flex;
    text-align: center;
    margin-top: 380px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.overlay p {
    margin: 8px;
}

.letraPequeña {
    font-size: 8px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.precio-item {
    margin-top: 10px;
    width: 140px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: 600;
    transition: transform 0.2s;
}

.centro-item {
    margin-top: 40px;
}

#listaPrecios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    justify-items: center;
    text-align: center;
}

#overlayOcultar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#formulario {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#calendario-semana,
#calendario-semana-psicologo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-direction: row;
    padding: 50px;
    padding-top: 0px;
    gap: 30px;
    width: 100%;
    overflow: auto;
}

#calendario-semana-psicologo {
    width: 100%;
}

.dia-titulo {
    width: 220px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    min-width: 200px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 90%;
}

.dia-subtitulo {
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: small;
}

.dia {
    width: 220px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    min-width: 200px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 90%;
}

.hora-bloque {
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s ease-in-out;
    letter-spacing: 1px;
    font-weight: normal;
}

    .destacadoHoy{
        background: rgb(44, 128, 131);
    }

.hora-bloque:hover {
    margin: 5px 0;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 1.4px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);

}


.ocupado {
    background: rgba(255, 0, 0, 0.7);
    cursor: not-allowed;
}

.solicitado {
    background: rgba(63, 63, 63, 0.5);
    cursor: not-allowed;
}

/* .ocupado-psico {
    background: rgba(166, 0, 255, 1);
}

.pendiente-psico {
    background: rgba(255, 191, 0, 0.5);
} */

#formReserva,
#formPersonalTab {
    background: rgba(0, 0, 0, 0.2);
    width: 80%;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    min-width: 200px;
    max-height: 300px;
    min-height: 200px;
    margin: 0 auto;
    font-weight: 500;
    overflow-x: auto;
}

#modalReserva h2,
#formPersonalTab h2 {
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0px;
    color: #333;
}

#formReserva label,
#formPersonalTab label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    text-align: left;
}

#formReserva input[type="text"],
#formReserva input[type="tel"],
#formReserva input[type="email"],
#formPersonalTab input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    box-sizing: border-box;
}

#formReserva input[type="checkbox"] {
    margin-left: 5px;
}

input[type="color"] {
    /* border: 0;
    padding: 0; */
    /* width: 40px;
    height: 30px; */
    cursor: pointer;
    margin-left: 10px;
    /* background: none; */
    /* border-radius: 100%!important; */
}

#formReserva button,
#formPersonalTab button {
    background: rgba(67, 139, 63, 0.8);
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#formReserva button:hover,
#formPersonalTab button:hover {
    background: rgba(67, 139, 63, 1);
}

#formReserva #cerrarModal,
#formPersonalTab #cerrarModalPersonal {
    background: rgba(139, 63, 63, 0.8);
    margin-top: 10px;
}

#formReserva #cerrarModal:hover,
#formPersonalTab #cerrarModalPersonal:hover {
    background: rgba(139, 63, 63, 1);
}

#modalidad {
    margin-left: 15px;
}

#infoCitas {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#calendario-contenedor {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.calendario-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 10px;
}

.calendario-nav button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: rgba(67, 139, 63, 0.7);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.calendario-nav button:hover {
    background: rgba(67, 139, 63, 0.9);
}
#volverHoy{
    background: rgba(63, 115, 139, 0.8);
}

#volverHoy:hover{
    background: rgba(63, 115, 139, 1);
}
.calendario-nav button:disabled {
    background: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
}

#panelNotificaciones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#centrarNotificacion {
    /* fijala arriba del todo de pantalla aunque el usuario baje */
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* display: flex; */
    /* justify-content: center;
    align-items: center; */
    text-align: center;
    z-index: 99999;

}

.bloqueNoti {
    text-align: center;
}

#cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 30px rgba(30, 30, 30, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.269);
    /* border: 2px solid white; */
    padding: 20px;
    z-index: 700;
    width: 80%;
    text-align: center;
    font-family: system-ui, sans-serif;
    display: none;
}

#aceptar-cookies {
    background-color: #4a7ae8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s ease-in-out;
}

#aceptar-cookies:hover {
    letter-spacing: 1.5px;
}

.boton {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 5px;
    padding: 10px 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    border-radius: 10px;
}

.boton:hover {
    letter-spacing: 1.8px;

}

.botonEliminar{
    background: rgba(230, 104, 8, 0.8);
    color: white;
    border: none;

}

.btnCancelar {
    background: rgba(230, 8, 8, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding: 3px 10px;
    top: 0px;
    right: 0px;
    font-size: larger;
    transition: 0.3s ease-in-out;
}

.btnCancelar:hover {
    background: rgba(139, 63, 63, 0.8);
}

.contenedor-botones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.btnEliminar {
    background: rgba(230, 104, 8, 0.8);
    color: white;
    border: none;
    font-weight: 600;
}

.btnConfirmar {
    background: rgba(63, 115, 139, 0.8);
    color: white;
    border: none;
    font-weight: 600;
}

.botonLoading {
    position: relative;
    pointer-events: none;
    color: transparent !important;

    /* haz una animacion que simule que el boton esta cargado */
    &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        border: 3px solid white;
        border-top: 3px solid transparent;
        border-radius: 50%;
        /* solo gira una vez */
        transform: translate(-50%, -50%);
        animation: spin 1s linear infinite;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#formCrearDispo {
    background: rgba(0, 0, 0, 0.2);
    width: 80%;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 300px;
    margin: 0 auto;
    font-weight: 500;
}

#observaciones {
    height: 200px;
}

textarea {
    resize: vertical;
    /* Permite redimensionar solo verticalmente */
    min-height: 100px;
    /* Altura mínima */
    max-height: 300px;
    /* Altura máxima */
    width: 100%;
    /* Ancho completo del contenedor */
    padding: 10px;
    /* Espaciado interno */
    border-radius: 8px;
    /* Bordes redondeados */
    border: none;
    /* Sin borde */
    font-size: 14px;
    /* Tamaño de fuente */
    box-sizing: border-box;
    /* Incluye padding en el ancho total */
}

#mostrarInfoCita {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-height: 500px;
    justify-items: center;
    text-align: center;
    /* en pantallas de moviles que sea una sola columna con overflow  */
    overflow-x: auto;

}


.elementoBloqueVer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
}

#notasPrivadas {
    /* quiero que ocupe las dos columnas del grid: mostrarinfocita */
    grid-column: span 2;
    width: 90%;
    height: 100px;
    resize: vertical;
    margin-top: 5px;
    border: 1px solid grey;
}

.notificacion {

    margin-top: 30px;
    /* Debajo del navbar */
    /* centrarla horizontalmente */
    left: calc(50% - 150px);
    opacity: 0;
    width: 350px;
    background-color: #4a7ae8;
    background: rgba(74, 122, 232, 0.7);
    box-shadow: 0 4px 30px rgba(30, 30, 30, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    color: white;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 99999;
    text-align: center;
}

.botonesSaltando {
    animation: botonesSaltar 0.8s ease infinite;
}

#modalEditar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    /* ✅ permite desplazamiento del modal completo si el contenido es largo */
    overflow-x: hidden;
    padding: 20px 0;
    /* ✅ da espacio para que no se corte el contenido al llegar al borde */
}

/* Contenedor interno del modal */
.modal-inner {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
    margin: auto;
    /* ✅ centra el contenido correctamente */
}

/* .modal-inner{
        max-height: 90vh; 

    overflow-y:auto;
} */

/* // inner.style.background = 'white';
    // inner.style.color = 'black';
    // inner.style.margin = '100px auto';
    // inner.style.padding = '20px';
    // inner.style.maxWidth = '600px';
    // inner.style.width = '80%';
    // inner.style.borderRadius = '10px'; */
/* .modal-inner {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh; 
    overflow-y: auto; 
    box-sizing: border-box;
} */

@keyframes botonesSaltar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    #mostrarInfoCita {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    #notasPrivadas {
        width: 90%;
    }

    .modal-inner {
        width: 90%;
    }

    .notificacion {
        width: 250px;
        margin-top: 15px;
        padding: 10px;
    }
}

#recaptcha {
    /* ponlo abajo del todo de la pantalla pegado a la izquierda */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.recaptcha-container {
    border-radius: 30px;
    width: 90%;
}

.centrarElemento {
    display: flex;
    align-items: center;
    justify-content: center;
}

.espaciador {
    margin: 30px;
    opacity: 0;
}

.repetir-imagen {
    position: fixed;
    /* fija la imagen en pantalla */
    top: 43px;
    /* 50px desde el borde superior */
    left: 0;
    width: 100%;
    /* ocupa todo el ancho */
    height: 100px;
    /* alto del patrón */
    background-image: url('./img/halloween.png');
    background-repeat: repeat-x;
    /* repite solo horizontalmente */
    background-size: 200px auto;
    /* cada imagen mide 200px de ancho */
    background-position: top left;
    /* alineación inicial */
    z-index: 1000;
    /* asegura que esté visible sobre otros elementos */
    pointer-events: none;
    /* evita que bloquee clics si pasa por encima */
    opacity: 0.9;
}



#editorColores {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Contenedor principal del editor de tareas */
#misTareas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    /* max-width: 600px; */
}

/* Formulario de nueva tarea */
#formNuevaTarea {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Inputs del formulario */
#formNuevaTarea input[type="text"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    width: 300px;
    box-sizing: border-box;
}

#formNuevaTarea input[type="date"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    box-sizing: border-box;
}

/* Botón de añadir */
#formNuevaTarea button {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    background: rgba(67, 139, 63, 0.8);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#formNuevaTarea button:hover {
    background: rgba(67, 139, 63, 1);
}

/* Lista de tareas */
#listaTareas {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* centra los elementos */
    gap: 10px;

    max-height: calc((5 * 80px) + 40px);
    /* altura máxima aproximada (5 filas de unos 80px cada una + margen) */
    overflow-y: auto;
    /* scroll vertical si hay más filas */
    overflow-x: hidden;
    /* evita scroll horizontal */
}

/* Cada tarea */
#listaTareas li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    max-width: 450px;
    width: 100%;
    flex: 1 1 450px;
    /* máximo 450px y flexible */
}

/* Título de la tarea terminada */
#listaTareas li .tarea-terminada {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Botones de cada tarea */
#listaTareas li button {
    margin-left: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

#listaTareas li button.btnCambiarEstado {
    background: rgba(63, 115, 139, 0.8);
    color: white;
}

#listaTareas li button.btnCambiarEstado:hover {
    background: rgba(63, 115, 139, 1);
}

#listaTareas li button.btnEliminarTarea {
    background: rgba(230, 8, 8, 0.8);
    color: white;
}

#listaTareas li button.btnEliminarTarea:hover {
    background: rgba(139, 63, 63, 0.8);
}



/* Si el ancho de la pantalla es de al menos 600px,
   el modal ocupará el 50% del ancho de la pantalla */
@media screen and (min-width: 600px) {

    .bloque,
    .bloquePsicologo {
        padding: 50px;
    }

    #detallePacienteContenido p {
        display: flex;
    }

    #detallePacienteContenido strong {
        margin-right: 10px;
        width: 150px;
    }
}

.opcionesGuardadoPsico {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 0px;
    margin-bottom: 20px;
}

#tabCita,
#tabPersonal {
    color: white;
    border: none;
    background: rgba(64, 123, 110, 0.8);
    padding: 10px 15px;
    transition: 0.3s ease-in-out;
    border-radius: 15px;
}

#tabCita:hover,
#tabPersonal:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.tab-active {
    font-weight: 600;
    background: rgba(43, 83, 75, 0.8) !important;

}


#blogPersonal {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

#btnNuevoBlog {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

#btnNuevoBlog:hover {
    background-color: #0056b3;
}

.listaBlogs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;

}

.blogItem {
    background: #a96a45d6;
    padding: 8px 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blogItem .tituloBlog {
    font-weight: 600;
}

.blogItem button {
    margin-left: 6px;
}

.modalBlog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* // modal.style.position = 'fixed';
    // modal.style.top = '0';
    // modal.style.left = '0';
    // modal.style.width = '100%';
    // modal.style.height = '100%';
    // modal.style.background = 'rgba(0,0,0,0.5)';
    // modal.style.display = 'none';
    // modal.style.zIndex = '1000'; */




.modalContentBlog {
    background: white;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 8px;
    overflow: auto;
}

.iframeEditor {
    flex-grow: 1;
    width: 100%;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.botonesModalBlog {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.modalContentBlog img {
    width: 300px;
    height: auto;
    /* Mantener proporción */
    border-radius: 15px;
}

#pacientesPrivado {
    width: 90%;
}

/* ✅ Corrige el nombre de la clase */
.lista-pacientes {
    display: flex;
    flex-wrap: wrap;
    /* permite que bajen de línea si no caben */
    gap: 10px;
    width: 100%;
    justify-content: center;
    /* centra los pacientes horizontalmente */
}

.paciente-dentro {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 1.5px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    flex: 1 1 200px;
    /* ✅ cada bloque ocupa mínimo 200px y se adapta */
    max-width: 250px;
    /* opcional: ancho máximo por bloque */
}

.paciente-dentro:hover {
    background: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.modalPacienteDetalle {
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: auto;
    z-index: 10000;
    /*que se sobreponga a todo pero centrado*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    color: black;
}

.modalPacienteDetalle h2 {
    text-align: center;
    margin: 15px;
    margin-bottom: 25px;
    color: black;
}

#cerrarDetallePaciente {
    background: rgba(230, 8, 8, 0.8);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
}

#anotacionesTextarea {
    margin-top: 10px;
    border: 1px solid grey;
}

.hidden {
    display: none;
}

#copiarLink {
    /* background-color: rgba(0, 128, 0, 0.726); */
    margin-left: 10px;
    border-radius: 5px;
}

.inputlargo {
    width: 200px !important;
    /* border-color: rgba(128, 128, 128, 0.134);
    border-radius: 5px;
    text-align: center; */
}

#waPaciente{
    margin-left: 10px;
    color: green;
}

#buscarPaciente{
    margin-bottom: 15px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    width: 300px;
    box-sizing: border-box;
}

#resultadosBusqueda{
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    max-height: 200px;
}

.resultado-paciente{
    margin-bottom: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: rgba(63, 139, 112, 0.8);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}


/* Responsive */
@media (max-width: 600px) {
    #formNuevaTarea {
        flex-direction: column;
        gap: 8px;
    }

    #formNuevaTarea input[type="date"] {
        width: 90px;
    }

    #formNuevaTarea input[type="text"] {
        width: 200px;
    }

    #listaTareas li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    #listaTareas li button {
        margin-left: 0;
    }

    #gifintroon {
        width: 200px;
    }
}

#googleSignIn{
    display: flex;
    justify-content: center;
    align-items: center;
}