/* Fuentes de texto */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Jost:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');
/* ---------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: none;
    outline: none;
    overflow-x: hidden;
}

body {
    scroll-behavior: smooth;
    background: #f5f6fa;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: none;
    outline: none;
    overflow-x: hidden;
}

main {
    flex: 1;
}

header {
    margin: 0;
    z-index: 100;
    width: 100%;
    top: 0;
    position: sticky;
    background: #fff;
    padding: 6px 37px;
    color: #1e1e1e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.encabezado {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin: 0 auto;
    text-align: center;
    flex-wrap: wrap;
    font-family: sans-serif;
    position: relative;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.right-header {
    margin-left: auto;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #1d1e20;
    text-decoration: none;
    font-size: 17px;
    padding: 8px 12px;
    font-family: "Wix Madefor Display", sans-serif;
}

nav a:hover {
    filter: brightness(1.72);
    background-color: rgba(255, 255, 255, 0.1);
}

.boton-login {
    border: 0;
    background-color: #166aea;
    color: #fff;
    padding: 8px 30px;
    font-family: "Wix Madefor Display", sans-serif;
    border-radius: 42px;
    line-height: 24px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.3s, transform 0.2s;
}

.boton-login:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.boton-login:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.boton-login:hover .flecha {
    transform: translateX(4px);
}


.menu-toggle {
    display: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #2873d4;
    user-select: none;
    padding: 10px;
}


.submenu {
    display: none;
    flex-direction: column;
    background-color: #ffffffcc;
    position: fixed;
    top: 120px;
    right: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1500;
    padding: 10px 0;
}



.submenu a {
    color: #2873d4;
    padding: 10px 20px;
    font-size: 18px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.submenu a:hover {
    background-color: #e0f0ff;
}


.submenu.active {
    display: flex;
}

.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.325), rgba(0, 0, 0, 0.325)), url('ImagenesFijas/composicion-quimica-fisica_atemporal.jpg');
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: -30px;
}

.banner-content {
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.banner-content h1 {
    font-family: "Lato", sans-serif;
    font-size: 56px;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.banner-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 20.8px;
    font-weight: 400;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    line-height: 1.6;
}

.banner-content h6 {
    color: #000000;
    padding-top: 5px;
}

.boton-banner {
    font-family: "Arimo", sans-serif;
    display: inline-block;
    transition: filter 0.3s, transform 0.2s;
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: none;
    line-height: 1.3;
    font-style: normal;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
    word-spacing: normal;
    text-transform: none;
    font-weight: bold;
    background: #5598f0a6;
    opacity: 1;
    padding: 1em 2em 1em 2em;
    box-shadow: 1px 2px 1px 0px RGBA(0, 0, 0, 0.42);
    border: 0px solid RGBA(0, 0, 0, 1);
    border-radius: 99px;
}

.boton-banner:hover {
    background: linear-gradient(270deg, #ce68d9, #45c6db, #38aa34);
    animation: Gradient 3s ease infinite;
    background-size: 800% 800%;
    transform: translateY(-2px);
    color: rgba(white, 1);
}

@keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.seccion-guia {
    padding: 60px 20px;
    background-color: #fff;
    font-family: "Wix Madefor Display", sans-serif;
}

.contenedor-guia {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
}

.guia-texto {
    flex: 1 1 40%;
    min-width: 280px;
}

.guia-texto h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.guia-texto p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-empezar {
    background-color: #166aea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    transition: padding 0.3s ease;
    position: relative;
}

.btn-empezar .icono-flecha {
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    fill: white;
}


.btn-empezar span {
    display: inline-block;
    transition: transform 0.3s ease;
}


.btn-empezar:hover .icono-flecha {
    opacity: 1;
    transform: translateX(0);
}

.btn-empezar:hover span {
    transform: translateX(-5px);
}

.guia-pasos {
    flex: 1 1 55%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.paso {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 11px;
}

.paso span {
    color: gray;
    font-size: 15px;
    width: 30px;
}

.paso strong {
    font-size: 16px;
}

.paso p {
    margin-top: 5px;
    font-size: 15px;
    color: #333;
}

.content-left,
.content-right {
    flex: 1;
}

.content-right {
    padding-left: 100px;
    text-align: left;
}

.content-left img {
    padding-left: 225px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beneficios {

    font-family: "Jost", sans-serif;
    max-width: 1250px;
    margin: 64px auto;
    padding: 48px 32px;
    text-align: center;
    background-color: #fafbff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.beneficios h2 {
    font-weight: 600;
    font-size: 42px;
    margin-bottom: 0.3em;
}

.beneficios p {
    font-size: 21px;
    color: #555;
    margin-bottom: 2em;
}

.tarjetas {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    flex-wrap: wrap;
}

.tarjeta {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5em;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tarjeta h3 {
    font-weight: 600;
    font-size: 26px;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.icono svg {
    width: 75px;
    height: 75px;
    margin-bottom: 0.5em;
}

.faq-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.faq-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: #1d1e20;
    font-family: 'Inter', sans-serif;
}

.faq-tarjeta {
    border-top: 1px solid #dcdcdc;
    padding: 16px 0;
}

.faq-pregunta {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    color: #1d1e20;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;

}

.error-message {
    color: red;
    font-size: 12px;
    display: none;
    font-family: "DM Sans", sans-serif;
}

.input-group.error input {
    border-color: red !important;
}

.input-group.error label {
    color: red !important;
}


.faq-icono {
    color: #1d1e20;
    transition: transform 0.3s ease;
}

.faq-tarjeta.active .faq-icono {
    transform: rotate(180deg);
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-size: 16px;
    color: #4a4a4a;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

.faq-tarjeta.active .faq-respuesta {
    max-height: 500px;
}

.login-form {

    padding: 2rem;           /* menos padding */
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: white;
    max-height: 80vh;
    overflow-y: auto;        /* scroll si hay muchos campos */

}

.modal-box-reserva {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.modal-box-reserva h2 {
    margin-bottom: 30px;
    align-self: stretch;
    text-align: center;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    margin-top: unset;
    font-family: "DM Sans", sans-serif;
    color: #2873d4;
}

.reserva-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reserva-form label {
    text-align: left;
    width: 100%;
    color: #6D7081;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    font-family: "DM Sans", sans-serif;
}

.reserva-form .no-account {
    text-align: center;
    display: block;
    unicode-bidi: isolate;
    font-family: "DM Sans", sans-serif;
}

.reserva-form .no-account a {
    font-size: 16px;
    color: #2873d4;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}


/* Calendario dentro del modal */
#calendar {
    flex: 1;
    min-height: 400px;
    width: 100%;
}

.login-form hr {
    margin-bottom: 30px;
}

.login-form h2 {
    margin-bottom: 30px;
    align-self: stretch;
    text-align: center;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    margin-top: unset;
    font-family: "DM Sans", sans-serif;
    color: #2873d4;
}

.login-form label {
    text-align: left;
    width: 100%;
    color: #6D7081;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    font-family: "DM Sans", sans-serif;
}

.login-form input {
    margin-bottom: 15px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased !important;
    direction: ltr;
    display: block;
    width: 100% !important;
    padding: .85em 1.15em !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    transition: all .15s ease-in-out !important;
    font-size: 14px;
    height: 48px !important;
    border: 1px solid #DADCE0 !important;
    box-sizing: border-box;
    border-radius: 8px !important;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    box-shadow: none;
}

.mostrar-contraseña {
    top: 13px;
    right: 10px;
    cursor: pointer;
    position: absolute;
    display: block;
    unicode-bidi: isolate;
}

.mostrar-contraseña svg {
    transition: fill 0.3s;
    cursor: pointer;
}

.mostrar-contraseña.visible svg {
    fill: #2873d4;
}

.input-password {
    position: relative;
    text-align: left;
    width: 100%;
    margin-bottom: 8px;
    display: block;
    unicode-bidi: isolate;
}

.btn-login {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased !important;
    direction: ltr;
    vertical-align: middle;
    box-sizing: border-box;
    word-break: keep-all;
    white-space: nowrap;
    border-radius: 8px !important;
    border: 1px solid transparent;
    filter: none;
    width: 100% !important;
    padding: .7rem .9rem;
    margin-left: 0;
    margin-right: 0;
    color: #fff;
    background-color: #2873d4;
    width: 100%;
    margin-bottom: 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 53px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

.btn-reserva {
    width: 25%;
    align-self: center;
    margin-top: 1rem;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background-color: #2873d4;
    color: white;
    cursor: pointer;
}

.btn-login:hover {
    background-color: #2062b8;
}

.text-center {
    text-align: center;
}

.no-account {
    text-align: center;
    display: block;
    unicode-bidi: isolate;
    font-family: "DM Sans", sans-serif;
}

.no-account a {
    font-size: 16px;
    color: #2873d4;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-group input {
  width: 100%;
  padding: 14px 12px;
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
  border: 2px solid #dadce0 !important; /* borde más visible */
  border-radius: 8px;
  outline: none;
  box-sizing: border-box; /* asegura que padding no afecte el borde */
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

/* borde azul completo al enfocar */
.input-group input:focus {
  border-color: #4da8ff !important;
  box-shadow: 0 0 0 2px rgba(77, 168, 255, 0.25); /* sombra que envuelve todo el borde */
}

/* label flotante */
.input-group label {
  position: absolute;
  left: 12px;
  top: 14px;
  background-color: white;
  padding: 0 4px;
  color: #777;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease all;
}

/* etiqueta flotante al llenar o enfocar */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 13px;
  color: #4da8ff;
}

.input-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset; /* fondo blanco */
    -webkit-text-fill-color: #000; /* color del texto */
    transition: background-color 5000s ease-in-out 0s; /* evita parpadeos */
}

/* Opcional: si quieres que al enfocar siga el borde azul y sombra */
.input-group input:-webkit-autofill:focus {
    border-color: #4da8ff !important;
    box-shadow: 0 0 0 2px rgba(77, 168, 255, 0.25) inset; 
    -webkit-box-shadow: 0 0 0 1000px white inset; 
}

.hidden {
    display: none;
}

footer {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 40px;
    width: 100%;
    background: linear-gradient(to right, #e6e9ef, #cfd8e6);
    color: #333;
    text-align: center;
    font-size: 17.5px;
    border: none;
    outline: none;
    box-shadow: none;
}

.overlay {
    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-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}


#overlay-reserva,
#overlay-reserva select,
#overlay-reserva textarea,
#overlay-reserva input,
#overlay-reserva button {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}


#overlay-reserva select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

#overlay-reserva select:focus {
    box-shadow: 0 0 0 1.5px rgb(0, 0, 0);
    outline: none;
}


#overlay-reserva textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#overlay-reserva input[type="hidden"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
}


#overlay-reserva textarea:focus {
    box-shadow: 0 0 0 1.5px rgb(0, 0, 0);
    outline: none;
}


#overlay-reserva input[type="datetime-local"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#overlay-reserva input[type="datetime-local"]:focus {
    border-color: #000000;
    box-shadow: 0 0 0 1.5px rgb(0, 0, 0);
    outline: none;
}


#overlay-reserva .btn-login {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: auto !important;     
    min-width: 150px;         /* 👈 más corto que el modal */
    margin: 15px auto 0;     /* 👈 centrado */
    display: block;          /* necesario para centrar con margin auto */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
}

#overlay-reserva .btn-izquierda {
    margin-left: 0;       /* elimina el centrado */
    margin-right: auto;   /* alinea a la izquierda */
    display: inline-block; /* permite que respete su tamaño */
    background: #fff;
    min-width: 50px;
}

#overlay-reserva .btn-izquierda:hover {
 background: none !important;
}


#overlay-reserva .btn-login svg {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

#overlay-reserva .btn-login:hover {
    background: linear-gradient(135deg, #1669d8, #357ae8);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#overlay-reserva .btn-login:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
#overlay-reserva {
    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: 1000;
}

#overlay-reserva.show .modal-box-reserva {
    animation: fadeInScaleReserva 0.35s ease forwards;
}

#overlay-reserva.hide .modal-box-reserva {
    animation: fadeOutScaleReserva 0.25s ease forwards;
}
.close-box-design {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 34px;
    color: #727586;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 100;
    transition: color 0.2s ease;
}

.close-box-design:hover {
    color: #1e1e1e;
}

.hidden {
    display: none;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.975); /* menos agresivo */
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.modal-materiales.show {
    animation: fadeInScale 0.35s ease forwards;
}

.modal-materiales.hide {
    animation: fadeOutScale 0.25s ease forwards;
}

.overlay.show {
    display: flex;
}

.overlay.show .modal-box {
    animation: fadeInScale 0.35s ease forwards;
}


.overlay.hide .modal-box {
    animation: fadeOutScale 0.25s ease forwards;
}



@media (max-width: 900px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .submenu {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 100px;
        right: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 160px;
        padding: 10px 0;
        z-index: 1000;
    }

    .submenu.active {
        display: flex;
    }

    .encabezado {
        justify-content: space-between;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-block;
    }

    .modal-box-reserva .close-box-design {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Wix Madefor Display", sans-serif;
    font-size: 16px;
    color: #1d1e20;
}

.user-info img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.avatar-container {
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4f46e5;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 32px;
    width: 282px;
    text-align: left;
    background: white;
    border: none;
    left: auto;
    border-radius: 12px;
    filter: drop-shadow(0px 0px 12px rgba(29, 30, 32, .16));
    display: flex;
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
    font-family: DM Sans, Roboto, sans-serif;
    font-weight: 400;
    font-size: inherit;
}

.dropdownupper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    padding: 16px;
    color: #3b3d4a;
    border-bottom: 1px solid #d8dae0;
}

.dropdownlower {
    padding: 0;
    /* quitamos padding para que logout ocupe todo el ancho */
    display: flex;
    flex-direction: column;
    gap: 0;
    /* podemos usar gap solo dentro del ul */
    color: #3b3d4a;
    width: 100%;
    box-sizing: border-box;
}

.dropdownlower ul {
    padding: 24px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdownlower li {
    display: flex;
    align-items: center;
}

/* Aplica estilo uniforme a ambos */
.dropdown_informacion_cuenta,
.dropdown_traducir {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    /* margen igualado */
    color: #1d1e20;
    text-decoration: none;
    background-color: transparent;
    font-weight: 500;
    line-height: 24px;
    box-sizing: border-box;
}

.dropdown_informacion_cuenta svg,
.dropdown_traducir svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dropdown a,
.dropdown_traducir {
    padding: 10px;
    text-decoration: none;
    color: #1d1e20;
    font-size: 14px;
}

.logout-dropdown {
    display: flex;
    justify-content: center;
    /* centra horizontalmente */
    align-items: center;
    /* centra verticalmente */
    width: 100%;
    /* ocupa todo el ancho del dropdown */
    border-top: 1px solid #d8dae0;
    padding: 8px 16px;
    /* espacio interno */
    box-sizing: border-box;
    background-color: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.btn-logout {
    width: 100%;
    /* ocupa todo el ancho de su contenedor */
    max-width: 220px;
    /* opcional: ancho máximo si querés limitarlo */
    padding: 6px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #166aea !important;
    background-color: #ffffff;
    border: 1px solid #d8dae0;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .1s ease-in-out, transform .1s ease-in-out;
}

.btn-logout:hover {
    color: #166aea;
    background-color: #e6f0ff;
    border: 1px solid #d8dae0;
}

.btn-logout:active {
    transform: scale(.95);
}

/* Hover */
.dropdown_informacion_cuenta:hover,
.dropdown_traducir:hover {
    background: #f8f8f8ec;
    border-radius: 8px;
}

.hidden {
    display: none;
}


/* Alerta */
.alerta {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.alerta.mostrar {
    opacity: 1;
    pointer-events: auto;
}

.alerta-contenido {
    font-family: "Wix Madefor Display", sans-serif;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 300px;
    animation: scaleIn 0.35s ease forwards;
    position: relative;
}

.alerta-icono svg {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    animation: iconBounce 0.6s ease;
}

.alerta-contenido p {
    margin: 10px 0 15px;
    font-weight: 500;
    color: #333;
}

.alerta-contenido button {
    background: #2873d4;
    color: #fff;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.alerta-contenido button:hover {
    background: #1a4fa0;
}

@keyframes scaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes iconBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}


/* Overlay exclusivo para materiales */
.overlay-materiales {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    /* Se activa solo cuando se remueve .hidden */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    /* Permite scroll si hay muchas tarjetas */
    padding: 20px;
}

/* Clase para ocultar overlay */

/* Modal exclusivo */
.modal-materiales {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
}

/* Título y separador */
.modal-materiales h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 36px;
    font-weight: 700;
    line-height: 40px;
    font-family: "DM Sans", sans-serif;
    color: #2873d4;
    text-align: center;
}

.modal-materiales hr {
    margin-bottom: 20px;
    border: none;
    border-top: 1px solid #ddd;
}

/* Contenedor de tarjetas con scroll */
.materiales-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 400px;
    /* Máximo antes de scroll */
    overflow-y: auto;
    padding: 5px;
}

/* Tarjeta de material */
.material-item-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    /* 🔹 mantener todo arriba */
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

.material-item-card:hover {
    transform: translateY(-3px);
}

.material-item-card img {
    width: 100%;
    height: 110px;
    /* altura visual de la mini tarjeta arriba */
    object-fit: contain;
    /* muestra la imagen completa sin cortar */
    object-position: center;
    /* centra la imagen */
    display: block;
}


/* Contenedor del texto (nombre, unidad, cantidad disponible) */
.material-item-card .texto-material {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

.material-item-card .texto-material p.nombre {
    font-weight: bold;
    font-size: 13px;
    color: #333;
    margin: 0;
    font-family: "DM Sans", sans-serif;
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
    min-height: 2.4em;
    /* reserva espacio para 2 líneas aunque tenga 1 */
}

.material-item-card .texto-material .info-abajo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
    /* pequeño espacio del nombre */
}

.material-item-card .texto-material .info-abajo p {
    font-size: 12px;
    color: #555;
    margin: 0;
    text-align: left;
    font-family: "DM Sans", sans-serif;
}

/* Contenedor de botones + - */
.material-item-card .botones-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 3px 6px;
    box-sizing: border-box;
    margin: 8px auto 6px auto;
    width: fit-content;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.material-item-card .botones-cantidad.activo {
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5); /* verde suave */
}

.material-item-card p {
    margin: 2px 0;
    font-size: 14px;
    word-break: break-word;
    /* permite nombres largos */
}

.material-item-card div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    gap: 5px;
}

.material-item-card button {
    width: 28px;
    height: 28px;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.material-item-card .btn-agregar {
    background: #4caf50;
    color: white;
    border-color: #3e8e41;
}

.material-item-card .btn-quitar {
    background: #f44336;
    color: white;
    border-color: #c62828;
}

/* Hover */
.material-item-card .btn-agregar:hover {
    background: #45a049;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}

.material-item-card .btn-quitar:hover {
    background: #e53935;
    box-shadow: 0 0 4px rgba(244, 67, 54, 0.4);
}

.material-item-card button.activo {
    transform: scale(0.92);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.material-item-card input[type="number"] {
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 2px 4px;
    background: #e3f2fd;
    text-align: center;
    width: 40px;
    outline: none;
    font-size: 14px;
}
.material-item-card .contador {
    width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
}

.material-item-card button {
    transition: all 0.15s ease;
}

/* Botón confirmar dentro del modal */
.modal-materiales .btn-login {
    margin: 15px auto 0 auto; /* 🔹 centrado horizontal */
    margin-top: 15px;
    width: 20%; /* puede ser un % o un valor fijo */
    min-width: 150px; /* mínimo ancho para no ser demasiado pequeño */
    max-width: 200px; /* máximo ancho para no ser demasiado grande */
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background-color: #1a73e8;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}



/* Responsive para el botón en el modal de materiales */
@media (max-width: 768px) {
    .modal-materiales .btn-login {
        width: 80%;
        min-width: 120px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .modal-materiales .btn-login {
        width: 90%;
        min-width: 100px;
        font-size: 14px;
        padding: 12px;
    }
}


.modal-materiales .btn-login:hover{
    background: linear-gradient(135deg, #1669d8, #357ae8);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.modal-materiales .btn-login:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Botón de cerrar */
.close-box-design {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.close-box-design:hover {
    color: #ff0000;
}

/* Scroll suave para el overlay */
.overlay-materiales::-webkit-scrollbar {
    width: 8px;
}

.overlay-materiales::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* Responsive */
@media(max-width: 500px) {
    .materiales-lista {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .material-item-card img {
        width: 100%;
        height: 60px;
    }

    .material-item-card button {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .material-item-card .contador {
        width: 26px;
        font-size: 14px;
    }
}

#materialesSeleccionados {
    text-align: left;
    margin-top: 10px;
    line-height: 1.5;
}

#materialesSeleccionados p {
    margin: 2px 0;
    font-size: 14px;
}

.material-item-card .unidad,
.material-item-card .cantidad-disponible {
    text-align: left;
    width: 100%;
    /* para que ocupe todo el ancho de la tarjeta */
    padding-left: 5px;
    /* opcional, un poquito de margen interno */
    box-sizing: border-box;
}

.materiales-seleccionados {
    width: 100%;
    min-height: 50px;
    max-height: calc(3 * 50px);
    /* Máximo 3 filas aprox */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    overflow-y: auto;
    /* scroll automático si excede altura */
    font-size: 14px;
    margin-top: -15px !important;
    white-space: pre-line;
    /* mantiene saltos de línea */
}

.materiales-seleccionados label {
    font-size: 15px;
}

/* Opcional: scroll más visible */
.materiales-seleccionados::-webkit-scrollbar {
    width: 6px;
}

.materiales-seleccionados::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

#menu-idiomas {
    position: absolute;
    display: none;
    background: white;
    border: 1px solid #d8dae0;
    border-radius: 8px;
    padding: 8px;
    z-index: 9999;
}

#menu-idiomas .idioma-opcion {
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}

#menu-idiomas .idioma-opcion:hover {
    background-color: #f0f0f0;
}

@keyframes fadeInScaleReserva {
    0% {
        opacity: 0;
        transform: scale(0.975);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScaleReserva {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}
