/*CSS STYLE FOR GALERY CAROUSEL*/

html {
    background-image:  url(../img/wallpapers/jakub-pabis-4DBQ0cmPj60-unsplash.jpg);
    background-color: #0a0a0a;
    background-position: top -600px center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

body {
    font-family: system-ui, sans-serif;
    color: white;
    font-size: 19px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container_bgr {
    background-color: transparent;
}

/* HEADER */
/* Center header content and add vertical spacing */
header {
    text-align: center;
    padding: 1.875rem 0;

}

/* Make title bold and slightly increase letter spacing */
header h1 {
    font-weight: 700;
    letter-spacing: 0.0625rem;
    font-family: 'Nova Flat', display;
    font-size: 60px;
    line-height: 1.2em;
    text-shadow: 0px 0px 10px black;
}

header h4{
    font-weight: 10;
    letter-spacing: 0.0625rem;
    font-family: 'Nova Flat', display;
    font-size: 30px;
    line-height: 1.2em;
    text-shadow: 0px 0px 10px black;
}


header img{
    width: 100px;
}

.nova-flat-regular {
  font-family: "Nova Flat", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* CAROUSEL GENERAL */
/* Center carousel and limit maximum width */
.carousel {
    margin: 1.875rem auto;
    max-width: 65rem;
}

/* IMGS */
/* Style carousel images and enable hover animation */
.carousel img {
    border-radius: 0.75rem;
    transition: all .25s ease;
    cursor: pointer;
}

/* Slight zoom and shadow effect on image hover */
.carousel img:hover {
    transform: scale(1.03);
    box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, .4);
}

/* CONTROLS */
/* Style carousel navigation icons as rounded dark buttons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, .6);
    border-radius: 50%;
    padding: 1.25rem;
}

/* VIDEOS */
/* Add spacing between image carousel and video carousel */
#carouselVideos {
    margin-top: 3.75rem;
    text-align: center;
}

/* Apply rounded corners to embedded videos */
#carouselVideos iframe {
    border-radius: 0.75rem;
}

/* IMAGE CAROUSEL CONTROLS OUTSIDE */
/* Enable absolute positioning for external controls */
#carouselImages {
    position: relative;
}

/* Vertically center controls and remove default width */
#carouselImages .carousel-control-prev,
#carouselImages .carousel-control-next {
    width: auto;
    top: 50%;
    transform: translateY(-50%);
}

/* Move previous control outside the carousel */
#carouselImages .carousel-control-prev {
    left: -3rem;
}

/* Move next control outside the carousel */
#carouselImages .carousel-control-next {
    right: -3rem;
}

/* Hide overflowing images outside carousel viewport */
#carouselImages .carousel-inner {
    overflow: hidden;
}

/* Prevent images from wrapping to next line */
#carouselImages .row {
    flex-wrap: nowrap;
}

.descripcion{
    text-align: center;
    margin-top: -20px;
    margin-bottom: 40px;
    text-indent: 30px;
    text-shadow: -1px -1px 5px black;
}

@property --angulo {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

#todascategorias {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 500px;
    text-align: center;
    margin: auto;
}

#todascategorias a {
    position: relative;
    color: white;
    text-decoration: none;
    border: 4px solid white;
    border-radius: 50px;
    padding: 15px 30px;
    background-color: transparent;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#todascategorias a::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 54px;
    border: 4px solid transparent;
    background: transparent;
    z-index: -1;
}

#todascategorias a::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 54px;
    background: conic-gradient(from var(--angulo), red, orange, yellow, green, blue, indigo, violet, red);
    filter: blur(15px);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#todascategorias a:hover {
    color: black;
    border-color: transparent;
}

#todascategorias a:hover::after {
    background:
        linear-gradient(white, white) padding-box,
        conic-gradient(from var(--angulo), red, orange, yellow, green, blue, indigo, violet, red) border-box;
    animation: girarColor 2.5s linear infinite;
}

#todascategorias a:hover::before {
    opacity: 1;
    animation: girarColor 2.5s linear infinite;
}

@keyframes girarColor {
    0% { --angulo: 0deg; }
    100% { --angulo: 360deg; }
}

footer {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

#logosredes {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    width: 100%;
}

.logo-rgb {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
}

.rrss {
    width: 25px;
    height: 25px;
    fill: white;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.anillo-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.luces-redes {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-rgb:hover .luces-redes {
    opacity: 1;
}

.logo-rgb:hover .rrss {
    transform: scale(1.2);
}

#faqs{
    text-align: center;
    margin-bottom: 50px;
    background-color: rgba(0, 0, 0, .6);
    width: 60%;
    margin: auto;
    border-radius: 40px;
}

#faqs .pregunta, .respuesta{
    width: 65%;
    margin: auto;
    height: 100%;

}

#titulo_faqs{
    padding-top: 40px;
    padding-bottom: 40px;
}

.respuesta {
    font-family: system-ui, sans-serif;
    color: white;
    font-size: 19px;
    font-weight: normal;
}

#listapremios{
    text-align: center;
    margin: auto;
    width: 70%;
    background-color: rgba(0, 0, 0, .6);
    border-radius: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
    font-family: system-ui, sans-serif;
    color: white;
    font-size: 19px;
    font-weight: normal;
}

#listapremios p{
    gap: 10px;
}

#listapremios svg{
    padding-top: 15px;
}

#listapremios img{
    margin: auto;
    max-width: 50%;
}

#patrocinio{
    padding-top: 20px;
}

#normas{
    text-align: center;
    margin: auto;
    background-color: rgba(0, 0, 0, .6);
    width: 60%;
    border-radius: 30px;
    padding: 10px 0 20px 0;
}

#normas svg{
    padding-top: 20px;
}

#normas p{
    font-weight: normal;
}

.norma-box {
    text-align: center;
    padding: 20px;           /* shorthand for all four sides */
    width: 65%;
    margin: auto;
    border-radius: 30px;
    margin-bottom: 50px;
}

#norma1 { background-color: rgba(255, 193, 107, 0.6); }
#norma2 { background-color: rgba(107, 255, 235, 0.6); }
#norma3 { background-color: rgba(255, 107, 255, 0.6); }
#norma4 { background-color: rgba(115, 255, 140, 0.6); }

#normas a{
    background-color: black;
    color: white;
    padding: 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: normal;
}

#normas a:hover{
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-radius: 15px;
    text-decoration: none;
}

#normas img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#formulario_ins {
    background-color: rgba(0, 0, 0, .8);
    margin: auto;
    width: 75%;
    border-radius: 10px;
    color: white;
}


#formulario_ins form {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(1 , 1fr);
    gap: 15px;
}


.campo_form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: auto;
    width: 60%;
}

.campo_form input, option, select{
    height: 30px;
    border-radius: 10px;
}

.campo_terminos {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.campo_terminos a{
    text-decoration: none;
    color: white;
    transition: background-color 1s ease;
}

.campo_terminos a:hover{
    color: rgb(55, 255, 0);
}

#leido_normas {
    height: auto;
    margin-right: 8px;
    cursor: pointer;
}

.campo_terminos label {
    cursor: pointer;
}

@property --angulo {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

#boton_enviar {
    position: relative;
    color: black;
    background-color: transparent;
    border: 4px solid transparent;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    grid-column: 1 / -1;
    margin-top: 10px;
    z-index: 1;
    width: 60%;
    text-align: center;
    margin: auto;
}

#boton_enviar::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 14px;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box, transparent border-box;
    z-index: -1;
}

/* ANIMACIÓN ARCOÍRIS — comentado mientras inscripción está deshabilitada

#boton_enviar::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 14px;
    background: conic-gradient(from var(--angulo), red, orange, yellow, green, blue, indigo, violet, red);
    filter: blur(15px);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#boton_enviar:hover::after {
    background:
        linear-gradient(white, white) padding-box,
        conic-gradient(from var(--angulo), red, orange, yellow, green, blue, indigo, violet, red) border-box;
    animation: girarColor 2.5s linear infinite;
}

#boton_enviar:hover::before {
    opacity: 1;
    animation: girarColor 2.5s linear infinite;
}

*/

#boton_enviar:disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

#info_calendario{
    background-color: rgba(0, 0, 0, .6);
    margin: auto;
    text-align: center;
    width: 40%;
    padding: 20px;
    border-radius: 20px;
}

#articulos_prensa{
    display: flex;
    flex-direction: row;
    text-align: center;
}

#col_1, #col_2, #col_3 {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    gap: 15px;
}

#articulos_prensa img{
    width: 90%;
}

/* Activa el scroll suave nativo en navegadores compatibles */
html {
  scroll-behavior: smooth;
}

@property --angulo {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

#btnScroll {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent;
  color: white;
  border: 4px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Capa del borde RGB animado */
#btnScroll::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: transparent;
  z-index: -1;
}

/* Capa del brillo/glow exterior */
#btnScroll::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(from var(--angulo), red, orange, yellow, green, blue, indigo, violet, red);
  filter: blur(10px);
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#btnScroll:hover {
  color: black;
  border-color: transparent;
  background-color: white;
}

#btnScroll:hover::after {
  background:
    linear-gradient(white, white) padding-box,
    conic-gradient(from var(--angulo), red, orange, yellow, green, blue, indigo, violet, red) border-box;
  animation: girarColor 2.5s linear infinite;
}

#btnScroll:hover::before {
  opacity: 1;
  animation: girarColor 2.5s linear infinite;
}

/* La clase que controla el giro del icono */
.hacia-arriba {
  transform: rotate(180deg);
}

@keyframes girarColor {
    0% { --angulo: 0deg; }
    100% { --angulo: 360deg; }
}

@media (max-width: 48rem) {
  #todascategorias {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
    #normas {
        width: 95%; /* Aprovecha casi toda la pantalla del móvil */
    }

    #norma1, #norma2, #norma3, #norma4 {
        width: 90%; /* Hace que las cajas interiores también sean más amplias */
    }
}
