/*
Theme Name: Maxoarco — Astra hijo
Description: Personalizaciones de la web del Club Deportivo Maxoarco.
Template: astra
Version: 1.0.0
Text Domain: maxoarco-astra-child
*/
.maxo-noticias {
	--maxo-color: var(--ast-global-color-0, #236537);
	width: 100%;
}

.maxo-noticias__rejilla {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.maxo-noticias__tarjeta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 3px 16px rgb(0 0 0 / 8%);
}

.maxo-noticias__imagen {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.maxo-noticias__imagen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.maxo-noticias__contenido {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.maxo-noticias .maxo-noticias__titulo {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.3;
}

.maxo-noticias__titulo a {
	color: inherit;
	text-decoration: none;
}

.maxo-noticias__titulo a:hover,
.maxo-noticias__titulo a:focus-visible {
	color: var(--maxo-color);
	text-decoration: underline;
}

.maxo-noticias__extracto {
	margin: 0 0 20px;
	line-height: 1.65;
}

.maxo-noticias__enlace {
	margin-top: auto;
	color: var(--maxo-color);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.maxo-noticias__paginacion {
	margin-top: 36px;
}

.maxo-noticias__paginacion .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.maxo-noticias__paginacion a.page-numbers,
.maxo-noticias__paginacion span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
}

.maxo-noticias__paginacion .page-numbers.current {
	background: var(--maxo-color);
	border-color: var(--maxo-color);
	color: #fff;
}

@media (max-width: 1024px) {
	.maxo-noticias__rejilla {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.maxo-noticias__rejilla {
		grid-template-columns: minmax(0, 1fr);
	}

	.maxo-noticias__contenido {
		padding: 20px;
	}
}


/* ==========================================
   MAXOARCO - PÁGINA EL CLUB
   ========================================== */

.maxo-club {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    color: #333;
}

/* Secciones */

.maxo-club .maxo-club-seccion {
    margin-bottom: 65px;
}

/* Encabezados */

.maxo-club .maxo-club-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #BF1522;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

/* Historia */

.maxo-club .maxo-club-historia p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 22px;
}

/* Fotografías */

.maxo-club .maxo-club-fotos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 35px 0;
}

.maxo-club .maxo-club-fotos figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.maxo-club .maxo-club-fotos img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {

    .maxo-club .maxo-club-titulo {
        font-size: 26px;
    }

    .maxo-club .maxo-club-historia p {
        font-size: 16px;
        line-height: 1.75;
    }

    .maxo-club .maxo-club-fotos {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .maxo-club .maxo-club-fotos img {
        height: auto;
    }

}


/* ==========================================
   MAXOARCO - ORGANIGRAMA
   ========================================== */

.maxo-club .maxo-club-organigrama {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.maxo-club .maxo-club-cargo {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 30px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.maxo-club .maxo-club-cargo:hover {
    border-color: #b5b5b5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.maxo-club .maxo-club-cargo h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.maxo-club .maxo-club-cargo p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    color: #555;
}

/* Tabletas */

@media (max-width: 921px) {
    .maxo-club .maxo-club-organigrama {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Móviles */

@media (max-width: 600px) {
    .maxo-club .maxo-club-organigrama {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .maxo-club .maxo-club-cargo {
        padding: 22px 15px;
    }
}


/* ==========================================
   MAXOARCO - INSTALACIONES
   ========================================== */

/* Introducción */

.maxo-club .maxo-club-introduccion {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Contenedor de instalaciones */

.maxo-club .maxo-club-instalaciones {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Tarjetas */

.maxo-club .maxo-club-instalacion {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.maxo-club .maxo-club-instalacion:hover {
    border-color: #b5b5b5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Fotografía */

.maxo-club .maxo-club-instalacion-imagen {
    display: block;
    width: 100%;
    height: auto;
}

/* Contenido */

.maxo-club .maxo-club-instalacion-contenido {
    padding: 30px;
}

.maxo-club .maxo-club-instalacion h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

.maxo-club .maxo-club-instalacion p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.maxo-club .maxo-club-instalacion p:last-child {
    margin-bottom: 0;
}

/* Horario destacado */

.maxo-club .maxo-club-horario {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f7f7f7;
    border-left: 4px solid #555;
    border-radius: 6px;
    padding: 18px 22px;
    margin: 25px 0;
    font-size: 16px;
}

.maxo-club .maxo-club-horario strong {
    font-size: 17px;
    color: #333;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {

    .maxo-club .maxo-club-introduccion {
        font-size: 16px;
    }

    .maxo-club .maxo-club-instalacion-contenido {
        padding: 22px;
    }

    .maxo-club .maxo-club-instalacion h3 {
        font-size: 21px;
    }

    .maxo-club .maxo-club-instalacion p {
        font-size: 16px;
    }

    .maxo-club .maxo-club-horario {
        padding: 15px;
        font-size: 15px;
    }

}


/* ==========================================
   MAXOARCO - NAVEGACIÓN EL CLUB
   ========================================== */

.maxo-club .maxo-club-navegacion {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 55px;
}

.maxo-club .maxo-club-navegacion a {
    display: inline-block;
    padding: 13px 25px;
    background: #f8f8f8;
    border: 1px solid #dedede;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.maxo-club .maxo-club-navegacion a:hover {
    background: #ededed;
    border-color: #aaa;
    color: #222;
    transform: translateY(-2px);
}

.maxo-club .maxo-club-navegacion a:focus-visible {
    outline: 3px solid #555;
    outline-offset: 3px;
}

/* Desplazamiento a secciones */

html {
    scroll-behavior: smooth;
}

.maxo-club .maxo-club-seccion {
    scroll-margin-top: 110px;
}

/* Respeta las preferencias de accesibilidad */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .maxo-club .maxo-club-navegacion a {
        transition: none;
    }
}

/* Móviles */

@media (max-width: 600px) {

    .maxo-club .maxo-club-navegacion {
        gap: 10px;
        margin-bottom: 40px;
    }

    .maxo-club .maxo-club-navegacion a {
        padding: 11px 16px;
        font-size: 14px;
    }

}


/* ==========================================
   MAXOARCO - BANNER GENERAL DE PÁGINAS
   ========================================== */

.maxo-banner {
    width: 100%;
    min-height: 150px;
    border-radius: 12px;
    background-color: #f1f1f1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    margin-bottom: 65px;
    overflow: hidden;
}

.maxo-banner-titulo {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin: 0;
}

/* Móviles */

@media (max-width: 767px) {

    .maxo-banner {
        min-height: 125px;
        padding: 18px;
        margin-bottom: 40px;
    }

    .maxo-banner-titulo {
        font-size: 28px;
    }

}


/* ==========================================
   MAXOARCO - LISTADO DE NOTICIAS
   ========================================== */

.maxo-noticias {
    width: 100%;
    margin: 0 auto;
}

/* Rejilla */

.maxo-noticias__rejilla {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* Tarjetas */

.maxo-noticias__tarjeta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.maxo-noticias__tarjeta:hover {
    border-color: #b5b5b5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Imágenes */

.maxo-noticias__imagen {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.maxo-noticias__imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.maxo-noticias__tarjeta:hover .maxo-noticias__imagen img {
    transform: scale(1.03);
}

/* Contenido */

.maxo-noticias__contenido {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 25px;
}

/* Títulos */

.maxo-noticias__titulo {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px;
}

.maxo-noticias__titulo a {
    color: #333;
    text-decoration: none;
}

.maxo-noticias__titulo a:hover {
    color: #BF1522;
}

/* Extractos */

.maxo-noticias__extracto {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 25px;
}

/* Leer más */

.maxo-noticias__enlace {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    background: #BF1522;
    color: #fff;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.maxo-noticias__enlace:hover {
    background: #94101a;
    color: #fff;
}

/* ==========================================
   PAGINACIÓN
   ========================================== */

.maxo-noticias__paginacion {
    margin-top: 45px;
}

.maxo-noticias__paginacion ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.maxo-noticias__paginacion li {
    margin: 0;
}

.maxo-noticias__paginacion a,
.maxo-noticias__paginacion .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.maxo-noticias__paginacion a:hover,
.maxo-noticias__paginacion .current {
    background: #BF1522;
    border-color: #BF1522;
    color: #fff;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tabletas */

@media (max-width: 921px) {
    .maxo-noticias__rejilla {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Móviles */

@media (max-width: 600px) {
    .maxo-noticias__rejilla {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .maxo-noticias__contenido {
        padding: 20px;
    }

    .maxo-noticias__titulo {
        font-size: 19px;
    }
}


/* ==========================================
   MAXOARCO - NOTICIAS INDIVIDUALES
   ========================================== */

/* Título principal de la noticia */

body.single-post .entry-title {
    color: #BF1522;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Fecha de publicación */

body.single-post .entry-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Ocultar el autor */

body.single-post .entry-meta .posted-by {
    display: none;
}

/* Imagen destacada */

body.single-post .ast-single-post-featured-section img {
    border-radius: 12px;
}

/* Párrafos */

body.single-post .entry-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 24px;
}

/* Encabezados secundarios */

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    color: #BF1522;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 20px;
}

/* Imágenes dentro del contenido */

body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Enlaces */

body.single-post .entry-content a {
    color: #BF1522;
}

body.single-post .entry-content a:hover {
    color: #94101a;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {

    body.single-post .entry-content p {
        font-size: 16px;
        line-height: 1.75;
    }

}


/* ==========================================
   MAXOARCO - BOTÓN VOLVER A NOTICIAS
   ========================================== */

body.single-post .maxo-volver-noticias {
    margin: 40px 0 30px;
}

body.single-post .maxo-volver-noticias a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #BF1522;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease;
}

body.single-post .maxo-volver-noticias a:hover {
    background: #94101a;
    color: #fff;
}

body.single-post .maxo-volver-noticias a:focus-visible {
    outline: 3px solid #333;
    outline-offset: 3px;
}


/* ==========================================
   MAXOARCO - ANCHURA NOTICIAS INDIVIDUALES
   ========================================== */

/* Ampliar el contenedor principal */

body.single-post .ast-container {
    max-width: 1160px;
    width: 100%;
}

/* Permitir que el artículo ocupe todo el ancho */

body.single-post #primary {
    width: 100%;
    max-width: 100%;
    float: none;
}

/* Artículo */

body.single-post .ast-article-single {
    width: 100%;
    max-width: 100%;
}

/* Limitar el ancho de los párrafos */

body.single-post .entry-content > p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Fotografías dentro de la noticia */

body.single-post .entry-content figure {
    max-width: 100%;
}

/* Adaptación a móviles */

@media (max-width: 767px) {

    body.single-post .ast-container {
        padding-left: 20px;
        padding-right: 20px;
    }

}



/* ==========================================
   MAXOARCO - IMÁGENES EN NOTICIAS
   ========================================== */

/* Contenedor de las imágenes */

body.single-post .entry-content figure.wp-block-image {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Imágenes insertadas en el contenido */

body.single-post .entry-content figure.wp-block-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ==========================================
   MAXOARCO - LA ESCUELA
   ========================================== */

.maxo-escuela {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    color: #333;
}

.maxo-escuela-seccion {
    margin-bottom: 45px;
}

.maxo-escuela-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #BF1522;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

.maxo-escuela-texto p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.maxo-escuela-bloques {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.maxo-escuela-tarjeta {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.maxo-escuela-tarjeta:hover {
    border-color: #b5b5b5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.maxo-escuela-tarjeta h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 18px;
}

.maxo-escuela-tarjeta p {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 15px;
}

.maxo-escuela-tarjeta p:last-child {
    margin-bottom: 0;
}

/* Responsive */

@media (max-width: 767px) {

    .maxo-escuela-titulo {
        font-size: 26px;
    }

    .maxo-escuela-texto p {
        font-size: 16px;
        line-height: 1.75;
    }

    .maxo-escuela-bloques {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .maxo-escuela-tarjeta {
        padding: 22px;
    }

    .maxo-escuela-tarjeta h3 {
        font-size: 20px;
    }

}



/* ==========================================
   MAXOARCO - BANNER RESPONSIVE
   ========================================== */

/* Móviles */
@media (max-width: 767px) {

    .maxo-banner {
        margin-top: 55px;
    }

}

/* Tabletas y pantallas intermedias */
@media (min-width: 768px) and (max-width: 1200px) {

    .maxo-banner {
        margin-top: 55px;
    }

}



/* ==========================================
   MAXOARCO - DOCUMENTACIÓN
   ========================================== */

.maxo-documentacion {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    color: #333;
}

/* Aviso inicial */

.maxo-doc-aviso {
    background: #f7f7f7;
    border: 1px solid #dedede;
    border-left: 4px solid #BF1522;
    border-radius: 10px;
    padding: 22px 25px;
    margin-bottom: 35px;
}

.maxo-doc-aviso strong {
    font-size: 18px;
    color: #BF1522;
}

.maxo-doc-aviso p {
    font-size: 16px;
    line-height: 1.7;
    margin: 12px 0 0;
}

.maxo-doc-aviso a {
    color: #BF1522;
    text-decoration: underline;
}

/* Navegación interna */

.maxo-doc-navegacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 55px;
}

.maxo-doc-navegacion a {
    padding: 12px 20px;
    background: #f8f8f8;
    border: 1px solid #dedede;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease,
                border-color 0.2s ease;
}

.maxo-doc-navegacion a:hover {
    background: #ededed;
    border-color: #aaa;
    color: #BF1522;
}

/* Secciones */

.maxo-doc-seccion {
    margin-bottom: 65px;
    scroll-margin-top: 110px;
}

.maxo-doc-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #BF1522;
    padding-bottom: 15px;
    margin: 0 0 25px;
    border-bottom: 1px solid #BF1522;
}

.maxo-doc-seccion > p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Tarjetas de documentos */

.maxo-doc-tarjetas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.maxo-doc-tarjeta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.maxo-doc-tarjeta:hover {
    border-color: #BF1522;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    color: #333;
}

.maxo-doc-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 52px;
    background: #fcebed;
    border-radius: 8px;
    color: #BF1522;
    font-size: 14px;
    font-weight: 700;
}

.maxo-doc-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.maxo-doc-info strong {
    font-size: 17px;
    color: #333;
}

.maxo-doc-info small {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.maxo-doc-accion {
    font-size: 23px;
    color: #BF1522;
}

.maxo-doc-tarjeta:focus-visible,
.maxo-doc-navegacion a:focus-visible {
    outline: 3px solid #BF1522;
    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {

    .maxo-doc-aviso {
        padding: 20px;
    }

    .maxo-doc-navegacion {
        gap: 10px;
        margin-bottom: 40px;
    }

    .maxo-doc-navegacion a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .maxo-doc-titulo {
        font-size: 26px;
    }

    .maxo-doc-tarjetas {
        grid-template-columns: 1fr;
    }

    .maxo-doc-tarjeta {
        padding: 18px;
    }

}


/* Enlaces dentro de las secciones */

.maxo-documentacion .maxo-doc-seccion p a {
    color: #BF1522;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.maxo-documentacion .maxo-doc-seccion p a:hover {
    color: #94101a;
}


/* ==========================================
   MAXOARCO - LICENCIAS FEDERATIVAS
   ========================================== */

/* Subtítulos */

.maxo-documentacion .maxo-doc-seccion h3 {
    font-size: 23px;
    font-weight: 700;
    color: #333;
    margin: 35px 0 20px;
}

/* Opciones de alta y renovación */

.maxo-doc-opciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.maxo-doc-opcion {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 25px;
}

.maxo-doc-opcion h4 {
    font-size: 20px;
    font-weight: 700;
    color: #BF1522;
    margin: 0 0 15px;
}

.maxo-doc-opcion p {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 15px;
}

.maxo-doc-opcion p:last-child {
    margin-bottom: 0;
}

/* Tablas */

.maxo-doc-tabla-contenedor {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0 30px;
    border: 1px solid #dedede;
    border-radius: 12px;
}

.maxo-doc-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 16px;
}

.maxo-doc-tabla th,
.maxo-doc-tabla td {
    padding: 15px 20px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e8e8e8;
}

.maxo-doc-tabla th {
    background: #f5f5f5;
    font-weight: 700;
    color: #333;
}

.maxo-doc-tabla tr:last-child td {
    border-bottom: none;
}

.maxo-doc-tabla tbody tr:hover {
    background: #fafafa;
}

/* Lista de descuentos */

.maxo-doc-lista {
    margin: 15px 0 30px;
    padding-left: 25px;
}

.maxo-doc-lista li {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 12px;
}

/* Caja de tramitación */

.maxo-doc-tramitacion {
    background: #f7f7f7;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 25px;
}

.maxo-doc-tramitacion p {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 15px;
}

.maxo-doc-tramitacion p:last-child {
    margin-bottom: 0;
}

.maxo-doc-tramitacion .maxo-doc-cuenta {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #BF1522;
    overflow-wrap: anywhere;
}

/* Responsive */

@media (max-width: 767px) {

    .maxo-doc-opciones {
        grid-template-columns: 1fr;
    }

    .maxo-doc-opcion,
    .maxo-doc-tramitacion {
        padding: 20px;
    }

    .maxo-doc-tabla {
        font-size: 14px;
    }

    .maxo-doc-tabla th,
    .maxo-doc-tabla td {
        padding: 12px;
    }

}


/* ==========================================
   MAXOARCO - TARJETA IFAA
   ========================================== */


/* Títulos dentro de las cajas informativas */

.maxo-documentacion .maxo-doc-tramitacion h3 {
    margin: 0 0 15px;
    color: #BF1522;
}

/* Notas aclaratorias */

.maxo-documentacion .maxo-doc-nota {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-top: -15px;
    margin-bottom: 30px;
}


/* ==========================================
   MAXOARCO - FORMULARIO DE CONTACTO
   ========================================== */

/* Contenedor principal */

.maxo-contacto {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 50px;
    padding: 35px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
}

/* Título */

.maxo-contacto-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #BF1522;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

/* Formulario */

.maxo-contacto-formulario {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Campos */

.maxo-contacto-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maxo-contacto-campo label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.maxo-contacto-campo input,
.maxo-contacto-campo textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.maxo-contacto-campo input:focus,
.maxo-contacto-campo textarea:focus {
    border-color: #BF1522;
    outline: 2px solid rgba(191, 21, 34, 0.15);
    outline-offset: 1px;
}

.maxo-contacto-campo textarea {
    min-height: 170px;
    resize: vertical;
}

/* Campo antispam invisible */

.maxo-contacto-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Privacidad */

.maxo-contacto-privacidad {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.maxo-contacto-privacidad label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.maxo-contacto-privacidad input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #BF1522;
}

.maxo-contacto-privacidad a {
    color: #BF1522;
    text-decoration: underline;
}

/* Cloudflare Turnstile */

.maxo-contacto .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
}

/* Botón de envío */

.maxo-contacto-enviar {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    padding: 14px 30px;
    background: #BF1522;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.maxo-contacto-enviar:hover {
    background: #94101a;
    color: #fff;
    transform: translateY(-2px);
}

.maxo-contacto-enviar:focus-visible {
    outline: 3px solid #333;
    outline-offset: 3px;
}

/* Mensajes de resultado */

.maxo-contacto-exito,
.maxo-contacto-error {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.maxo-contacto-exito {
    background: #edf8ef;
    border: 1px solid #b8dfc0;
    color: #246a32;
}

.maxo-contacto-error {
    background: #fff0f0;
    border: 1px solid #e5b2b2;
    color: #922;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {

    .maxo-contacto {
        padding: 22px;
        margin-bottom: 35px;
    }

    .maxo-contacto-titulo {
        font-size: 24px;
    }

    .maxo-contacto-formulario {
        gap: 18px;
    }

    .maxo-contacto-enviar {
        width: 100%;
    }

}


/* ==========================================
   MAXOARCO - CONTACTO: DISTRIBUCIÓN
   ========================================== */

/* Dos columnas */

.maxo-contacto-columnas {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr)
                           minmax(0, 1fr);
    gap: 25px;
    align-items: start !important;
}

/* Evitar que las columnas de WordPress
   impongan anchuras propias */

.maxo-contacto-columnas > .wp-block-column {
    width: 100%;
    min-width: 0;
    flex-basis: auto !important;
    margin: 0 !important;
}

/* Adaptar el formulario existente */

.maxo-contacto-columnas .maxo-contacto {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Tarjeta de datos */

.maxo-contacto-datos {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 30px;
}

.maxo-contacto-datos h2 {
    color: #BF1522;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

.maxo-contacto-dato {
    margin-bottom: 28px;
}

.maxo-contacto-dato h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.maxo-contacto-dato p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
}

.maxo-contacto-dato a {
    color: #BF1522;
    text-decoration: none;
}

.maxo-contacto-dato a:hover {
    text-decoration: underline;
}

/* Enlace a Google Maps */

.maxo-contacto-ubicacion {
    display: inline-block;
    padding: 12px 18px;
    background: #f7f7f7;
    border: 1px solid #dedede;
    border-radius: 8px;
    color: #BF1522;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.maxo-contacto-ubicacion:hover {
    border-color: #BF1522;
    color: #94101a;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 921px) {

    .maxo-contacto-columnas {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 767px) {

    .maxo-contacto-datos {
        padding: 22px;
    }

    .maxo-contacto-datos h2 {
        font-size: 24px;
    }

}


/* ==========================================
   MAXOARCO - ALINEAR TÍTULOS DE CONTACTO
   ========================================== */

.maxo-contacto-columnas .maxo-contacto,
.maxo-contacto-columnas .maxo-contacto-datos {
    padding: 30px;
}

/* Mismo estilo para los dos encabezados */

.maxo-contacto-columnas .maxo-contacto-titulo,
.maxo-contacto-columnas .maxo-contacto-datos h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #BF1522;
    margin: 0 0 30px;
    padding: 0 0 15px;
    border-bottom: 1px solid #BF1522;
}

/* Adaptación a móviles */

@media (max-width: 767px) {

    .maxo-contacto-columnas .maxo-contacto,
    .maxo-contacto-columnas .maxo-contacto-datos {
        padding: 22px;
    }

    .maxo-contacto-columnas .maxo-contacto-titulo,
    .maxo-contacto-columnas .maxo-contacto-datos h2 {
        font-size: 24px;
    }

}


/* ==========================================
   MAXOARCO - INTRODUCCIÓN CONTACTO
   ========================================== */

.maxo-contacto-introduccion {
    max-width: 1100px;
    margin: 0 auto 35px;
}

.maxo-contacto-introduccion p {
    font-size: 17px;
    line-height: 1.85;
    color: #333;
    margin: 0;
}

@media (max-width: 767px) {

    .maxo-contacto-introduccion {
        margin-bottom: 25px;
    }

    .maxo-contacto-introduccion p {
        font-size: 16px;
        line-height: 1.75;
    }

}


/* ==========================================
   MAXOARCO - ÁREA PRIVADA
   ========================================== */

.maxo-area-privada {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    color: #333;
}

/* Tarjetas de secciones */

.maxo-privada-seccion {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
}

/* Títulos */

.maxo-area-privada .maxo-privada-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #BF1522;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

/* Listado de documentos */

.maxo-privada-documentos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cada documento */

.maxo-privada-documento {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.maxo-privada-documento:hover {
    background: #f7f7f7;
    color: #BF1522;
}

.maxo-privada-documento:focus-visible {
    outline: 3px solid #BF1522;
    outline-offset: 2px;
}

/* Icono PDF */

.maxo-privada-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 44px;
    background: #fcebed;
    border-radius: 7px;
    color: #BF1522;
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {

    .maxo-privada-seccion {
        padding: 20px;
        margin-bottom: 25px;
    }

    .maxo-area-privada .maxo-privada-titulo {
        font-size: 24px;
    }

    .maxo-privada-documento {
        font-size: 15px;
    }

}


/* ==========================================
   MAXOARCO - ACCESO DE USUARIOS
   ========================================== */

.maxo-acceso {
    width: 100%;
    max-width: 550px;
    margin: 0 auto 50px;
    padding: 35px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
}

/* Título */

.maxo-acceso-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #BF1522;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

/* Introducción */

.maxo-acceso-introduccion {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

/* Formulario */

.maxo-acceso form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.maxo-acceso form p {
    margin: 0;
}

.maxo-acceso .login-username,
.maxo-acceso .login-password {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maxo-acceso .login-username label,
.maxo-acceso .login-password label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Campos */

.maxo-acceso input[type="text"],
.maxo-acceso input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
}

.maxo-acceso input[type="text"]:focus,
.maxo-acceso input[type="password"]:focus {
    border-color: #BF1522;
    outline: 2px solid rgba(191, 21, 34, 0.15);
    outline-offset: 1px;
}

/* Recordarme */

.maxo-acceso .login-remember label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.maxo-acceso .login-remember input {
    width: 18px;
    height: 18px;
    accent-color: #BF1522;
}

/* Botón */

.maxo-acceso .button-primary,
.maxo-acceso-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: #BF1522;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.maxo-acceso .button-primary:hover,
.maxo-acceso-boton:hover {
    background: #94101a;
    color: #fff;
}

/* Enlaces inferiores */

.maxo-acceso-enlaces {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.maxo-acceso-enlaces a {
    color: #BF1522;
    font-size: 14px;
    text-decoration: none;
}

.maxo-acceso-enlaces a:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 767px) {

    .maxo-acceso {
        padding: 22px;
        margin-bottom: 35px;
    }

    .maxo-acceso-titulo {
        font-size: 24px;
    }

}


/* ==========================================
   MAXOARCO - ERROR DE ACCESO
   ========================================== */

.maxo-acceso-error {
    padding: 15px 20px;
    margin-bottom: 25px;
    background: #fff0f0;
    border: 1px solid #e5b2b2;
    border-left: 4px solid #BF1522;
    border-radius: 8px;
    color: #922;
    font-size: 15px;
    line-height: 1.6;
}


/* ==========================================
   MAXOARCO - TURNSTILE EN ACCESO
   ========================================== */

.maxo-acceso .maxo-login-turnstile {
    margin: 5px 0;
    max-width: 100%;
}

.maxo-acceso .cf-turnstile {
    max-width: 100%;
}

/* Móviles */

@media (max-width: 767px) {

    .maxo-acceso .maxo-login-turnstile {
        margin: 10px 0;
    }

}


/* ==========================================
   MAXOARCO - REGISTRO DE USUARIOS
   ========================================== */

.maxo-registro {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 35px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
}

.maxo-registro-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #BF1522;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

.maxo-registro-introduccion {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.maxo-registro-formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.maxo-registro-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maxo-registro-campo label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.maxo-registro-campo input {
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 16px;
}

.maxo-registro-campo input:focus {
    border-color: #BF1522;
    outline: 2px solid rgba(191, 21, 34, 0.15);
    outline-offset: 1px;
}

.maxo-registro-privacidad {
    font-size: 14px;
    line-height: 1.6;
}

.maxo-registro-privacidad label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.maxo-registro-privacidad input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #BF1522;
}

.maxo-registro-privacidad a {
    color: #BF1522;
}

.maxo-registro-enviar {
    align-self: flex-start;
    padding: 14px 30px;
    background: #BF1522;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.maxo-registro-enviar:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.maxo-registro-aviso {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 767px) {

    .maxo-registro {
        padding: 22px;
    }

    .maxo-registro-titulo {
        font-size: 24px;
    }

    .maxo-registro-enviar {
        width: 100%;
    }

}


/* ==========================================
   MAXOARCO - REGISTRO: ESTADOS Y SEGURIDAD
   ========================================== */

.maxo-registro-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.maxo-registro-exito,
.maxo-registro-error {
    padding: 16px 20px;
    margin: 0 0 25px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
}

.maxo-registro-exito {
    background: #edf8ef;
    border: 1px solid #b8dfc0;
    color: #246a32;
}

.maxo-registro-error {
    background: #fff0f0;
    border: 1px solid #e5b2b2;
    border-left: 4px solid #BF1522;
    color: #922;
}

.maxo-registro-enviar:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.maxo-registro-enviar:not(:disabled):hover {
    background: #94101a;
}

.maxo-registro-enviar:focus-visible {
    outline: 3px solid #333;
    outline-offset: 3px;
}


/* ==========================================
   MAXOARCO - RECUPERAR CONTRASEÑA
   ========================================== */

.maxo-recuperar {
    width: 100%;
    max-width: 550px;
    margin: 0 auto 50px;
    padding: 35px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fff;
    color: #333;
}

.maxo-recuperar h2 {
    color: #BF1522;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 1px solid #BF1522;
    padding-bottom: 15px;
    margin: 0 0 25px;
}

.maxo-recuperar p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.maxo-recuperar form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.maxo-recuperar-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maxo-recuperar-campo label {
    font-size: 16px;
    font-weight: 600;
}

.maxo-recuperar-campo input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 16px;
}

.maxo-recuperar-campo input:focus {
    border-color: #BF1522;
    outline: 2px solid rgba(191, 21, 34, .15);
    outline-offset: 1px;
}

.maxo-recuperar button {
    background: #BF1522;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.maxo-recuperar button:hover {
    background: #94101a;
}

.maxo-recuperar-volver {
    margin-top: 25px;
    margin-bottom: 0 !important;
}

.maxo-recuperar-volver a {
    color: #BF1522;
}

.maxo-recuperar-exito,
.maxo-recuperar-error {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.maxo-recuperar-exito {
    background: #edf8ef;
    border: 1px solid #b8dfc0;
    color: #246a32;
}

.maxo-recuperar-error {
    background: #fff0f0;
    border-left: 4px solid #BF1522;
    color: #922;
}

@media (max-width: 767px) {
    .maxo-recuperar {
        padding: 22px;
    }

    .maxo-recuperar h2 {
        font-size: 24px;
    }
}


/* ==========================================
   MAXOARCO - ENLACES DE ACCESO Y REGISTRO
   ========================================== */

.maxo-acceso-enlaces {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.maxo-acceso-enlaces a,
.maxo-registro-volver a {
    color: #BF1522;
    text-decoration: none;
    font-weight: 600;
}

.maxo-acceso-enlaces a:hover,
.maxo-registro-volver a:hover {
    text-decoration: underline;
}

.maxo-registro-volver {
    margin: 25px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: 15px;
}


/* ==========================================
   MAXOARCO - DOCUMENTOS PRIVADOS
   ========================================== */

.maxo-documentos-privados {
    width: 100%;
    margin: 30px 0 45px;
}

.maxo-documentos-grupo {
    margin-bottom: 35px;
}

.maxo-documentos-grupo h2 {
    font-size: 27px;
    color: #BF1522;
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #BF1522;
}

.maxo-documentos-lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.maxo-documento-enlace {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.maxo-documento-enlace:hover {
    background: #fff;
    border-color: #BF1522;
    color: #BF1522;
}

.maxo-documento-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #BF1522;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 767px) {

    .maxo-documentos-lista {
        grid-template-columns: 1fr;
    }

    .maxo-documentos-grupo h2 {
        font-size: 24px;
    }
}


/* ==========================================
   MAXOARCO - SLIDER DE PORTADA
   ========================================== */

.maxo-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}

.maxo-slider-pistas,
.maxo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.maxo-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease,
                visibility .7s ease;
}

.maxo-slide.activo {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.maxo-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.maxo-slide-imagen {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Flechas */

.maxo-slider-flecha {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    transition: background .2s;
}

.maxo-slider-flecha:hover {
    background: #BF1522;
    color: #fff;
}

.maxo-slider-anterior {
    left: 20px;
}

.maxo-slider-siguiente {
    right: 20px;
}

/* Indicadores */

.maxo-slider-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    z-index: 5;
}

.maxo-slider-punto {
    display: block;
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .65);
    cursor: pointer;
    transition: background .2s, width .2s;
}

.maxo-slider-punto.activo {
    width: 28px;
    background: #BF1522;
}

.maxo-slider button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Mostrar la primera imagen si JS no carga */

.maxo-slider:not(.maxo-slider-iniciado)
.maxo-slide:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Móviles */

@media (max-width: 767px) {
    .maxo-slider {
        border-radius: 6px;
    }

    .maxo-slider-flecha {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .maxo-slider-anterior {
        left: 10px;
    }

    .maxo-slider-siguiente {
        right: 10px;
    }

    .maxo-slider-indicadores {
        bottom: 12px;
    }
}

/* Respetar preferencias de movimiento */

@media (prefers-reduced-motion: reduce) {
    .maxo-slide,
    .maxo-slider-flecha,
    .maxo-slider-punto {
        transition: none;
    }
}


/* ==========================================
   MAXOARCO - PORTADA: ÚLTIMAS NOTICIAS
   ========================================== */

.maxo-inicio-noticias {
    width: 100%;
    margin: 60px auto 30px;
}

.maxo-inicio-titulo {
    color: #BF1522;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

.maxo-inicio-descripcion {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 767px) {

    .maxo-inicio-noticias {
        margin-top: 40px;
    }

    .maxo-inicio-titulo {
        font-size: 26px;
    }

    .maxo-inicio-descripcion {
        font-size: 16px;
    }
}


/* ==========================================
   MAXOARCO - PORTADA: COLABORADORES
   ========================================== */

.maxo-inicio-colaboradores {
    width: 100%;
    margin: 65px auto 50px;
}

.maxo-colaboradores-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 35px;
}

.maxo-colaborador {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    min-height: 120px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

a.maxo-colaborador:hover {
    border-color: #BF1522;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}

.maxo-colaborador img {
    display: block;
    width: 100%;
    max-width: 170px;
    height: auto;
    max-height: 85px;
    object-fit: contain;
}

@media (max-width: 767px) {

    .maxo-inicio-colaboradores {
        margin-top: 45px;
    }

    .maxo-colaboradores-grid {
        gap: 15px;
    }

    .maxo-colaborador {
        width: calc(50% - 8px);
        min-height: 100px;
        padding: 15px;
    }

    .maxo-colaborador img {
        max-height: 70px;
    }
}

@media (max-width: 400px) {

    .maxo-colaborador {
        width: 100%;
        max-width: 250px;
    }
}



/* ==========================================
   MAXOARCO - SEPARACIÓN CABECERA Y SLIDER
   ========================================== */

@media (max-width: 1600px) {

    body.page .maxo-slider {
        margin-top: 65px;
    }

}


/* ==========================================
   MAXOARCO - PÁGINAS LEGALES
   ========================================== */

.maxo-legal {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 50px;
    color: #333;
}

.maxo-legal-seccion {
    margin-bottom: 40px;
}

.maxo-legal-titulo {
    color: #BF1522;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #BF1522;
}

.maxo-legal-cuadro {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
}

.maxo-legal-cuadro p {
    font-size: 17px;
    line-height: 1.85;
    margin: 0 0 18px;
}

.maxo-legal-cuadro p:last-child {
    margin-bottom: 0;
}

.maxo-legal-cuadro ul,
.maxo-legal-cuadro ol {
    margin: 15px 0 20px 25px;
    padding: 0;
}

.maxo-legal-cuadro li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.maxo-legal-cuadro a {
    color: #BF1522;
    text-decoration: underline;
}

.maxo-legal-cuadro a:hover {
    color: #8e1019;
}

@media (max-width: 767px) {

    .maxo-legal {
        margin-bottom: 35px;
    }

    .maxo-legal-titulo {
        font-size: 25px;
    }

    .maxo-legal-cuadro {
        padding: 20px;
    }

    .maxo-legal-cuadro p,
    .maxo-legal-cuadro li {
        font-size: 16px;
    }
}
