/* Hoja de estilos compartida por las páginas legales de Aljibe.
   Autocontenida: no depende de Tailwind ni de ningún otro CDN. */

:root {
    --color-main: #029990;
    --color-text-dark: #292d35;
    --color-background: #f2efe7;
    --color-text-light: #ffffff;
    --color-accent-2: #0b8bf0;
    --color-border: #cbd5d1;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    font-family: 'Inclusive Sans', system-ui, sans-serif;
    line-height: 1.7;
}

.container {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a { color: var(--color-accent-2); }
a:hover { text-decoration: none; }

.meta {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    color: var(--color-main);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

/* --- Cabecera --- */
.site-header { border-bottom: 1px solid var(--color-border); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.site-header img { height: 2rem; display: block; }
.site-header .back { text-decoration: none; }
.site-header .back:hover { text-decoration: underline; }

/* --- Cuerpo --- */
main { padding: 3rem 0 4rem; }

h1 {
    font-weight: 700;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0.5rem 0 0;
}
h2 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 3rem 0 1rem;
}
h3 {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-main);
    margin: 2rem 0 0.5rem;
}
h4 {
    font-weight: 700;
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
}

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }

.updated { opacity: 0.75; margin-top: 1rem; font-size: 1.05rem; }
.lead { font-size: 1.05rem; }

/* Bloque resumen destacado */
.summary {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2.5rem;
}
.summary h2:first-child { margin-top: 0; }
.summary dt { font-weight: 700; margin-top: 1rem; }
.summary dd { margin-left: 0; }
.summary > :last-child { margin-bottom: 0; }

/* Tablas */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 32rem;
}
th, td {
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}
th { background-color: rgba(2, 153, 144, 0.1); font-weight: 700; }

/* Índice de documentos legales */
.doc-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.doc-list li { margin-bottom: 1rem; }
.doc-list a {
    display: block;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--color-text-dark);
}
.doc-list a:hover { border-color: var(--color-main); }
.doc-list strong { display: block; font-size: 1.125rem; color: var(--color-main); }
.doc-list span { display: block; margin-top: 0.25rem; }

/* --- Pie --- */
.site-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    margin-top: 2rem;
}
.site-footer .container {
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.site-footer p { margin: 0 0 0.5rem; opacity: 0.7; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--color-text-light); }
.site-footer sup { font-size: 0.6em; }
.site-footer .footer-license {
    font-size: 0.875rem;
    max-width: 36rem;
    margin: 1rem auto 0;
}
.site-footer .footer-owner {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.site-footer .footer-owner-label {
    margin: 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}
.site-footer .footer-owner a { display: inline-block; line-height: 0; }
.site-footer .footer-owner a:hover { opacity: 0.8; }
.site-footer .footer-owner img { height: 2rem; width: auto; }
@media (min-width: 768px) { .site-footer .footer-owner img { height: 2.5rem; } }
.site-footer .footer-legal { margin-top: 2rem; font-size: 0.875rem; }
