/* --- ESTILOS BASE Y FUENTE DEL SISTEMA --- */
:root {
    --primary: #2E88C7;;
    --primary-dark: #0F3057;
    --secondary: #f90;
    --success: #059669;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --info-bg: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg);
    font-weight: normal;
    color: var(--text-main);
    font-size:100%;
    line-height: 1.5;
}

/* --- ACCESIBILIDAD: FOCO --- */
button:focus-visible, a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

main {
    width:100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    margin-bottom:1rem;
}

h1 {
	color: var(--primary-dark);;
	font-size: 3rem;
	font-weight: 700;
	line-height: 52px;
}

h2 {
    font-size: 2rem;
}

h3 {
    color: var(--secondary);
    font-size:1.5rem;
    margin-bottom:0.8rem;
}

ul, li {
    list-style: none inside;
}

p {
	color: var(--text-muted);
	font-size: 16px;
	font-weight: 500;
	line-height: 28px;
	margin-bottom: 28px;
}

.header p {
    color: var(--text-muted);
    max-width: 700px;
}


a {
    color: var(--primary);
    text-decoration: underline;
}

.article-link {
        color: var(--primary);
        text-decoration: underline;
        font-weight: 600;
    }

blockquote {
    font-size:14px;
    padding:15px;
    background-color:var(--info-bg);
    line-height:25px;
    margin-bottom: 28px;
}

blockquote > p {
    font-size:14px;
    margin-bottom:0;
    line-height:25px;
}

a:hover {
	text-decoration: none;
}

.contents {
    max-width:1000px;
    padding:20px;
    margin:2rem auto;
    margin-bottom: 0;
}

.contents > :last-child {
    margin-bottom:0;
 }

.main-header {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.main-header, .logo-wrap {
    background-color: var(--primary-dark);
    text-align: center;
    padding: 0.5rem;
}

.main-header .tagline {
    font-size:1rem;
    color:#fff;
    height:0;
}

.main-header .tagline a {
    color: #fff;
}

.contents img {
    width:100%;
}

h3 + ul {
    margin-top:2em;
}
.contents ul {
    box-sizing: border-box;
    margin-bottom: 24px;
}
.contents li {
    box-sizing: border-box;
    padding:10px;
    width:100%;

}

.contents li a.enlace {
    display:inline-block;
    position:relative;
    margin-left:20px;
}

.contents li a.enlace:before {
    content: "➤";
    content:"▶";
    font-weight: bolder;
    text-decoration:none;
    margin-right:5px;
    left: -18px;
    position: absolute;
    color: #0F3057;
    font-size: 75%;
    top: 3px;

}

footer {
    margin:0 auto;
}

.nav-footer {
    margin-bottom:28px;
}

.catalogo-wrap, .contacto-wrap, .logo-footer {
    text-align: center;
}

.logo-footer {
    margin-bottom:0;
}

.catalogo-wrap {
    margin-bottom:7px;
}
.catalogo-link {
    padding:0.24rem 0.8rem;
    color: var(--secondary);
    background-color:#fff;
    display:inline-block;
    text-decoration: none;
    border-radius: 3px;
    text-decoration: underline;
}

.catalogo-link:hover {
    background-color: var(--primary);
    background-color: var(--secondary);
    color:#fff;
    transition: background-color .2s ease-out;
}

.copyright-wrap {
    font-size:90%;
    text-align: center;
    border-top:1px solid #ccc;
    padding-top:16px;
}

@media only screen and (max-width: 820px) {
    .contents ul, .contents ul li, .contents ul li a {
        display:block;
    }

    .contents ul li a {
        width:100%;
        max-width:400px;
    }
}

@media only screen and (max-width: 470px) {

    h1, h2, h3, h4, h5, h6 {
         margin-bottom: 1rem;
         line-height: 100%;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .contents {
        margin: 0.2rem auto;
    }
}