@font-face {
    font-family: BreePeru;
    font-style: normal;
    font-weight: 400;
    src:
        local("bree 400"),
        local("bree-400"),
        url(../fonts/font-bree/breeperu_light.otf) format("opentype");
}

@font-face {
    font-family: BreePeru;
    font-style: italic;
    font-weight: 400;
    src:
        local("bree 400"),
        local("bree-400"),
        url(../fonts/font-bree/breeperu_lightoblique.otf) format("opentype");
}

@font-face {
    font-family: BreePeru;
    font-style: normal;
    font-weight: 500;
    src:
        local("bree 500"),
        local("bree-500"),
        url(../fonts/font-bree/breeperu_regular.otf) format("opentype");
}

@font-face {
    font-family: BreePeru;
    font-style: italic;
    font-weight: 500;
    src:
        local("bree 500"),
        local("bree-500"),
        url(../fonts/font-bree/breeperu_regularoblique.otf) format("opentype");
}

@font-face {
    font-family: BreePeru;
    font-style: normal;
    font-weight: 700;
    src:
        local("bree 700"),
        local("bree-700"),
        url(../fonts/font-bree/breeperu_bold.otf) format("opentype");
}

@font-face {
    font-family: ClanOt;
    font-weight: 400;
    font-style: normal;
    src:
        local("clanOt 400"),
        local("clanOt-400"),
        url(../fonts/font-clan/clanOt-400.otf) format("opentype");
}

@font-face {
    font-family: ClanOt;
    font-style: normal;
    font-weight: 500;
    src:
        local("clanOt 500"),
        local("clanOt-500"),
        url(../fonts/font-clan/clanOt-500.otf) format("opentype");
}

@font-face {
    font-family: ClanOt;
    font-style: normal;
    font-weight: 700;
    src:
        local("clanOt 700"),
        local("clanOt-700"),
        url(../fonts/font-clan/clanOt-700.otf) format("opentype");
}

@font-face {
    font-family: ClanOt;
    font-style: normal;
    font-weight: 900;
    src:
        local("clanOt 900"),
        local("clanOt-900"),
        url(../fonts/font-clan/clanOt-900.otf) format("opentype");
}

@font-face {
    font-family: Onho;
    font-style: normal;
    font-weight: 400;
    src:
        local("OhnoSoftie-Regular"),
        url(../fonts/font-ohno/OhnoSoftie-Regular.otf) format("opentype");
}

/* preload */
.preload {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #f3edef;
}

.preload img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
}

body {
    /* overflow-x:hidden;     Hide horizontal scrollbar */
    font-family: ClanOt;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* lineas rojas */
.styled div {
    border: solid 1px;
    border-color: greenyellow;
}

.flotante {
    width: auto;
    display: scroll;
    position: fixed;
    bottom: 320px;
    right: 0px;
    z-index: 1;
}

/* HEADER +++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
header {
    position: relative;
    background-color: #D32828;
    height: 100vh;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
    color: white;
}

header .logo {
    width: auto;
    height: auto;
}


/* Logo base (escritorio) */
header .logo-convocatorias {
    width: 500px;
    height: auto;
    margin-top: 50px;
}

/* Tablets grandes y monitores medianos (hasta 1200px) */
@media (max-width: 1200px) {
    header .logo-convocatorias {
        width: 350px;
    }
      #divLeft p{
        font-size: 22px;
        line-height: 1.1;
    }
}

/* Tablets (hasta 992px) */
@media (max-width: 992px) {
    header .logo-convocatorias {
        width: 380px;
    }
      #divLeft p{
        font-size: 20px;
        line-height: 1.1;
    }
}

/* Tablets pequeñas y móviles grandes (hasta 768px) */
@media (max-width: 768px) {
    header .logo-convocatorias {
        width: 350px;
        padding-top: 30px;
    }
      #divLeft p{
        font-size: 18px;
        line-height: 1.1;
    }
}

/* Móviles (hasta 576px) */
@media (max-width: 576px) {
    header .logo-convocatorias {
        width: 300px;
    }
      #divLeft p{
        font-size: 16px;
        line-height: 1.1;
    }
}

/* Móviles muy pequeños (hasta 400px) */
@media (max-width: 400px) {
    header .logo-convocatorias {
        width: 250px;
    }
}




header .lugar {
    margin: 1.25rem;
    border-left: 2px double #fff;
    width: 600px;
    height: auto;
}

@media (max-width: 767px) {
    header .lugar {
        margin: 1.25rem;
        border-left: 0px double #fff;
    }
}

header .lugarf {
    margin: 0px 10px 10px 10px;
}

@media (max-width: 767px) {
    header .lugarf {
        margin: 0px 10px 10px 10px;
    }
}

header .lugarm {
    border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    border: 1px solid #fff;
    margin: 1.25rem;
}

header .contador {
    border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    border: 1px solid #fff;
    margin: 1.25rem 1.25rem 0px 1.25rem;
    padding: 10px;
}

@media (max-width: 767px) {
    header .contador {
        border-radius: 10px 10px 10px 10px;
        -webkit-border-radius: 10px 10px 10px 10px;
        -moz-border-radius: 10px 10px 10px 10px;
        border: 1px solid #fff;
    }
}

header .comienza {
    width: auto;
    text-align: center;
    font-size: x-large;
    padding-bottom: 14px;
    padding-top: 10px;
}

@media (max-width: 767px) {
    header .comienza {
        width: auto;
        text-align: center;
        font-size: medium;
        padding-bottom: 8px;
        padding-top: 5px;
    }
}

header .entrada {
    width: 12%;
    padding-right: 8px;
}

@media (max-width: 767px) {
    header .entrada {
        width: 14%;
        height: auto;
    }
}

header .cuadrocount {
    width: auto;
}

@media (max-width: 767px) {
    header .cuadrocount {
        width: auto;
    }
}
/*
header .bienvenida {
    padding-top: 10%;
}

@media (max-width: 767px) {
    header .bienvenida {
        padding-top: 44%;
    }
}*/

header .bienvenida .carousel-item img{
    object-fit: cover;
    height: 100vh;
    width: 100%;
}

header .bienvenida [class*="col-"]{

        padding:0;

}



header .mouse {
    width: 38%;
    height: auto;
}

header .bajando {
    position: absolute;
    left: 50%;
    bottom: -14rem;
}

/* header video */

header video {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

header .container {
    position: relative;
    z-index: 2;
}

.overlay {
    position: absolute;
    /* background-image: url(../img/tv.png); */
    /* background-size: auto; */
    /* background-repeat: repeat; */
    /* background-position: center center; */
    background-color: rgba(0, 0, 0, 0.35);
    height: 100%;
    width: 100%;
    z-index: 1;
    object-fit: cover;
}

/*
header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: 1;
}
*/

/********* */

footer {
    background-color: #f0f0f0;
}

.logos-redes {
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    background-color: #fdc82f;
}

/* Nav bar
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.navbar {
    background-color: #ffffff !important;
    height: auto;
}

nav li {
    font-size: 1.25rem;
    margin: 5px 0;
}


nav li a{
  font-weight: 400 !important;
  transition: transform 0.15s ease !important;
}

nav li a:hover,nav li a:active,nav li a:focus {
      /*transform: scale(1.05);
      font-weight: 700;*/

      border: 2px solid #4D4D4D;
        border-radius: 10px;
      
}

nav .amar {
    margin-top: 10px;
    position: absolute;
}

nav .entrada {
    width: 12%;
    padding-right: 8px;
}

.logo {
    height: auto;
    width: 74px;
}

.mensaje {
    position: absolute;
    top: 100%;
    left: 0px;
    z-index: 200;
    width: 100%;
    background-color: #d52b1e;
    text-align: center;
    color: white;
    -webkit-box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.24);
    box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.24);
}

.mensaje h5 {
    margin-top: 10px;
}

/* contador */
#clock {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    margin: 0px;
    padding: 0px;
}

#clock p {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    /*background-color: #5e7c57;*/
    margin-top: 1em;
    padding: 1em;
    text-align: center;
}

#clock p span:nth-child(1) {
    font-size: 40px;
    font-weight: 700;
}

#clock p span:nth-child(2) {
    margin-top: 10px;
    font-size: 12px;
    margin-bottom: -1.25rem;
}

@media (max-width: 767px) {
    #clock {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        margin-top: -18px;
        padding: 0px;
    }
}

/* FERIA +++++++++++++++++++++++++++++++++++++++++++++++++++++*/
#feria {
    padding-top: 100px;
    padding-bottom: 100px;
    height: auto;
    background-color: white;
}

@media (max-width: 767px) {
    #feria {
        padding-top: 100px;
        padding-bottom: 56px;
        height: auto;
        background-color: white;
    }
}

.spencer {
    scroll-margin: 6rem;
}

#feria .h1 {
    color: #d52b1e;
    font-size: 3.5rem;
    font-weight: 700;
}

#feria .entrada {
    width: 12%;
    padding-right: 8px;
}

#feria button {
    margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    #feria button {
        margin-bottom: 30px;
        width: 100%;
    }

    #feria .h1 {
        color: #d52b1e;
        font-size: 3rem;
        font-weight: 700;
        text-align: center;
    }
}

#feria .video {
    display: flex;
    justify-content: center;
}

#feria .video iframe {
    aspect-ratio: 16 / 9;
    width: 100% !important;
}

/* EXPOSITORES ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
#expositores {
    padding-top: 100px;
    padding-bottom: 100px;
    height: auto;
    background-color: #d52b1e;
}

#expositores h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
}

#expositores img {
    width: 200px;
    margin-top: 1.25rem;
    border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;  
    transition: all 0.5s ease;
}



@media (max-width: 767px) {
    #expositores img {
        width: 100px;
        margin-top: 1.25rem;
        border-radius: 10px 10px 10px 10px;
        -webkit-border-radius: 10px 10px 10px 10px;
        -moz-border-radius: 10px 10px 10px 10px;
    }
}


#expositores img::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(0deg,
      transparent,
      transparent 30%,
      rgba(8, 8, 8, 0.3));
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

#expositores img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#expositores img:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}



#feria p {
    text-align: justify;
}

/* CONOCE PERU ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
#conoce {
    padding-top: 100px;
    padding-bottom: 100px;
    height: auto;
    background-color: white;
}

#conoce h1 {
    color: #d52b1e;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 767px) {
    #conoce .h1 {
        color: #d52b1e;
        font-size: 3rem;
        font-weight: 700;

    }
}

/* PARALLAX */
.parallax1 {
    /* The image used */
    background-image: url("../img/parallax_1.webp");
    /* Set a specific height */
    min-height: 500px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
    -moz-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
    box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
}

.parallax2 {
    /* The image used */
    background-image: url("../img/parallax_2.jpg");
    /* Set a specific height */
    min-height: 500px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
    -moz-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
    box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
}

@media (max-width: 767px) {
    .parallax1 {
        /* The image used */
        background-image: url("../img/parallax_1_m.webp");
        /* Set a specific height */
        min-height: 500px;
        /* Create the parallax scrolling effect */
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        -webkit-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
        -moz-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
        box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52)
    }

    .parallax2 {
        /* The image used */
        background-image: url("../img/parallax_2_m.jpg");
        /* Set a specific height */
        min-height: 500px;
        /* Create the parallax scrolling effect */
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        -webkit-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
        -moz-box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
        box-shadow: inset 0px 4px 13px 0px rgba(0, 0, 0, 0.52);
    }
}

/* MAPA ++++++++++++++++++++++++++++++++++++++++++++++++++*/
#mapa {
    background-color: white;
    padding-top: 100px;

    height: auto;
}

#mapa h1 {
    color: #d52b1e;
    font-size: 3.5rem;
    font-weight: 700;
}

#mapa .horario {
    background-color: #f2f2f2;
    padding: 40px 1.25rem 30px 50px;
}

/* REDES ********************************************************/
#redes {
    background-color: #d52b1e;
    height: 280px;
}

#redes .hashtag {
    color: white;
    padding-top: 40px;
}

#redes .siguenos {
    padding-top: 30px;
    padding-bottom: 18px;
    color: white;
    font-size: 26px;
}

.logospie {
    text-align: center;
}

.red_movil {
    width: 80%;
    height: 80%;
    margin: 0px;
    padding: 0px;
}


@media (max-width:768px) {
    #redes h1{
        font-size: 32px;
        font-weight: 700;
    }
}


/* carrusel */
/* Quitar contorno punteado y usar una indicación de foco discreta sólo cuando es realmente por teclado */
.carousel-showmanymoveone .carousel-control-prev,
.carousel-showmanymoveone .carousel-control-next {
    width: 8%;
}

/* Eliminar outline por defecto al foco */
.carousel-showmanymoveone .carousel-control-prev:focus,
.carousel-showmanymoveone .carousel-control-next:focus {
    outline: none;
}

/* Indicar foco sólo cuando es visible (teclado), con un anillo suave */
.carousel-showmanymoveone .carousel-control-prev:focus-visible,
.carousel-showmanymoveone .carousel-control-next:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .45);
    border-radius: .5rem;
}

/* Espaciado entre tarjetas */
.carousel-showmanymoveone .carousel-item .row>[class*='col-'] {
    padding: .25rem;
}

/* Personalización de los botones prev/next */
.carousel-control-prev,
.carousel-control-next {
    width: 40px !important;
    height: 40px !important;
    background-color: #d32f2f71;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Evita que Bootstrap los estire */
.carousel-control-prev {
    left: 20px;
    /* ajusta margen según diseño */
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #b71c1c;
    transform: translateY(-50%) scale(1.1);
}

/* Flechas */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    width: 20px;
    height: 20px;
    border: solid white;
    border-width: 0 6px 6px 0;
    padding: 5px;
    border-radius: 0 20% 20% 20%;
}

.carousel-control-prev-icon {
    transform: rotate(135deg);
}

.carousel-control-next-icon {
    transform: rotate(-45deg);
}




#conoce img {
    border-radius: .8rem;
    display: block;
}

#conoce img:hover{
   border: 6px solid #d52b1e;
   transition:  0.3s ease; 
    
}



/* konami */
.konami-active div {
    border: 1px solid red;
}

.col-md-2 {
    background-color: rgba(0, 255, 255, 0.582);
}




.normal {
    font-size: large;
    line-height: normal;
}




.card-convocatoria{
    height: 200px;
    border-radius: 10px;
    position: relative;
    background-color: #D52B1E;
}

.card-convocatoria span{
    font-family: onho;
    position: absolute;
    top: -20px;
    font-size: 36px;
    left: 50%;
    transform: translateX(-50%);
    white-space: pre;
    color: #D52B1E;
    background-color: #fff;
    padding: 20px;
    border: 3px solid #D52B1E;
    border-radius: 10px;
    font-weight: 500;
}

.card-convocatoria p{
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    left: 50%;
    color: #fff;
    font-size: 26px;
    text-align: center;
    line-height: 1.3em;
    white-space: pre;
    font-weight: 700;
}

#categorias .container p{

    font-size: 20px;
    padding-top: 20px;
    color: #fff;

}

#categorias .container img{
    height: 40px;
}

        #categorias {
            background-color: #D52B1E;
            padding: 100px 0;
        }

        #categorias h1 {
            color: #fff;
            padding-bottom: 30px;
            font-weight: bold;
            font-family: onho;
            font-size: 50px;
        }

        .category-item {
            opacity: 0;
            transform: translateY(30px) scale(0.9);
            transition: all 0.6s ease-out;
        }

        .category-item.fade-in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .category-item img {
            width: 100%;
            max-width: 120px;
            height: auto;
            margin-bottom: 15px;
            transition: transform 0.3s ease;
        }

    #categorias .row > [class*="col-"]{
        padding:30px;
    }

        .category-item:hover img {
            transform: scale(1.1);
        }

        .category-item p {
            color: #fff;
            font-size: 16px;
            font-weight: 500;
            margin: 0;
        }

        /* Responsive */
        @media (max-width: 768px) {
            #categorias {
                padding: 60px 0;
            }

            .category-item img {
                max-width: 80px;
            }

            .category-item p {
                font-size: 14px;
            }

            #categorias .row {
                padding-bottom: 40px !important;
            }
            .category-item.fade-in{
                padding-bottom: 30px;
            }
        }



#ediciones{
    background-color: #D52B1E;
    padding:100px;
}


#ediciones h1{
    color:#fff;
    padding-bottom: 30px;
    font-family: onho;
    font-size: 50px;
}

#ediciones .carousel-container {
            width: 100%;
            max-width: 1400px;
            position: relative;
            overflow: hidden;
            padding: 40px 0;
        }

        #ediciones .carousel-wrapper {
            display: flex;
            transition: transform 0.5s ease-in-out;
            gap: 20px;
        }

        #ediciones .card {
            min-width: 100%;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
            position: relative;
        }

        #ediciones .card:hover {
            transform: translateY(-10px);
        }

        #ediciones .card-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            display: block;
        }

        #ediciones .card-content {
            position: absolute;
            color: white;
            margin: auto;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 2;
            width: 100%;
        }

        #ediciones .card-title {
            background: #FFD700;
            color: #000;
            display: inline-block;
            padding: 10px 25px;
            border-radius: 10px;
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        #ediciones .card-date {
            font-size: 18px;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        /* Navigation Buttons */
        #ediciones .carousel-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }

        #ediciones .nav-button {
            background: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        #ediciones .nav-button:hover {
            background: #FFD700;
            transform: scale(1.1);
        }

        #ediciones .nav-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: scale(1);
        }

        #ediciones .nav-button svg {
            width: 24px;
            height: 24px;
        }

        /* Dots Indicator */
        #ediciones .carousel-dots {
            display: flex;
            gap: 10px;
        }

        #ediciones .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #ediciones .dot.active {
            background: #FFD700;
            transform: scale(1.3);
        }


/*adicional*/

#ediciones .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#ediciones .carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translateY(-50%) scale(1.1);
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

/* Eliminar el contenedor de dots si existe */
.dots-container {
    display: none;
}

/* Navigation buttons */
#ediciones .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

#ediciones .nav-button svg {
    width: 24px;
    height: 24px;
    color: #333;
}

#ediciones .nav-button:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

#ediciones .nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

#ediciones .nav-button-left {
    left: 10px;
}

#ediciones .nav-button-right {
    right: 10px;
}

/* Show navigation on mobile */
@media (max-width: 767px) {
    #ediciones .nav-button {
        display: flex;
    }
}




        /* Desktop - 4 cards in a row */
        @media (min-width: 768px) {
            
            #ediciones .card {
                min-width: calc((100% - 60px) / 4);
            }

            #ediciones .carousel-nav {
                display: none;
            }

            #ediciones .carousel-wrapper {
                justify-content: center;
            }
        }

        /* Mobile adjustments */
        @media (max-width: 767px) {
            
            #ediciones {
                background-color: #D52B1E;
                padding: 40px 0;
            }

            #ediciones .carousel-wrapper {
                gap: 0;
                transition: transform 0.5s ease-in-out;
            }

            #ediciones h1{
                padding-bottom: 0px;
            }
                        
            #ediciones .card-title {
                font-size: 40px;
                padding: 15px 20px;
            }

            #ediciones .card-date {
                font-size: 28px;
                line-height: 1;
                font-weight: 600;
            }

            #ediciones .card-image {
                height: 450px;
            }


            #ediciones .carousel-container {
                padding: 10px 0;
            }

        }


/*#####cintillo*/


#cintillo{
    background-color: #D9D9D9;
    color:  #747474;
    text-align: center;
    margin:0;
    padding: 10px 0;
}

#cintillo .container h1{
    font-size: 24px;
    padding:0;
    margin:0;
}


   @media (max-width: 768px) {

#cintillo{
    display: none;
}

   }




        /*######## ACORDEON*/


#faq2{
    padding:100px
}

#faq2 h1{
    font-family: onho;
    font-size: 50px;
}

        #faq .accordion-container {
            max-width: 1000px;
            margin: 0 auto;
            font-size: 24px;
        }

        #faq h3{
            margin:0;
            padding:0;
        }

        #faq .accordion-item {
            margin-bottom: 15px;
            border-radius: 12px;
            overflow: hidden;
            background: white;
            /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
            /*transition: box-shadow 0.3s ease;*/
        }

        /*#faq .accordion-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }*/

        #faq .accordion-header {
            background: white;
            color: #D52B1E;
            padding: 20px 30px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
            border: 2px solid #D52B1E;
            border-radius: 12px;
        }

        #faq .accordion-item.open .accordion-header {
            background: #D52B1E;
            color: white;
            /*border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;*/
        }

        #faq .accordion-header:hover  {
            background: white;
            color:#D52B1E;
        }

        #faq .accordion-title {
            font-size: 24px;
            font-weight: 500;
            letter-spacing: 0.5px;
            font-family: onho;
        }

        #faq .accordion-icon {
            width: 24px;
            height: 24px;
            transition: transform 0.3s ease;
        }

        /* Icono blanco cuando está cerrado */
        #faq .accordion-item:not(.open) .accordion-icon {
            fill: #D52B1E;
        }

        /* Icono rojo cuando está abierto */
        #faq .accordion-item.open .accordion-icon {
            fill: white;

        }


        #faq .accordion-item.open .accordion-icon {
            transform: rotate(180deg);
        }

        #faq .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out, padding 0.4s ease-out;
            background: white;
            border-left: 2px solid #D52B1E;
            border-top: none;
            margin: 0 40px;
            padding: 0 30px;
        }

        #faq .accordion-item.open .accordion-content {
            max-height: 700px;
            padding: 30px;
            border-left: 4px solid #D52B1E;
            margin: 40px;
        }

        #faq .accordion-content-inner {
            font-size: 16px;
            line-height: 1.8;
            color: #333;
            font-weight:500;
        }

        /* Variante con borde para items cerrados */
        #faq .accordion-item:not(.open) .accordion-header {
            border-radius: 12px;
        }

        


        /* Responsive */
        @media (max-width: 768px) {

#faq2{
    padding: 40px 0;
}

            
            #faq .accordion-title {
                font-size: 18px;
            }

            #faq .accordion-header {
                padding: 16px 20px;
            }

            #faq .accordion-item.open .accordion-content {
                padding: 20px;

            }

            #faq .accordion-content-inner {
                font-size: 14px;
            }
        }


        /*##### GALERIA #####*/

          /* El CSS del CodePen adaptado */

    @keyframes scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(calc(-250px * 7)); }
    }

    #galeria .slider {
      height: 240px; /* según el CodePen */
      overflow: hidden;
      position: relative;
      background: white;
      width: 100%; /* ahora se adapta al contenedor Bootstrap */
    }

   /* .slider::before,
    .slider::after {
      content: "";
      position: absolute;
      width: 360px;
      height: 240px;
      top: 0;
      z-index: 2;
      background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
    } */
    #galeria .slider::after {
      right: 0;
      transform: rotateZ(180deg);
    }
   #galeria  .slider::before {
      left: 0;
    }

   #galeria  .slide-track {
      display: flex;
      animation: scroll 40s linear infinite;
      width: calc(240px * 14); /* duplicas el track, como en el Pen */
    }
/* PAUSA AL HOVER */
#galeria .slider:hover .slide-track {
  animation-play-state: paused;
}
  #galeria  .slide {
      width: 360px;
      height: 240px;
      flex-shrink: 0;
      padding-left: 0px;
    }

    #galeria .slide img {
      width: 100%;
      height: auto;
      display: block;
    }

    /*.button-gris
    {
        border: 1px solid #4D4D4D;
        border-radius: 10px;
    }

     @media (max-width: 767px) {
                .button-gris{
                display: inline flex;
                padding: 10px;
            }
    }*/




    #divLeft{
        text-align: end;
        padding-right: 90px;
        align-items: end;
        display: flex;
        flex-direction: column;
    }

    #divLeft p{
    font-size: 25px;
    line-height: 1.1;
    float: right;
    font-weight: 500;
    text-align: start;
    width: 500px;
    }

   @media (max-width: 767px) {

#galeria{

display: none;

}


        header .bienvenida .carousel-item img{
            object-fit: cover;
            height: 100%;
            width: 100%;
        }

        #divLeft{
            font-size: 16px;
            text-align: center;
            padding-right: 0;
            align-items: center;
    }

        #divLeft p {
            margin: 0 20px;
            font-size: 16px;
            text-align: center;
            position: relative;
            padding-left: 0;
            padding-bottom: 25px;
            width: auto;
        }



}


#about {
    padding:100px;background-image: 
    url('../img/fondo.svg');
    background-repeat: repeat-x;
    background-position: left bottom 30px;
}


#about h1{
    color:#D52B1E;
    padding-bottom: 30px;
    font-size: 50px;
    font-family: Onho;
}

#about a{
    margin:70px 0;font-size: 26px;
    font-family: onho;
}


   @media (max-width: 767px) {
#about {
    padding:50px 10px;
    background: none;

}

.container-convocatoria{
    flex-direction: column;
}


.card-convocatoria {
    height: 230px;
    border-radius: 0;
    position: relative;
    background-color: #D52B1E;
    margin: 30px 0;
}

.card-convocatoria p {
    padding: 0;
    width: 300px;
    text-align: center;
    white-space: pre-line;
    transform:translateX(-50%);
    font-size: 22px;
}

.card-convocatoria span {
    top: -20px;
    font-size: 35px;
    white-space: break-spaces;
    color: #D52B1E;
    background-color: #fff;
    padding: 20px;
    border: 3px solid #D52B1E;
    border-radius: 10px;
    font-weight: 500;
    /* left: 0; */
    /* transform: none; */
    line-height: 1;
    text-align: center;
    width: 300px;
    /* right: 0; */
    font-family: onho;
}

#about a{
    margin:0px;font-size: 26px;
}

#divRight{
    background-color: white;
}


   }


   .nav-link{
        font-size: 20px;
        font-weight: 500;
        font-family: onho;
        margin: 0 10px;
   }

   button > a{
    font-size: 22px;
    font-family: onho;
   }