/* Contenedor del formulario */
.form-container {
    width: 80%; /* Ocupa el 80% del ancho de la pantalla */
    margin: 0 auto; /* Centra el contenedor */
    padding: 20px;
    background-color: #fff; /* Fondo blanco */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
/* Estilo para campos con errores */
.campo-error {
    border: 2px solid red !important; /* Borde rojo */
    background-color: #ffe6e6 !important; /* Fondo rojo claro */
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5) !important; /* Sombra roja */
    animation: shake 0.5s ease-in-out; /* Animación de "shake" */
}

/* Animación de "shake" para llamar la atención */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    color: #333; /* Dark grey text */
    font-weight: bold;
}

body
{
	margin: 0;
    padding: 0;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center top;
    background-attachment: fixed;
    font-family: "Lato",sans-serif;
}

/*Terminos*/
#content_fondo 
{
    background-color: rgba(0, 0, 0, 0.698);
    display: none;
    height: 100%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100001;
}

#page 
{
    margin: auto;
    width: 940px;
}

header #logo 
{
    float: left;
}

#logo img {
    width: 200px;
}
#titulo  {
    width: 100%;
    height: 280px;
    background-image: url("../images/encabezado2024.png");
    background-repeat:no-repeat;
    background-size:100% 100%;
}

#titulo h1 {
    color: #FFFFFF;
    text-align: center;
    margin: auto;
    position: relative;
    text-align: center;
    /*font-family: YgraineSkeleton;*/
    font-family: "Lato",sans-serif;
    font-size: 2.1em;
}

#titulo h2 {
    color: #FFFFFF;
    margin: auto;
    position: relative;
    text-align: center;
    font-family: "Lato",sans-serif;
    font-size: 2em;
}


.div_login 
{
    background-position: center bottom;
    background-repeat: no-repeat;
    font-family: "Lato",sans-serif;
    font-size: 0.94em;
    line-height: 1.2em;
    width: 100%; /* Ocupa todo el ancho del contenedor */
    margin: 0 auto; /* Centra el contenido */
    padding: 20px;
    background-color: #eeeeee; /* Fondo gris claro */
    border-radius: 10px; /* Bordes redondeados */
}
.div_login label
{
    width: 180px;
}

/* Ajustes para los campos del formulario */
.div_login table {
    width: 100%; /* Ocupa todo el ancho del contenedor */
}

.div_login input[type="text"] {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 300px; /* Ancho máximo para los campos de texto */
    box-sizing: border-box; /* Incluye padding y border en el ancho */
}

/* Estilos para selects y campo de fecha - mismo ancho que inputs de texto */
.div_login select,
.div_login input[type="date"] {
    width: 100% !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
    padding: 5px 10px;
    min-height: 40px;
    border: 1px solid #ddd;
    border-radius: 1.1em;
    font-size: 0.9em;
}

/* Estilos específicos para el select de tipo de habitación */
#tipoHabitacionInscripciones {
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* Estilos para el campo de fecha */
#fechaNacimInscripciones {
    font-size: 0.9em;
}

/* Ajustes para los botones */
.div_login input[type="button"] {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 300px; /* Ancho máximo para los botones */
    margin: 10px auto; /* Centra los botones */
}

table
{
    vertical-align: top;
}

#tabla1 
{
    text-align: right;
    width: 50%;
}

#tabla2
{
    text-align: left;
    vertical-align: top;
    font-size: 1.1em;
}
#tabla2 .div_login
{
    padding: 1.1em 50px !important;
    width: 80%;
}
input
{
    border: medium none;
    border-radius: 1.1em;
    min-height: 25px;
    width: 270px;
    padding: 0 10px;
    font-size: 0.9em;
}
input[type="text"] 
{
    font-size: 1.1em;
}
input[type="button"] 
{
    margin-top: 0.5em;
    background-color: #B32025;
    color: #FFFFFF;
    font-family: "Lato",sans-serif;
    font-size: 1.0em;
    font-weight: bold;
    min-height: 40px;
    width: 300px;
}
input[type="button"]:hover 
{
   box-shadow: 0px 2px 2px #000;
}

input[type="button"]:disabled {
  background: lightpink;
}

input[type="checkbox"] 
{
    width: 30px;
}
.chkbox 
{
    font-size: 1.1em;
    text-align: left !important;
}
#btnRegistro2 
{
    background-color: #115eaa !important;
}
#btnRegistro2[type="button"]:disabled {
  background: lightblue !important;
}
/* Ajustes para el mensaje de validación */
#validacion {
    text-align: center; /* Centra el mensaje de validación */
    font-size: 1.1em;
    padding: 10px;
    color: red;
}

#content_home
 {
    position: relative;
    top: 130px;
}
.valor{
    font-size: 1.1em;
    text-align: left !important;
    padding-left: 1.1em;
}

/*-----------------Rensponsive design------------*/

/* Estilos para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .div_login select,
    .div_login input[type="date"] {
        width: 100% !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
    }
}

@media  (max-width: 725px)
{ 
    #page {        
        width: 100%;
    }
    #content_home {
        top: 150px;
    }
    #content_home .marcador {
        top: -200px;
    }
    .div_login {
        background-color: #ffffff;
        width: 150%;
    }
    #tabla2 .div_login
    {
        padding: 1.1em 10px !important;
        width: 80%;
    }
    #titulo  {
        width: 100%;
        height: 280px;
        background-image: url("../images/encabezado_movil.jpg");
        background-repeat:no-repeat;
        background-size:100% 100%;
    }
    #header_home h2 {
        font-size: 3em;
    }
    .div_login 
    {
        font-family: arial;
        font-size: 1em;
    }
    .valor
    {
        text-align: center !important;
        font-size: 1em !important;
    }
    #tabla2
    {
        font-size: 1em !important;
        width: 50% !important;
    }
   table {
       width:100%;
   }
   thead {
       display: none;
   }
   tr:nth-of-type(2n) {
       background-color: inherit;
   }
   tr td:first-child {
       background: #f0f0f0;
       font-weight:bold;
       font-size:1.0em;
   }
   tbody td {
       display: block;
       text-align:center;
   }
   tbody td:before {
       content: attr(data-th);
       display: block;
       text-align:center;
   }
    /* Ajustes para el contenedor del formulario en móviles */
    .form-container {
        width: 100%; /* Ocupa el 100% del ancho en móviles */
        padding: 10px; /* Menos padding para ahorrar espacio */
        box-sizing: border-box; /* Incluye el padding en el ancho total */
    }

    /* Ajustes para el formulario en móviles */
    .div_login {
        padding: 15px; /* Menos padding para ahorrar espacio */
        width: 100%; /* Ocupa todo el ancho disponible */
        box-sizing: border-box; /* Incluye el padding en el ancho total */
    }

    /* Ajustes para las tablas en móviles */
    .div_login table {
        width: 100%; /* Ocupa todo el ancho disponible */
        font-size: 0.9em; /* Tamaño de fuente más pequeño */
    }

    /* Ajustes para los campos de texto en móviles */
    .div_login input[type="text"] {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* Sin límite de ancho */
        box-sizing: border-box; /* Incluye el padding en el ancho total */
    }
    
    /* Ajustes para selects y campo de fecha en móviles */
    .div_login select,
    .div_login input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ajustes para los botones en móviles */
    .div_login input[type="button"] {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* Sin límite de ancho */
        font-size: 0.9em; /* Tamaño de fuente más pequeño */
        box-sizing: border-box; /* Incluye el padding en el ancho total */
    }

    /* Ajustes para los labels en móviles */
    .div_login label {
        display: block; /* Hace que los labels ocupen toda la línea */
        width: 100%; /* Ocupa todo el ancho disponible */
        margin-bottom: 5px; /* Espacio entre el label y el input */
    }

    /* Ajustes para los títulos en móviles */
    .div_login th {
        font-size: 1.1em; /* Tamaño de fuente más grande para títulos */
    }

    /* Ajustes para el mensaje de validación en móviles */
    #validacion {
        font-size: 1em; /* Tamaño de fuente más pequeño */
    }

    /* Ajustes para el contenido de la segunda columna en móviles */
    .div_login p {
        font-size: 0.9em; /* Tamaño de fuente más pequeño */
    }

    /* Ajustes para los enlaces en móviles */
    .div_login a {
        font-size: 0.9em; /* Tamaño de fuente más pequeño */
    }

    /* Evitar el desbordamiento horizontal */
    body {
        overflow-x: hidden; /* Oculta el scroll horizontal */
    }
}
/*-----------------End Rensponsive design------------*/

.banner-habitacion-container table {
    width: 100%;
    border-collapse: collapse;
}
.banner-habitacion-container td {
    width: 50%;
    padding: 5px;
}
.banner-habitacion-container img {
    max-width: 100%;
    height: auto;
}
.banner-medios-pago {
    padding-top: 40px;
    max-width: 40%;
    height: auto;
}
@media (max-width: 768px) {
    /* Aumentar el tamaño de fuente base en móvil para ayudar con los selects */
    body {
        font-size: 18px !important;
        -webkit-text-size-adjust: 100% !important;
    }
    #generoInscripciones,
    #tipoHabitacionInscripciones {
        min-height: 55px !important;
        font-size: 24px !important;
        padding: 12px 10px !important;
        line-height: 1.5 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        -webkit-text-size-adjust: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Campo de fecha en móvil */
    #fechaNacimInscripciones {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    #generoInscripciones option,
    #tipoHabitacionInscripciones option {
        font-size: 24px !important;
        padding: 12px !important;
        line-height: 1.8 !important;
        -webkit-text-size-adjust: 100% !important;
    }
    /* Estilos adicionales para iOS Safari */
    @supports (-webkit-touch-callout: none) {
        #generoInscripciones,
        #tipoHabitacionInscripciones {
            font-size: 26px !important;
        }
        #generoInscripciones option,
        #tipoHabitacionInscripciones option {
            font-size: 26px !important;
        }
    }
    .banner-habitacion-container table {
        width: 100% !important;
    }
    .banner-habitacion-container td {
        width: 100% !important;
        display: block !important;
        padding: 5px 0 !important;
    }
    .banner-habitacion-container img {
        width: 100% !important;
        max-width: 100% !important;
    }
    .banner-medios-pago {
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 20px !important;
    }
}

/* Estilos para las secciones de autorización */
.autorizacion-container {
    text-align: left;
    display: flex;
    align-items: flex-start;
}

.autorizacion-checkbox {
    flex-shrink: 0;
    margin-top: 3px;
    margin-right: 8px;
}

.autorizacion-label {
    text-align: left;
    flex: 1;
}

/* Fallback para navegadores que no soportan flexbox */
@supports not (display: flex) {
    .autorizacion-container {
        display: block;
    }
    .autorizacion-checkbox {
        float: left;
        margin-right: 8px;
    }
    .autorizacion-label {
        display: block;
        overflow: hidden;
    }
}

/* Asegurar que los labels de autorización no tengan negrita */
label[for="chkMarcoEtico"],
label[for="chkTerminos"],
label[for="chkUsoImagen"] {
    font-weight: normal !important;
}

/* En móvil, asegurar que los labels de autorización no tengan negrita */
@media (max-width: 768px) {
    label[for="chkMarcoEtico"],
    label[for="chkTerminos"],
    label[for="chkUsoImagen"] {
        font-weight: normal !important;
    }
    
    /* Título del retiro en móvil */
    h1 {
        font-size: 1.4em !important;
    }
}