/*
 Theme Name:   Arbitra Madrid 2026
 Theme URI:    https://arbitramadrid.com/
 Description:  Tema hijo de Hello Elementor.
 Author:       MiBizPartners
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  arbitramadrid-2026
*/

/*
* Estilos GENERALES
*/

body {
    font-family: 'Raleway', sans-serif;
}

/* Pasar variables a un fichero */
:root {
    --rojo-principal: #EC0044;
    --rojo-secundario: #78232F;
    /*hover*/
    --gris-principal: #F6F6F6;
    --gris-secundario: #58585A;
    --linea-gris: #D1D2D4;
    --blanco: #FFFFFF;
    --negro: #000000;
}

/* TITULOS H1, H2, H3, H4, H5, H6 */

.titulos h1 {
    display: flex;
    align-items: center;
    font-size: 50px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 800 !important;
}

@media (max-width: 1200px) {
    .titulos h1 {
        font-size: 30px !important;
    }
}

.titulos h2 {
    display: flex;
    align-items: center;
    font-size: 50px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 800 !important;
}

@media (max-width: 1200px) {
    .titulos h2 {
        font-size: 30px !important;
    }
}

.titulos-otras-noticias h2 {
    display: flex;
    align-items: center;
    font-size: 30px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 800 !important;
}

@media (max-width: 1200px) {
    .titulos-otras-noticias h2 {
        font-size: 20px !important;
    }
}

.titulos h3 {
    display: flex;
    align-items: center;
    font-size: 30px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 800 !important;
}

@media (max-width: 1200px) {
    .titulos h3 {
        font-size: 20px !important;
    }
}

.titulos h4 {
    font-size: 20px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: var(--negro) !important;
}

.titulos h1::after,
.titulos h2::after,
.titulos h3::after,
.titulos-otras-noticias h2::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background-color: var(--rojo-principal) !important;
    margin-left: 10px;
}

/* Enlaces */

.link-texto a {
    color: var(--gris-secundario) !important;
}

.link-texto a:hover {
    color: var(--rojo-principal) !important;
}

/* Bloques de datos destacados */
.bloque-raya-roja {
    border-left-width: 3px !important;
    border-left-style: solid;
    border-left-color: var(--rojo-principal) !important;
}

/* Etiquetas */
@media (max-width: 768px) {
    #etiqueta {
        width: 100% !important;
    }
}

/* Ajustes especifico para footer. Fix en el pixel 767 */
@media (max-width: 768px) {
    footer .elementor-widget-nav-menu.menu-secundario {
        display: none !important;
    }
}

/* Ajustes especificos para header */
@media (max-width: 1200px) {
    .elementor-nav-menu--dropdown {
        position: fixed !important;
        top: 120 !important;
        left: 0 !important;
        width: 100vw !important;
        height: auto !important;
        z-index: 9999 !important;
        background-color: white;
    }

    .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        margin-top: 60px !important;
    }
}

/* Adaptacion temporal REVISAR LUNES */

/* Ajustes especificos para header */
@media (max-width: 767px) {
    .elementor-nav-menu--dropdown {
        position: fixed !important;
        top: 120 !important;
        left: 0 !important;
        width: 100vw !important;
        height: auto !important;
        z-index: 9999 !important;
        background-color: white;
    }

    .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        margin-top: 60px !important;
    }
}

.elementor-nav-menu .elementor-item-active.has-submenu .sub-arrow svg path {
    fill: white !important;
}


.elementor-nav-menu .elementor-item.has-submenu:hover .sub-arrow svg path {
    fill: white !important;
}

.elementor-nav-menu .elementor-item.has-submenu .sub-arrow svg {
    transform: scale(1.8);
    transform-origin: center;
}

/*
.elementor-nav-menu .sub-menu li:not(:first-child):not(:last-child)::after {
    content: "";
    display: block;
    width: 90%;
    height: 1px;
    background-color: #c4c4c4;
    margin: 0 auto;
} */

.elementor-nav-menu .sub-menu li:first-child::after {
    display: none !important;
}

/* Alinear viñetas */
.elementor-widget-text-editor ul {
    padding-left: 17px;
    margin-left: 0;

}

/* Tabla de contenidos con scroll de los estatutos */
.elementor-menu-anchor {
    position: relative;
    top: -200px;
}


/* Tabla */

table,
table td {
    background-color: white !important;
    font-weight: 400 !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 16px !important;
}

@media (max-width: 1366px) {

    table,
    table td {
        font-size: 13px !important;
    }
}

table th {
    background-color: #EC0044;
    color: white;
}

.custom-table td:first-child {
    background-color: #DDDDDD !important;
    color: #000;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .custom-table {
        min-width: 720px;
        /* fuerza scroll */
    }
}

.custom-table th,
.custom-table td {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {

    .custom-table th,
    .custom-table td {
        font-size: 13px !important;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .table-responsive::after {
        content: "← Desliza →";
        display: block;
        text-align: center;
        font-size: 12px;
        color: var(--negro);
        margin-top: 6px;
    }
}


/* BLOG TEMPORAL REORGANIZAR */


/* Tarjeta de cada entrada */
.blog-entradas .elementor-post {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

/* Padding del contenido de texto */
.blog-entradas .elementor-post__text {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Padding del contenido de texto */
.blog-entradas .elementor-post-date {
    padding-top: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Fila inferior: fecha + botón */
.blog-entradas .elementor-post__meta-data,
.blog-entradas .elementor-post__read-more {
    margin-top: auto;
    display: inline-block;
}

/* Botón "Leer más / Ver más" alineado a la derecha */
.blog-entradas .elementor-post__read-more {
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 0;
    font-family: 'Raleway', sans-serif !important;
    background-color: var(--rojo-principal) !important;
    color: var(--blanco) !important;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
}

/* Hover del botón */
.blog-entradas .elementor-post__read-more:hover {
    background-color: var(--rojo-secundario) !important;
}

/* Añadir "..." al final del extracto */
.blog-entradas .elementor-post__excerpt p::after {
    content: " ...";
}

.bloque-raya-roja-top {
    border-top-width: 5px !important;
    border-top-style: solid;
    border-top-color: var(--rojo-principal) !important;
}

/* Solo para posts dentro de .blog-entradas */
#blog-img-principal {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

/* Footer menu mobile */
@media (min-width: 1023px) and (max-width: 1025px) {

    .footer-menu-mobile,
    .menu-principal {
        display: none !important;
    }
}

/* Personalizar flechas galeria */
/* Flechas del carrusel */
.elementor-swiper-button {
    width: 48px;
    height: 48px;
    background: var(--rojo-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.elementor-swiper-button:hover {

    background: var(--blanco);

}

.elementor-swiper-button:hover svg path {
    fill: var(--rojo-principal);
}


/* Aspectos generales */
@media (max-width: 767px) {

    .elementor-element-2773f30,
    .elementor-element-2773f30>.e-con-inner,
    .elementor-element-2773f30 .e-con {
        height: auto !important;
        min-height: 0 !important;
        align-items: stretch;
    }
}

@media (max-width: 767px) {
    .elementor-hidden-mobile {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
    }
}

.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    min-height: 150px;
    overflow: hidden;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bg-salas {
    width: auto !important;
    flex: 0 0 !important;
    height: auto;
}

.texto-miniatura {
  font-size: 12px;
  text-transform: none !important;
}

/* Ocultar menu principal en mobile */
@media (max-width: 768px) {

    .menu-principal {
        display: none !important;
    }
}