/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --bodytipo: "Roboto", sans-serif;
    --bodytitular: "Roboto", sans-serif;
    --primario: #EE413B;
    --radius: 5px;

    --webkit-sombra: 1px 6px 14px -5px rgba(0,0,0,0.75);
    --moz-sombra: 1px 6px 14px -5px rgba(0,0,0,0.75);
    --sombra: 1px 6px 14px -5px rgba(0,0,0,0.75);

    --textomedio: clamp(18px, 2.2vw, 28px);
}

body {
    font-family: var(--bodytipo);
    font-size: 16px;
}

.container {
    max-width: 1310px;
    width: 100%;
    margin: 0 auto;
}

.home .grid-container.container {
    max-width: 100%;
}

.home .site-content {
    display: inline;
}

h1,
h2,
h3,
h4 {
    text-transform: none !important;
    font-weight: 700;
}

h3,
.avia-content-slider .slide-entry-title {
    font-size: var(--textomedio);
}

h2.titular {
    text-align: center;

    /* FLUIDO */
    font-size: clamp(24px, 3.2vw, 42px);

    /* FLUIDO */
    margin: 0 0 clamp(25px, 3vw, 40px);
}

h2.titular span {
    background: var(--primario);
    color: #fff;
    padding: 0 5px 0 30px;
    border-radius: var(--radius) 0 0 var(--radius);
}
.comercios h2.titular span {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0 30px 0 5px;
}

.caja {
    background: #fff;
    overflow: hidden;
    -webkit-box-shadow: var(--webkit-sombra);
    -moz-box-shadow: var(--moz-sombra);
    box-shadow: var(--sombra);
    border-radius: var(--radius);
}

.caja a,
.noticia-item a {
    color: #202020;
    text-decoration: none;
}


/* =========================================
   TOPBAR
   ========================================= */

.inside-top-bar {
    /* FLUIDO */
    padding: 0 clamp(15px, 3vw, 40px);
}

.top-bar {
    background-color: var(--primario);
}

.top-bar .wp-block-social-links .wp-block-social-link.wp-social-link {
    background-color: var(--primario);
}

.top-bar .wp-block-social-links .wp-social-link a {
    padding: 0;
}

.top-bar a {
    text-decoration: none;
}

.top-bar li.socio {
    background: #fff;
    padding: 0 10px;
}

.top-bar .socio a {
    color: var(--primario);
    line-height: 38px;
}

.top-bar .socio a::after {
    content: "\f487";
    display: inline-block;
    margin-left: 5px;
    font-family: dashicons;
}


/* =========================================
   HEADER
   ========================================= */

.front-page > section {
    /* FLUIDO */
    padding: clamp(50px, 7vw, 100px) 0;
}


/* =========================================
   MOSAICO HOME
   ========================================= */

.latest-posts {
    padding: 0 !important;
}

.latest-posts-grid {
    display: grid;

    /* FLUIDO / más robusto */
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);

    /* FLUIDO */
    gap: clamp(12px, 2vw, 20px);
}

.latest-posts-grid .overlay, .latest-posts-container .overlay {
    background-size: 100% 100%;
    background-position: 0 0;
    background-image: linear-gradient(0deg, #000 0%, #00000000 50%);
    display: block !important;
    background-color: transparent;
    opacity: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.latest-posts-grid .image-overlay-inside {
    display: none !important;
}

.main-post {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius) 0 0 var(--radius);
}

.main-post a {
    width: 100%;
}

.main-post img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.main-post .meta,
.side-post .meta {
    position: absolute;
    left: 20px;
    bottom: 40px;
    z-index: 20;
}

.side-post .meta {
    bottom: 20px;
}

.main-post .post-label,
.side-post .post-label {
    top: 10px;
    padding: 5px 10px;
    font-size: 12px;
    text-transform: uppercase;
    background: var(--primario);
    color: #fff;
}

.main-post h3,
.side-post h3 {
    /* FLUIDO: antes clamp(32px, 4vw, 20px) */
    font-size: clamp(20px, 2.5vw, 32px);
    color: #fff;
    margin:5px 0 0;
}

.side-post h3 {
    font-size: var(--textomedio);
}

.side-post {
    display: grid;
    grid-template-rows: 1fr 1fr;

    /* FLUIDO */
    gap: clamp(12px, 2vw, 20px);

    height: 500px;
}

.side-post .post-item,
.side-post-item {
    position: relative;
    overflow: hidden;
}

.side-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glide-movil-home {
    display: none;
}
/* =========================================
   CARRUSEL ACTIVIDADES
   ========================================= */

.activities-carousel {
    /* FLUIDO */
    padding-top: clamp(120px, 14vw, 200px) !important;

    background: url(img/fondo-actividades-home.jpg) no-repeat center;
    background-size: cover;

    /* FLUIDO */
    margin-top: clamp(-100px, -7vw, -50px);

    /* FLUIDO */
    padding-bottom: clamp(80px, 10vw, 150px) !important;
}

.carousel {
    display: flex;
    overflow-x: auto;

    /* FLUIDO */
    gap: clamp(10px, 1.5vw, 15px);
}

.carousel-item {
    flex: 0 0 auto;
    width: 200px;
}

.carousel-item img {
    border-radius: var(--radius);
}

.activity-item {
}

.activity-item img {
    width: 100%;
}

.glide__slides {
    align-items: stretch;
}

.activity-content {
    padding: 10px;
}

.cta-button {
    display: block;
    background: var(--primario);
    color: #fff !important;
    text-align: center;
    border-radius: var(--radius);
}

.reivindicaciones-list,
.comercios-list {
    list-style: none;
    padding: 0;
    display: grid;

    /* FLUIDO */
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );

    /* FLUIDO */
    gap: clamp(15px, 2vw, 20px);
}


/* =========================================
   BANNER HOME
   ========================================= */

.banner-home {
    text-align: center;

    /* FLUIDO */
    margin: clamp(-100px, -7vw, -50px) auto 0;

    max-width: 1200px;
}


/* =========================================
   REIVINDICACIONES
   ========================================= */

.reivindicaciones-list {
    margin: 0 0 50px;
}

.more-boton {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: var(--primario);
    color: #fff !important;
    text-decoration: none;
    border-radius: var(--radius);
    text-align: center;
    font-size: var(--textomedio);
    max-width: 200px;
    font-weight: 700;
}
.comercios-list .more-boton {
    max-width:none;
}
.posts-grid {
    display: grid;

    /* FLUIDO */
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );

    gap: clamp(15px, 2vw, 20px);
}

.side-post.post-item {
    display: grid;
}

.post-item {
    display: flex;
    flex-direction: row;
}

.post-content {
    flex: 1;

    /* FLUIDO */
    padding: clamp(12px, 1.5vw, 15px);

    display: flex;
    flex-direction: column;
    min-height: 190px;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.post-content .more-info {
    font-size: 14px;
    color: #f00;
    text-decoration: none;
    font-weight: bold;
}

.post-content .more-info:hover {
    text-decoration: underline;
}

.imagen-rei {
    flex-shrink: 0;
    width: 150px;
    margin-top: 0;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avia_transform a .image-overlay {
    display: none !important;
}


/* =========================================
   NOTICIAS HOME
   ========================================= */

.noticias {
    background: #f8f6f6;
}

.noticias-list {
    display: grid;

    /* FLUIDO */
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 300px), 1fr)
    );

    /* FLUIDO */
    gap: clamp(20px, 2.5vw, 30px);
}

.noticias-list .foto {
    height: 250px;
}

.content-item {
}

.contenido {
    padding: 15px;
}

.metainfo ul {
    margin: 0 0 5px;
    padding: 0;
}

.metainfo li {
    display: inline-block;
    background: var(--primario);
    padding: 0 4px;
    font-size: 14px;
}

.metainfo li a {
    color: #fff;
    text-transform: uppercase;
}


/* =========================================
   COMERCIOS HOME
   ========================================= */

.comercios {
    background: url(img/fondo-comercios-home.jpg) no-repeat center;
    background-size: cover;
}

.comercios .cajas {
    display: grid;

    /* FLUIDO */
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 400px), 1fr)
    );

    /* FLUIDO */
    gap: clamp(20px, 3vw, 30px);
}

.comercios-list {
    display: grid;

    /* FLUIDO */
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 220px), 1fr)
    );

    /* FLUIDO */
    column-gap: clamp(15px, 2vw, 20px);

    margin: 0;
    padding: 0;
}

.comercios-list h3 {
    font-size: 16px;
    padding: 10px;
    margin: 0;
}

.comercios-list li {
    position: relative;
}

.comercios-list li .comercio-categoria,
.item-comercio .comercio-categoria {
    position: absolute;
    bottom: 0;
    background: var(--primario);
    color: #fff;
    text-transform: uppercase;
    padding: 4px;
    z-index: 2;
    font-size: 14px;
}

.comercios-list .more-boton {
    grid-column: 1 / -1;
}

.comercio-direccion {
    padding: 0 10px;
    font-size: 12px;
    line-height: 14px;
}

.comercio-direccion:before {
    content: "\f230";
    display: inline-block;
    margin-right: 5px;
    font-family: dashicons;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer .wp-block-social-links .wp-block-social-link.wp-social-link {
    background-color: #3B3C3E;
}

.site-footer .wp-block-social-links .wp-social-link a {
    padding: 0;
}

.site-footer .boton a {
    background: var(--primario);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
}

.direccion,
.tlf,
.email,
.contacto {
    display: flex;
    column-gap: 5px;
    align-content: center;
    align-items: center;
}

.contacto {
    column-gap: 10px;
}


/* =========================================
   COMERCIOS SINGLE
   ========================================= */

.single-comercios .content-area,
.single-actividades .content-area,
.single-eventos .content-area,
.single-reivindicaciones .content-area {
    width: 100%;
}

.single-comercios .titulo {
    display: flex;
    column-gap: 20px;
    align-items: center;
}

.single-comercios .titulo img {
    width: 100px;
}

.contenido-comercio {
    display: grid;

    /* FLUIDO */
    grid-template-columns: 2fr 1fr;

    gap: clamp(20px, 3vw, 30px);
}

.contenido-comercio .thumbnail {
    width: 100%;
    height: 300px;
    position: relative;
    margin-bottom:20px;
    border-radius: var(--radius);
    overflow: hidden;
}
.contenido-comercio .thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contenido-comercio .thumbnail h1{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    padding: 10px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}
.contenido-comercio .thumbnail button{
    position: absolute;
    top: 10px;
    right: 10px;
    background:rgba(0, 0, 0, 0.5);
    display: flex;
    align-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius);
}
.contenido-comercio .thumbnail button:hover{
    background:rgba(0, 0, 0, 0.8);
}
.contenido-comercio .thumbnail h1 .btn-descargar {
    line-height: 26px;
    padding: 10px 20px;
}

.contenido-comercio .datos {
    background:#f0f0f0;
    padding:15px;
    border-radius: var(--radius);
}
.contenido-comercio .horario {
    margin:15px 0;
    padding:0;
    list-style:none;
}
.contenido-comercio .horario li {
    padding:5px;
}
.contenido-comercio .horario li:nth-child(odd) {
    background:#d5d5d5;
}
.contenido-comercio .horario h2 {
    font-size:20px;
    margin:0;
}
.contenido-comercio .galeria {
    display:none;
}
.contenido-comercio .datos > div {
    display:flex;
    align-items:center;
    margin-bottom:10px;
    gap:5px;
}
.contenido-comercio a {
    color:var(--primario);
}
.contenido-comercio .redes-sociales {
    font-size:20px;
    gap:10px;
}

/* =========================================
   COMERCIOS ARCHIVE
   ========================================= */

.post-type-archive-comercios .content-area {
    width: 100%;
}

/*
.container-comercios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}
*/

.items-comercios {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.item-comercio {
    position: relative;
    cursor: pointer;
    width: 17%;
    min-width: 240px;
}

.item-comercio img {
    width: 100%;
}

.item-comercio .logo {
    margin-top: -40px;
    text-align: center;
}

.item-comercio .logo img {
    width: 80px;
    border-radius: 100%;
    border: 5px solid #fff;
}

.item-comercio h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.item-comercio .contenido {
    padding: 10px;
}

.item-comercio .direccion,
.item-comercio .tlf,
.item-comercio .email {
    color: #202020;
}

.item-comercio .direccion:before,
.item-comercio .tlf:before,
.item-comercio .email:before {
    color: #202020;
}

#comercios-filtros {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

#comercios-filtros li {
    display: inline-block;
    margin: 0 5px;
}

#comercios-filtros li a {
    text-decoration: none;
    color: #202020;
}

#comercios-filtros li a:hover,
#comercios-filtros li a.activo {
    color: var(--primario);
}

.filter-container {
    display: flex;
    gap: 20px;
    grid-column: 1 / 6;
}

.filter-container p {
    font-weight: 700;
}

.botones {
    display: flex;
    gap: 5px;
}

.botones a {
    padding: 10px;
    color: var(--primario);
    border-radius: 5px;
    text-decoration: none;
}

.botones a.activo {
    color: #fff;
    background: var(--primario);
}

.container-comercios .widget-mapa {
    display: none;
}

.container-comercios.mapa {
}

#comercios-filtros-select,
.container-comercios.mapa .filter-container,
.container-comercios.mapa .items-comercios,
.container-comercios.mapa .direccion,
.container-comercios.mapa .telefono,
.container-comercios.mapa .email,
.container-comercios.mapa .logo {
    display: none;
}


/* =========================================
   FORMULARIO ACF
   ========================================= */

#acf-form-comercio .acf-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

#acf-form-comercio .acf-gallery[data-columns="3"] .acf-gallery-attachment {
    width: 20%;
}

#acf-form-comercio .acf-field .acf-fields {
    display: inline;
}

.i4ewOd-pzNkMb-tJHJj {
    display: none;
}


/* =========================================
   OTROS ITEMS
   ========================================= */

.otros-items {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(min(100%, 220px), 1fr)
    );

    /* FLUIDO */
    gap: clamp(15px, 2vw, 20px);

    margin-top: 40px;
}

.otros-items .item {
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.otros-items .item .item-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: block;
}

.otros-items .item .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.otros-items .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.otros-items .item-thumb img {
    width: 100%;
    height: auto;
}

.otros-items .item-titulo {
    margin-top: 10px;
    font-size: 1.1rem;
}

.otros-items .item-titulo a {
    color: #222;
    text-decoration: none;
}

.otros-items .item-titulo a:hover {
    color: #0073aa;
    text-decoration: underline;
}


/* =========================================
   EVENTOS
   ========================================= */

.gva-calendario {
    max-width: 400px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    font-family: sans-serif;
}

.calendario-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.cal-dia,
.cal-dia-header {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
}

.cal-dia-header {
    font-weight: bold;
    background: #f0f0f0;
}

.cal-dia.empty {
    background: none;
}

.cal-dia.tiene-evento {
    background: #ffdddd;
    cursor: pointer;
    position: relative;
}

.cal-dia.tiene-evento:hover {
    background: #ffbbbb;
}

.eventos-dia {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 10;
    padding: 6px;
    border-radius: 4px;
}

.cal-dia {
    position: relative;
}

.contenedor-eventos {
    display: grid;

    /* FLUIDO */
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);

    gap: clamp(20px, 3vw, 30px);
}

.col-izquierda {
    min-width: 0;
}

.col-derecha {
    min-width: 0;
}

.evento-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
}

.evento-thumb img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

.evento-info h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.evento-item p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}


/* =========================================
   TIMELINE
   ========================================= */

.single-reivindicaciones h1 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-cronologia {
    display: inline-block;
    background: var(--primario);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 40px;
    font-size: 16px;
    line-height: 20px;
}

.gva-timeline-vertical {
    position: relative;
    margin: 40px 0;
}

.timeline-item {
    position: relative;
    display: grid;

    /* FLUIDO */
    grid-template-columns: clamp(80px, 12vw, 150px) minmax(0, 1fr);
}

.timeline-header {
    padding: 8px 12px;

    /* FLUIDO */
    font-size: clamp(18px, 2vw, 24px);

    font-weight: 700;
    cursor: pointer;
    border-right: 5px solid var(--primario);
    text-align: right;
    position: relative;
}

.timeline-header:after {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--primario);
    position: absolute;
    top: 21px;
    right: -10px;
    border-radius: 100%;
}

.timeline-hito {
    /* FLUIDO */
    font-size: clamp(18px, 2vw, 24px);

    font-weight: 700;
}

.timeline-popup {
    top: calc(100% - -10px);
    padding: 8px 12px;
    text-align: left;
}

.timeline-popup.active {
    display: block;
}

.timeline-item:first-child .timeline-popup {
    top: calc(100% - -33px);
}

.timeline-item.left .timeline-popup {
    right: -100%;
}

.timeline-item.right .timeline-popup {
    left: -100%;
}

.timeline-popup::after {
    content: "";
    position: absolute;
    top: 13px;
    transform: translateY(-50%);
    border: 8px solid transparent;
}

.timeline-item.left .timeline-popup::after {
    left: -16px;
    border-right-color: #ccc;
}

.timeline-item.right .timeline-popup::after {
    right: -16px;
    border-left-color: #ccc;
}


/* =========================================
   FORMULARIO
   ========================================= */

.formulario-av {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;

    /* FLUIDO */
    padding: clamp(25px, 5vw, 40px) clamp(20px, 6vw, 50px);

    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.formulario-av.contacta {
    padding: 0;
    box-shadow: none;
}

.formulario-av h1 {
    text-align: center;
    color: #004080;
    margin-bottom: 15px;

    /* FLUIDO */
    font-size: clamp(1.6em, 3vw, 2em);
}

.formulario-av .intro {
    text-align: center;
    margin-bottom: 30px;
    color: #444;
}

.formulario-av h2,
.formulario-av h3 {
    color: #004080;
    margin-top: 35px;
    margin-bottom: 10px;
    border-left: 4px solid #0073aa;
    padding-left: 10px;
    font-size: 1.4em;
}

.formulario-av label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 600;
    color: #333;
}

.formulario-av input[type="text"],
.formulario-av input[type="email"],
.formulario-av input[type="tel"],
.formulario-av input[type="file"],
.formulario-av textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 15px;
}

.formulario-av input:focus,
.formulario-av textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
    outline: none;
    background: #fff;
}

.formulario-av .miembros-familia p {
    background: #f8f9fb;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e6ea;
    margin-bottom: 15px;
}

.formulario-av input[type="submit"],
.formulario-av button,
.formulario-av .wpcf7-submit {
    background: linear-gradient(135deg, #0073aa, #0099cc);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    padding: 12px 35px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.formulario-av input[type="submit"]:hover {
    background: linear-gradient(135deg, #005f8d, #0088b2);
    transform: translateY(-2px);
}

.formulario-av .wpcf7-acceptance input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
}

.formulario-av .wpcf7-response-output {
    text-align: center;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 20px;
}

/* Firma digital */

.formulario-av canvas.wpcf7-signature {
    border: 2px dashed #bbb;
    border-radius: 8px;
    margin-top: 8px;
    background: #fefefe;
    transition: border-color 0.3s;
}

.formulario-av canvas.wpcf7-signature:hover {
    border-color: #0073aa;
}


/* =========================================
   ACTIVIDADES SINGLE
   ========================================= */

.contenido-comercio .imagen img {
    border-radius: 8px;
}

.contenido-comercio .inscripcion a {
    background: var(--primario);
    color: #fff;
    font-weight: 700;
    padding: 15px 35px;

    /* FLUIDO */
    font-size: clamp(17px, 2vw, 20px);

    border-radius: 8px;
    text-decoration: none;
}

.contenido-comercio .mensualidad {
    /* FLUIDO */
    font-size: clamp(16px, 1.5vw, 18px);
}

.post-type-archive-actividades .site-content .content-area,
.post-type-archive-reivindicaciones .site-content .content-area {
    width: 100%;
}


/* =========================================
   FICHA ACTIVIDAD
   ========================================= */

.actividad-cuerpo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    /* FLUIDO */
    gap: clamp(20px, 3vw, 30px);

    padding: 20px;
    flex-wrap: wrap;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 10px;
}

.actividad-ficha-oculta {
    display: none;
    overflow: hidden;
    grid-column: 1 / 6;
}

.actividad-ficha-activa {
    display: block;
}

.items-comercios > :nth-child(2n):nth-child(-n + 10) {
    grid-row: 2 / 4;
}

.items-comercios > :nth-child(2n):nth-child(n + 11):nth-child(-n + 20) {
    grid-row: 3 / 5;
}

.items-comercios > :nth-child(2n):nth-child(n + 21):nth-child(-n + 30) {
    grid-row: 4 / 6;
}

.items-comercios > :nth-child(2n):nth-child(n + 31):nth-child(-n + 40) {
    grid-row: 5 / 7;
}

.items-comercios > :nth-child(2n):nth-child(n + 41):nth-child(-n + 50) {
    grid-row: 6 / 8;
}

.items-comercios > :nth-child(2n):nth-child(n + 51):nth-child(-n + 60) {
    grid-row: 7 / 9;
}

.items-comercios > :nth-child(2n):nth-child(n + 61):nth-child(-n + 70) {
    grid-row: 8 / 10;
}

.items-comercios > :nth-child(2n):nth-child(n + 71):nth-child(-n + 80) {
    grid-row: 9 / 11;
}

.items-comercios > :nth-child(2n):nth-child(n + 81):nth-child(-n + 90) {
    grid-row: 10 / 12;
}

.items-comercios > :nth-child(2n):nth-child(n + 91):nth-child(-n + 100) {
    grid-row: 11 / 13;
}

.items-comercios > :nth-child(2n):nth-child(n + 101):nth-child(-n + 110) {
    grid-row: 12 / 14;
}

.items-comercios > :nth-child(2n):nth-child(n + 111):nth-child(-n + 120) {
    grid-row: 13 / 15;
}

.items-comercios > :nth-child(2n):nth-child(n + 121):nth-child(-n + 130) {
    grid-row: 14 / 16;
}

.items-comercios > :nth-child(2n):nth-child(n + 131):nth-child(-n + 140) {
    grid-row: 15 / 17;
}

.items-comercios > :nth-child(2n):nth-child(n + 141):nth-child(-n + 150) {
    grid-row: 16 / 18;
}

.items-comercios > :nth-child(2n):nth-child(n + 151):nth-child(-n + 160) {
    grid-row: 17 / 19;
}

.actividad-info {
    position: relative;
}

.cerrar-ficha-btn,
.cerrar-ficha-btn:hover {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    color: #000;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cerrar-ficha-btn span {
    transform: rotate(45deg);
    font-size: 34px;
}

.ficha-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.comercios_destacados .ficha-imagen,
.items-comercios .ficha-imagen {
    position: relative;
}

.ficha-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ficha-imagen img.asociado-icon {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 10px;
    top: 10px;
}
.actividad-imagen {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.actividad-cuerpo img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actividad-cuerpo .inscripcion a,
.cta-toggle,
.item-comercio .cta-toggle {
    background: var(--primario);
    color: #fff !important;
    font-weight: 700;
    padding: 15px 35px;

    /* FLUIDO */
    font-size: clamp(17px, 2vw, 20px);

    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.cta-toggle,
.item-comercio .cta-toggle {
    padding: 10px;
    font-size: 16px;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.actividad-cuerpo .mensualidad,
.actividad-cuerpo .horario,
.actividad-cuerpo .lugar {
    /* FLUIDO */
    font-size: clamp(16px, 1.5vw, 18px);

    margin-bottom: 5px;
    display: block;
}

.actividad-metadatos p:last-child {
    margin-bottom: 15px;
}

.actividad-metadatos p {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 10px;
}


/* =========================================
   NOTICIAS ARCHIVO
   ========================================= */

.noticia-item {
    display: grid;

    /* FLUIDO */
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);

    border-radius: var(--radius);
    overflow: hidden;

    /* FLUIDO */
    margin-bottom: clamp(30px, 4vw, 50px);
}

.noticia-item h3 {
    margin-bottom: 10px;
}

.noticia-item p {
    margin: 0;
}

.noticia-item .contenido {
    padding: 15px;
}

.noticia-item .imagen {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.noticia-item .imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================
   PAGINACIÓN
   ========================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background: #f2f2f2;
    border-color: #bbb;
}

.pagination .page-numbers.current {
    background: #333;
    border-color: #333;
    color: #fff;
    font-weight: 600;
}

.pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding-left: 16px;
    padding-right: 16px;
    font-weight: 600;
}

a.read-more {
    color: var(--primario);
}

.widget-title {
    font-weight: 700;
    margin-bottom: 10px;
}


/* =========================================
   SIDEBAR - EVENTOS
   ========================================= */

.sidebar-eventos,
.sidebar-noticias {
    margin-bottom: 30px;
}

.sidebar-evento {
    padding: 0 0 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
}

.sidebar-evento:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.sidebar-evento img {
    display: block;
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.sidebar-evento h3 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.3;
}

.sidebar-evento h3 a {
    text-decoration: none;
    color: #202020;
}

.sidebar-evento h3 a:hover {
    text-decoration: underline;
}

.sidebar-evento .fecha {
    font-size: 13px;
    color: #777;
}


/* =========================================
   SIDEBAR - REIVINDICACIONES
   ========================================= */

.sidebar-reivindicaciones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #ebebeb;
    border-radius: var(--radius);
    padding: 15px;
}

.sidebar-reivindicacion {
    display: block;
    position: relative;
}

.sidebar-reivindicacion img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
}

.sidebar-reivindicacion h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.sidebar-reivindicaciones .widget-title {
    grid-column: 1 / 3;
}

.sidebar-reivindicacion h3 a {
    text-decoration: none;
    color: #fff;
}

.sidebar-reivindicacion h3 a:hover {
    text-decoration: underline;
}

.sidebar-ver-todos {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--primario);
    text-decoration: none;
}

.menu-toggle {
    font-size:30px;
    background: #fff !important;
}

.main-navigation.toggled .main-nav > ul {
    background:#fff;
}

.main-navigation .main-nav ul li a {
  line-height: 50px;
  font-size: 18px;
  font-weight: 700;
}

    .single:not(.single-post) .site-main, .archive .site-main,
    .page-template .site-main, .inside-right-sidebar {
        padding: 0 30px;
    }

    .front-page > section {
        padding: clamp(50px, 7vw, 100px) 30px;
    }


/* =========================================
   RESPONSIVE ESTRUCTURAL
   ========================================= */

/*
 * Aquí dejamos únicamente los cambios que realmente
 * modifican la estructura del diseño.
 */


/* TABLET */
@media (max-width: 800px) {

    /*
     * MOSAICO HOME
     */
    .glide-mosaico{
        display:none;
    }
    .glide-movil-home {
        display:block;
    }
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }

    .side-post {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .side-post .post-item {
        height: 250px;
    }

    .main-post,
    .main-post img {
        height: clamp(300px, 60vw, 500px);
    }


    /*
     * COMERCIOS SINGLE
     */

    .contenido-comercio {
        grid-template-columns: 1fr;
    }


    /*
     * ACTIVIDAD SINGLE
     */

    .actividad-cuerpo {
        grid-template-columns: 1fr;
    }


    /*
     * EVENTOS
     */

    .contenedor-eventos {
        grid-template-columns: 1fr;
    }

    .col-izquierda {
        max-width: 400px;
    }


    /*
     * FORMULARIO ACF
     */

    #acf-form-comercio .acf-fields {
        grid-template-columns: 1fr;
    }


    /*
     * TIMELINE
     *
     * No modificamos todavía la posición de los popups
     * porque depende de cómo se genere el HTML.
     */


    /*
     * TÍTULO COMERCIO
     */

    .single-comercios .titulo {
        align-items: flex-start;
    }

}


/* MÓVIL */

@media (max-width: 700px) {

    /*
     * NOTICIAS ARCHIVO
     */

    .noticia-item {
        grid-template-columns: 1fr;
    }

    .noticia-item .imagen {
        height: clamp(200px, 50vw, 250px);
    }


    /*
     * EVENTOS
     */

    .evento-item {
        align-items: flex-start;
    }

    .evento-thumb img {
        width: clamp(80px, 25vw, 120px);
    }


    /*
     * TIMELINE
     */

    .single-reivindicaciones h1 {
        flex-wrap: wrap;
    }

    .btn-cronologia {
        margin-left: 0;
    }

}


/* MÓVIL PEQUEÑO */

@media (max-width: 480px) {

    /*
     * MOSAICO HOME
     */

    .side-post {
        grid-template-columns: 1fr;
    }

    .side-post .post-item {
        height: 220px;
    }


    /*
     * TOPBAR
     */

    .inside-top-bar {
        padding-inline: 15px;
    }


    /*
     * COMERCIOS SINGLE
     */

    .single-comercios .titulo {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-comercios .titulo img {
        width: 80px;
    }


    /*
     * ACTIVIDAD
     */

    .actividad-cuerpo {
        padding: 15px;
    }

    .timeline-item {
        display: block;
    }
    .timeline-header {
        text-align: left;
        border-right:none;
        border-left: 5px solid var(--primario);
    }
    .timeline-header::after,
    .top-bar .wp-block-social-links {
        display: none;
    }

    .ocmovil {
        display:none;
    }
    .solomov {
        display:block;
    }

}


/*BANNER AQUI SE LLAMA*/

        .banner-container {
            width: 100%;
            max-width: 900px;
            margin:0 auto;
            background-color: #000000;
            border: 2px solid #222222;
            border-radius: 16px;
            padding: 35px 40px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            position: relative;
            overflow: hidden;
            text-align: left;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
        }

        /* Detalle geométrico rojo en la esquina superior izquierda */
        .banner-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 100px 100px 0 0;
            border-color: #e50914 transparent transparent transparent;
            z-index: 1;
        }

        /* Bloque de Textos (Capa 2) */
        .banner-content {
            z-index: 2;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .banner-tag {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #e50914;
        }

        .banner-title {
            font-size: clamp(26px, 4vw, 42px);
            font-weight: 900;
            color: #ffffff;
            text-transform: uppercase;
            line-height: 1.1;
        }

        .banner-title span {
            color: #e50914;
        }

        .banner-text {
            font-size: 14px;
            line-height: 1.5;
            color: #cccccc;
            max-width: 480px;
        }

        .banner-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background-color: #e50914;
            color: #ffffff;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 8px;
            width: fit-content;
            transition: background-color 0.2s ease, transform 0.2s ease;
            margin-top: 5px;
            box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
        }

        .banner-btn:hover {
            background-color: #b80710;
            transform: translateY(-2px);
        }

        /* Bloque Gráfico del Móvil (Capa 2) */
        .banner-graphic {
            z-index: 2;
            display: flex;
            align-items: center;
            background-color: #121212;
            border: 2px solid #2a2a2a;
            border-radius: 20px;
            padding: 18px 22px;
            gap: 15px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            flex-shrink: 0;
        }

        .phone-mockup {
            width: 55px;
            height: 95px;
            background-color: #000000;
            border: 2px solid #333;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .phone-icon {
            width: 30px;
            height: 30px;
            background-color: #e50914;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
        }

        .phone-icon svg {
            width: 16px;
            height: 16px;
        }

        .graphic-info {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .graphic-title {
            font-size: 13px;
            font-weight: 700;
            color: #ffffff;
        }

        .graphic-sub {
            font-size: 11px;
            color: #888888;
        }

        /* Diseño Responsive Adaptable para móviles y tablets */
        @media (max-width: 768px) {
            .banner-container {
                flex-direction: column;
                padding: 30px 20px;
                text-align: center;
            }

            .banner-content {
                align-items: center;
            }

            .banner-text {
                max-width: 100%;
            }

            .banner-container::before {
                border-width: 70px 70px 0 0;
            }

            .banner-graphic {
                width: 100%;
                justify-content: center;
            }
        }


/* Caja interactiva */
.caja {
    cursor: pointer;
}

.caja:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Ocultar las fichas mientras no estén abiertas */
.comercio-ficha-oculta[hidden] {
    display: none !important;
}

/* Overlay a pantalla completa */
.comercio-ficha-oculta {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    overflow-y: auto;
    display:none;
}

/* Popup */
.comercio-cuerpo {
    position: relative;
    width: 100%;
    max-width: 500px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: default;
    display: block;
    padding: 10px;
}
.comercio-ficha-oculta.activa {
    display:flex;
}

.comercio-imagen {
    position:relative;
    margin-bottom: 10px;
    max-height: 300px;
    overflow: hidden;
}
.comercio-imagen .titulo-comercio{
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 5px;
    margin:0;
    max-width: calc(100% - 20px);
}
.comercio-imagen,
.comercio-info {
    flex: 1;
    min-width: 0;
}

.comercio-imagen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

/* Botón de cierre */
.cerrar-comercio-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,0.6);
    font-size: 24px;
    cursor: pointer;
    color:#202020;
}
.cerrar-comercio-btn span {
    color: #fff;
}
.comercio-metadatos a {
    color: var(--primario);
    text-decoration: none;
}

/* Adaptación a móviles */
@media (max-width: 600px) {
    .comercio-modal-overlay {
        padding: 10px;
    }

    .comercio-ficha-oculta {
        max-height: calc(100vh - 20px);
    }

    .comercio-cuerpo {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
}


    .ocmovil {
        display:block;
    }
    .solomov {
        display:none;
    }

@media (max-width: 480px) {
     .ocmovil {
        display:none;
    }
    .solomov {
        display:block;
    }
}
