/*
  main.css - estilos principales del sitio
  Organizado en secciones: estructura base, IP/tooltip, formulario,
  calendario, textarea, botón enviar y vídeo.
*/
#formulario {
    /* Mostrar el formulario  */
    display: block;
}

/* --- Estructura base de la página --- */
html {
    background: url("../img/bg.png") no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    margin: 0;
}

/* Contenedor del título como imagen */
.titulo-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Imagen del título */
.titulo-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: auto;
}

#temporada {
    font-size: 2em;
}

/* --- IP y tooltip --- */
.ip {
    text-align: center;
    width: 100%;
}

#ipText {
    position: relative;
    /* necesario para posicionar el tooltip */
    cursor: pointer;
    display: inline-block;
}

#ipText u {
    text-decoration: underline;
}

/* Contenedor flotante del tooltip (aparece al hover) */
#ipText .tooltip {
    visibility: visible;
    opacity: 0;
    width: max-content;
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
    /* no intercepta clicks */
}

#ipText:hover .tooltip {
    opacity: 1;
}

#ipText .tooltip::after {
    /* Flechita del tooltip */
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

#ipText:hover u {
    color: rgb(0, 138, 218);
}

/* Secciones UHC */
.uhc-section {
    background: rgba(0, 0, 0, 0.75);
    border: 3px solid #FFD700;
    border-radius: 8px;
    margin: 20px auto;
    padding: 15px 20px;
    width: 80%;
    max-width: 900px;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.uhc-section h2 {
    color: #FFAA00;
    text-align: center;
}

.uhc-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.uhc-section li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.new-tag {
    background-color: #ff4757;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}


/* Hover efecto glow */
.uhc-section:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #FFD700;
}

/* Contenedor de sección */
.image-section {
    background: rgba(0, 0, 0, 0.75);
    border: 3px solid #00FFFF;
    border-radius: 10px;
    margin: 20px auto;
    padding: 20px 20px;
    width: 85%;
    max-width: 1000px;
    color: #fff;
    text-align: center;
    transition: all 0.2s;
}

/* Título de sección */
.image-section h2 {
    color: #00FFFF;
    margin-bottom: 25px;
}

/* Contenedor individual de cada imagen */
.single-image-container {
    margin-bottom: 30px;
    text-align: center;
}

.image-section:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #00FFFF;
}

/* Hueco de la imagen */
.image-box {
    background: #111;
    border: 3px solid #00FFFF;
    border-radius: 10px;
    overflow: hidden;
    max-width: 700px;
    /* aumenta el tamaño máximo */
    width: 90%;
    /* ocupa gran parte del contenedor */
    margin: 0 auto;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Imagen dentro del container */
.image-box img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s;
}

/* Pie de foto */
.image-caption {
    margin-top: 10px;
    color: #fff;
    font-size: 1em;
}

/* --- Formulario principal --- */
form {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    width: 40%;
    min-width: 300px;
    margin: 40px auto;
    border: 4px solid #555;
    border-radius: 8px;
}

/* Reducir el espaciado entre las líneas del H1 que muestra temporada */
h1 {
    line-height: 1;
    /* Valor 1 evita espacio extra entre líneas */
    font-size: 3.5em !important;
}

h1,
h2,
h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #FFD700;
}



#temporada {
    display: block;
    /* asegurar bloque en su propia línea */
    margin-top: 0;
    /* sin margen superior adicional */
    line-height: 1;
    /* mantener mismo interlineado */
}

/* Inputs y textarea: apariencia consistente */
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #777;
    border-radius: 4px;
    background-color: #222;
    color: #fff;
    font-size: 1em;
}

input[type="radio"] {
    margin-right: 6px;
}

/* --- Calendario --- */
.calendar-container {
    width: 100%;
    margin: 10px auto;
    border: 3px solid #777;
    border-radius: 6px;
    background-color: #333;
    padding: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-header button {
    background-color: #555;
    border: 2px solid #aaa;
    padding: 6px 10px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
}

.calendar-header button:not(:disabled):hover {
    background-color: #4caf50;
    border-color: #4caf50;
}

.calendar-header button:disabled {
    background-color: #333;
    border-color: #555;
    color: #555;
    cursor: not-allowed;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-name {
    font-weight: bold;
    text-align: center;
    color: #FFD700;
    font-size: 0.9em;
}

.day {
    border: 2px solid #888;
    padding: 14px 0;
    text-align: center;
    cursor: pointer;
    user-select: none;
    background-color: #444;
    transition: all 0.15s;
}

.day:hover {
    background-color: #666;
    border-color: #aaa;
}

.day.selected {
    background-color: #4caf50;
    color: #fff;
    font-weight: bold;
    border-color: #4caf50;
}

.day.disabled {
    background-color: #333 !important;
    border-color: #555 !important;
    color: #777 !important;
    cursor: not-allowed !important;
    /* permitir pointer-events para que el cursor cambie; la lógica JS
       ya evita añadir listeners a las celdas deshabilitadas */
    pointer-events: auto;
    opacity: 0.7;
}

.day.disabled:hover {
    background-color: #333 !important;
    border-color: #555 !important;
}

/* --- Textarea: estilos de scroll personalizados --- */
textarea {
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: #4caf50 #222;
    /* Añadir una familia de reserva por si no existe la fuente personalizada */
    font-family: MinecraftRegular, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #222;
}

textarea::-webkit-scrollbar-thumb {
    background-color: #4caf50;
    border-radius: 4px;
}

/* --- Enviar (botón) --- */
.enviar-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.enviar {
    padding: 12px 18px;
    transition: all 0.2s;
    font-size: 1em;
}

.enviar:hover {
    background-color: #4caf50 !important;
    border-color: #4caf50 !important;
}

/* --- Vídeo embebido --- */
.video-embed-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.video-embed-container iframe {
    max-width: 100%;
    border: none;
    border: 4px solid #cc0000;
    border-radius: 8px;
    transition: all 0.2s;
}

.video-embed-container iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #cc0000;
}

#footer-segox {
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: right;
    position: fixed;
    bottom: 0;
    right: 1%;
}

#footer-segox a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    transition: all 0.2s ease-in;
}

footer a:hover {
    transform: scale(1.2);
    opacity: 0.85;
}

/* Nota pequeña usada en el formulario (reemplaza el uso inválido de <h7>) */
.note {
    color: #ddd;
    font-size: 0.95em;
    text-align: center;
    margin: 8px 0 0 0;
}

#footer-segox a img {
    height: 2.5em;
}

/* --- Responsive --- */
@media (max-width:768px) {
    .titulo-img {
        max-width: 350px;
    }

    .uhc-section {
        width: 95%;
        padding: 10px 15px;
    }

    .image-box {
        width: 95%;
        max-width: 95%;
    }


    form {
        width: 90%;
        padding: 15px;
        margin: 15px auto;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }

    .day {
        padding: 14px 0;
        font-size: 1em;
    }

    input[type="text"],
    textarea {
        padding: 14px;
        font-size: 1.1em;
    }

    h1 {
        margin-top: 5%;
    }

    h1,
    h2,
    h3 {
        font-size: 1.3em;
    }

    .enviar {
        padding: 14px 20px;
        font-size: 1.1em;
    }
}