:root {
    --bg: #f6f0e5;
    --paper: #fffaf2;
    --ink: #24160f;
    --muted: #6c5648;
    --accent: #8a1f11;
    --accent-dark: #5f140d;
    --line: #d8c4af;
    --tint: #ead8c0;
    --shadow: 0 18px 40px rgba(36, 22, 15, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top right, rgba(138, 31, 17, 0.12), transparent 25%),
        linear-gradient(180deg, #f3e7d6 0%, var(--bg) 40%, #f9f4ec 100%);
    color: var(--ink);
}

a {
    color: inherit;
}

.wrap {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(760px, calc(100% - 2rem));
}

.site-header,
.site-footer {
    background: rgba(255, 250, 242, 0.85);
    backdrop-filter: blur(10px);
}

.site-header .wrap,
.site-footer .wrap,
.hero-grid,
.split {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(108, 86, 72, 0.15);
}

.site-header .wrap,
.site-footer .wrap {
    padding: 1rem 0;
}

.brand,
.site-nav a,
.button {
    text-decoration: none;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-kicker,
.eyebrow,
.meta,
.panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    gap: 1rem;
}

.hero,
.section,
.page-head {
    padding: 4.5rem 0;
}

.hero h1,
.page-head h1,
.section h2 {
    margin: 0 0 1rem;
    line-height: 0.95;
}

.hero h1,
.page-head h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
}

.page-head--collection h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.page-head-collection-layout {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.page-head-collection-copy {
    min-width: 0;
}

.collection-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(108, 86, 72, 0.18);
    box-shadow: var(--shadow);
    background: var(--paper);
}

.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--muted);
}

.name-with-escudo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.escudo-title {
    height: 1em;
    width: auto;
    object-fit: contain;
    vertical-align: middle;    
    border: 2px solid #000;
    border-radius: 12px;
}

.hero-panel,
.card,
.list-card,
.info-box {
    background: var(--paper);
    border: 1px solid rgba(108, 86, 72, 0.15);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-panel,
.card,
.list-card,
.info-box {
    padding: 1.5rem;
}

.hero-panel {
    min-width: min(320px, 100%);
}

.stats {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 1rem;
}

.stats strong {
    display: block;
    font-size: 2rem;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fffaf2;
    margin-right: 0.75rem;
}

.button-secondary {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--line);
}

.section-tint {
    background: linear-gradient(180deg, rgba(234, 216, 192, 0.35), rgba(234, 216, 192, 0.7));
}

.section-heading {
    margin-bottom: 1.5rem;
}

.card-grid,
.list-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.list-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card h2,
.card h3,
.list-card h2 {
    margin-top: 0.5rem;
}

.site-footer {
    border-top: 1px solid rgba(108, 86, 72, 0.15);
}

.titular-image {
    padding: 0.2rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    max-width: 150px;
    width: 100%;
    height: auto;
}

.titulares-table-wrap {
    overflow-x: auto;
}

.titulares-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 1rem;
}

.titulares-table td {
    text-align: center;
    vertical-align: top;
    padding: 0.5rem;
}

.titulares-cell-name {
    color: var(--muted);
    font-size: 0.95rem;
}

.titular-image-empty {
    display: inline-block;
    color: var(--muted);
    font-size: 0.85rem;
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.collectible-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.collectible-image-frame {
    display: inline-block;
    padding: 0.5rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

@media (max-width: 800px) {
    .site-header .wrap,
    .site-footer .wrap,
    .hero-grid,
    .split {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .hero,
    .section,
    .page-head {
        padding: 3.5rem 0;
    }

    .page-head-collection-layout {
        grid-template-columns: 1fr;
    }

    .collection-cover {
        max-width: 220px;
    }
}
