/******************************ESTILOS DIRECTOS DE RESET******************************************/
/*** RESET JESUS 2025 ***/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
}

/*** HTML5 reset para navegadores antiguos ***/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/******************************ESTILOS DIRECTOS DE STYLE******************************************/
/* HOJA DE ESTILO STYLEPUBLIC.CSS (ORDENADA Y COMENTADA)  */

/* =========================================================
   VARIABLES GLOBALES — CONTRASTE AAA
========================================================= */
:root {
    /* Colores principales */
    --color-primario: #155a44;
    /* Verde oscuro */
    --color-acento: #0d47a1;
    /* Azul oscuro */
    --color-fondo: #e3f2fd;
    /* Tarjetas / bloques */
    --color-texto: #000000;
    /* Texto principal */
    --color-blanco: #ffffff;
    --color-focus: #ffeb3b;
    /* Foco visible AAA */

    /* UI */
    --radio: 12px;
    --sombra: 0 8px 24px rgba(0, 0, 0, 0.55);

    /* Bordes y sombras */
    --radio-borde: 8px;
    --sombra-caja: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Tipografía */
    --fuente-base: 'Poppins', sans-serif;
    --fuente-secundaria: sans-serif;
    /* --fuente-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    /***********************************/

    --color-borde-input: #ccc;
    --color-boton-hover: #0056b3;
    --color-error: red;
    /* Transiciones */
    --transicion-boton: background-color 0.3s ease;
}

/* =========================================================
   RESET BÁSICO
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   BODY — LECTURA CÓMODA
========================================================= */
body {
    font-family: var(--fuente-base);
    background: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.8;
    font-size: 1.05rem;
    /* background: var(--color-fondo-body);
    min-height: 100dvh;
    padding: 20px;
    display: flex;
    align-items: center; */
}

/* =========================================================
   FOCUS VISIBLE GLOBAL (WCAG AAA)
========================================================= */
a:focus-visible,
button:focus-visible,
:focus-visible {
    outline: 4px solid var(--color-focus);
    outline-offset: 4px;
}

/* =========================================================
   ENLACES — SUBRAYADO CALMADO
========================================================= */
a {
    color: var(--color-acento);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size 0.25s ease-out;
}

a:hover,
a:focus-visible {
    background-size: 100% 2px;
}

/* Subrayado más fino en texto largo */
.contenedor a:not(.btn) {
    background-size: 0% 1.5px;
}

.contenedor a:not(.btn):hover,
.contenedor a:not(.btn):focus-visible {
    background-size: 100% 1.5px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    a {
        transition: none;
    }
}

/* =========================================================
   SKIP LINK — ACCESIBILIDAD TECLADO
========================================================= */
.skip-link {
    position: absolute;
    top: -70px;
    left: 10px;
    background: var(--color-blanco);
    color: var(--color-texto);
    padding: 10px;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 325px;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */
.contenedor {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
    overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    border-bottom: 3px solid var(--color-blanco);
    position: relative;
    overflow: hidden;
    height: 380px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

/* Overlay oscuro para contraste AAA */
.hero::after {
    content: "";
    position: absolute;
    border-bottom: 3px solid var(--color-blanco);
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.logo-hero {
    width: 4rem;
    height: auto;
}

.logo-hero .st1 {
    fill: #155A44;
    stroke: #155A44;
    stroke-miterlimit: 10;
}

.logo-hero .st2 {
    fill: #FFFFFF;
    stroke: #FFFFFF;
    stroke-width: 0.5;
    stroke-miterlimit: 10;
}

.logo-hero .st3 {
    fill: #FFFFFF;
}

.hero-text {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    /* margin-bottom: 0.6rem; */
}

.hero-text .lema {
    /* margin-top: 1.1rem; */
    font-size: 1.2rem;
    max-width: 540px;
}

/* =========================================================
   ICONOS
========================================================= */
.icon-main {
    margin-right: 0.6rem;
}

.icon-section {
    color: var(--color-primario);
    margin-right: 0.5rem;
}

.icon-footer {
    color: var(--color-primario);
    margin-right: 1.5rem;
}

/* =========================================================
   BLOQUES DE CONTENIDO
========================================================= */
.bloque {
    position: relative;
    overflow: hidden;
    padding: 2.8rem;
}

.bloque1 {
    padding-top: 0;
}

.bloque h3 {
    font-size: 1.6rem;
    font-weight: bold;
}

.bloque p {
    margin-bottom: 1.2rem;
}

.negrita {
    font-weight: bold;
}

/* Iconos decorativos de fondo */
.bloque::before {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 180px;
    color: rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

/* Icono según sección */
.bloque:nth-of-type(1)::before {
    content: "\f4c4";
}

.bloque:nth-of-type(2)::before {
    content: "\f0c0";
}

.bloque:nth-of-type(3)::before {
    content: "\f06c";
}

.bloque:nth-of-type(4)::before {
    content: "\f023";
}

.bloque:nth-of-type(5)::before {
    content: "\f004";
}

/* =========================================================
   FONDO SUAVE
========================================================= */
.fondo-suave {
    background: var(--color-blanco);
    padding: 2.8rem;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}

/* =========================================================
   LISTAS
========================================================= */
ul {
    margin: 1.2rem 0 1.6rem 1.5rem;
}

li {
    margin-bottom: 0.8rem;
}

/* =========================================================
   BOTONES
========================================================= */
.acciones {
    display: flex;
    gap: 2.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.acciones-destacadas .btn i {
    font-size: 1.35em;
    color: var(--color-acento);
    border: 12px solid red;
}

.btn {
    background: var(--color-primario);
    color: #ffffff;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.btn.secundario {
    background: var(--color-acento);
}

.btn:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* =========================================================
   ICONOS SVG EN ACCIONES
========================================================= */

.acciones .icono-accion {
    width: 1.4em;
    height: 1.4em;
    fill: var(--color-blanco);
    /* color principal */
    margin-right: 0.4em;
    vertical-align: middle;
    transition: transform 0.2s ease, fill 0.2s ease;
}

/* Botón secundario */
.acciones .btn.secundario .icono-accion {
    fill: var(--color-blanco);
}

/* Hover / focus */
.acciones .btn:hover .icono-accion,
.acciones .btn:focus-visible .icono-accion {
    transform: scale(1.15);
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: var(--color-primario);
    color: #ffffff;
    text-align: center;
    padding: 1.2rem;
    font-size: 0.95rem;
}

.footer-legal {
    text-align: center;
    font-size: 0.9rem;
}

.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 0.1rem 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal li {
    display: inline-flex;
    align-items: center;
}

.footer-legal li:not(:last-child)::after {
    content: "|";
    margin: 0 0 0 20px;
    color: #ffffff;
}

@media (max-width: 832px) {
    .footer-legal li:not(:last-child)::after {
        content: "";
        margin: 0;
    }
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

/* Línea inferior al hover */
.footer-legal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.25s ease;
}

.footer-legal a:hover::after,
.footer-legal a:focus-visible::after {
    width: 100%;
}


/* =========================================================
   VISUALLY HIDDEN
========================================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (orientation: portrait) {
    body {
        font-size: 1rem;
    }

    .bloque {
        margin-bottom: 0;
    }

    .bloque p {
        margin-bottom: 0;
    }
}

/******************************ESTILOS DIRECTOS DE COOKIES******************************************/
/* =========================================================
   COOKIES · SIGNO EN COMUNIDAD
   ========================================================= */

/* [hidden] {
                display: none !important;
            } */
.cookie-banner[hidden],
.cookie-settings[hidden] {
    display: none !important;
}

/* OVERLAY */
.cookie-banner,
.cookie-settings {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    will-change: opacity, transform;
}

/* CAJA */
.cookie-content {
    background: var(--color-primario, #2b5c8a);
    color: #ffffff;
    max-width: 460px;
    width: 100%;
    padding: 1.6rem;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: system-ui, sans-serif;
}

.cookie-content h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

/* OPCIONES */
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0.9rem 0;
    font-size: 0.9rem;
    text-align: left;
}

/* BOTONES TOGGLE */
.toggle-btn {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.toggle-btn[aria-pressed="true"] {
    background: #ffffff;
    color: var(--color-primario, #2b5c8a);
    font-weight: 600;
}

.toggle-btn.fixed {
    opacity: 0.7;
    cursor: default;
}

/* ACCIONES */
.cookie-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* BOTONES */
.btn-cookie {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-cookie.primary {
    background: #ffffff;
    color: var(--color-primario, #2b5c8a);
    font-weight: 600;
}

/******************************ESTILOS DIRECTOS DE SITEMAP******************************************/
html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #e3f2fd;
    color: #333;
    display: flex;
    flex-direction: column;
}

header,
footer {
    background-color: #155a44;
    color: #ffffff;
    text-align: center;
    padding: 1.2rem 2rem;
}

#page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    margin-bottom: 1.5rem;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

/* Contenedor general con flexbox */
.content-wrapper-mapa {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-mapa {
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    /* margin-top: 3rem; */
    /* margen superior para el espaciado desde la cabecera */
    /* margin-bottom: 1.5rem; */
    /* Controlamos el espacio inferior */
    flex-grow: 1;
    /* Hace que el div crezca proporcionalmente */
}

p {
    text-align: center;
    font-size: 1.1rem;
}

main {
    flex: 1;
    /* Permite que el main ocupe el espacio restante */
    display: flex;
    flex: 3;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    margin-top: 1.5rem;
    /* Ajusta el margen superior */
}

div.section {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

div.section:hover {
    transform: translateY(-4px);
}

.section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: #c8e6c9;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    width: 100%;
    transition: background 0.3s ease;
}

.section-toggle.open {
    background: #a5d6a7;
}

.section-toggle:hover,
.section-toggle:focus {
    background: #a5d6a7;
    outline: none;
}

.section-toggle i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.section-toggle i.fa-chevron-down {
    margin-left: 0.5rem;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0;
    margin: 0;
    list-style: none;
}

.section-content.open {
    max-height: 1000px;
    padding: 1rem 1.2rem;
}

.section-content li {
    margin: 0.6rem 0;
}

.section-content a {
    color: #155a44;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.section-content a:hover,
.section-content a:focus {
    color: #1fa95b;
    transform: translateX(6px);
    outline: none;
}

.wrapper-pie {
    display: flex;
    justify-content: center;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 5px;
}

footer p {
    font-size: 0.95rem;
}

.logo-pie {
    display: block;
    width: 40px;
    height: 40px;
}

.logo-pie .st1 {
    fill: #155A44;
    stroke: #155A44;
    stroke-miterlimit: 10;
}

.logo-pie .st2 {
    fill: #FFFFFF;
    stroke: #FFFFFF;
    stroke-width: 0.5;
    stroke-miterlimit: 10;
}

.logo-pie .st3 {
    fill: #FFFFFF;
}

@media (max-width: 395px) {
    span {
        display: none;
    }
}