:root {
    --sp-primary: #601028;
    --sp-primary-soft: #7e1b3a;
    --sp-secondary: #a62346;
    --sp-accent: #0f766e;
    --sp-bg: #f6f3ef;
    --sp-surface: #ffffff;
    --sp-text: #1f2937;
    --sp-muted: #6b7280;
    --sp-border: #e8dee2;
    --sp-shadow-sm: 0 3px 14px rgba(76, 18, 38, 0.07);
    --sp-shadow-md: 0 12px 28px rgba(66, 20, 36, 0.12);
    --sp-radius-md: 14px;
    --sp-radius-lg: 20px;
    --sp-transition: all 0.22s ease;
}

* {
    font-family:
        "Montserrat",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    background: var(--sp-bg);
}

.sp-page {
    width: min(1320px, calc(100% - 2rem));
    margin: 1.75rem auto 2.5rem;
}

.sp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sp-primary) url("/images/fondo_rojo.png") center / cover
        no-repeat;
    border: none;
    padding: 1.1rem 2rem;
    color: #fff;
    box-shadow: none;
}

.sp-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
}

.sp-hero-escudo {
    width: 52px;
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.sp-hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-hero-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sp-hero-subtitle {
    margin: 0.15rem auto 0;
    max-width: 740px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.sp-hero-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
}

.sp-hero-stat {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.sp-hero-stat span {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.sp-hero-stat strong {
    margin-top: 0.1rem;
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.sp-shell {
    margin-top: 1.2rem;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    box-shadow: var(--sp-shadow-sm);
    padding: 1.5rem;
}

.sp-btn {
    border-radius: 10px;
    padding: 0.5rem 0.74rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--sp-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sp-btn-primary {
    border: 1px solid #8a1f40;
    background: #8a1f40;
    color: #fff;
}

.sp-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(166, 35, 70, 0.25);
}

.sp-btn-youtube {
    border: 1px solid #cb2027;
    background: #cb2027;
    color: #fff;
}

.sp-btn-youtube:hover {
    color: #fff;
    box-shadow: 0 7px 14px rgba(203, 32, 39, 0.25);
}

.sp-empty {
    border: 1px dashed #ddc8cf;
    border-radius: 14px;
    background: #fffafc;
    color: #744254;
    text-align: center;
    padding: 1.35rem 1rem;
}

.sp-empty i {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.sp-empty p {
    margin: 0;
    font-weight: 600;
}

/* --- Breadcrumb --- */

.sd-breadcrumb {
    margin-top: 1rem;
}

.sd-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6d2940;
    text-decoration: none;
    transition: var(--sp-transition);
}

.sd-breadcrumb-link:hover {
    color: var(--sp-secondary);
}

/* --- Info grid --- */

.sd-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.sd-info-item {
    border: 1px solid #eadde1;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: #fffafc;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sd-info-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6d2940;
}

.sd-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sp-text);
}

/* --- Actions --- */

.sd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* --- Points section --- */

.sd-points-section {
    margin-top: 1rem;
}

.sd-points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.sd-points-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.1rem;
    color: #5c1e33;
    font-weight: 700;
}

.sd-toggle-all-btn {
    border: 1px solid #d4c3ca;
    background: #fff;
    color: #5f2435;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--sp-transition);
}

.sd-toggle-all-btn:hover {
    border-color: #9b2f4e;
    background: #fff5f8;
}

/* --- Point accordion --- */

.sd-points-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.sd-point {
    border: 1px solid #eadde1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(83, 26, 44, 0.05);
    overflow: hidden;
    transition: var(--sp-transition);
}

.sd-point:hover {
    border-color: #d5a9b8;
    box-shadow: 0 6px 16px rgba(77, 20, 37, 0.1);
}

.sd-point-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--sp-text);
    transition: background 0.15s ease;
}

.sd-point-toggle:hover {
    background: #fffafc;
}

.sd-point-static {
    cursor: default;
}

.sd-point-static:hover {
    background: none;
}

.sd-point-position {
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f7e6ec;
    color: #651f35;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sd-point-description {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    padding-top: 0.2rem;
}

.sd-chevron {
    margin-left: auto;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: var(--sp-muted);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.sd-point-toggle[aria-expanded="true"] .sd-chevron {
    transform: rotate(180deg);
}

.sd-point-body {
    padding: 0 1rem 1rem 3.4rem;
    animation: sp-fade-up 0.18s ease;
}

.sd-point-body[hidden] {
    display: none;
}

/* --- Document link --- */

.sd-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #d7c7ce;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #8a1f40;
    background: #fff;
    text-decoration: none;
    transition: var(--sp-transition);
    margin-bottom: 0.65rem;
}

.sd-doc-link:hover {
    background: #fff4f7;
    border-color: #b43c5f;
    color: #8a1f40;
}

.sd-doc-link-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.55rem;
    margin-bottom: 0;
    margin-top: 0.35rem;
}

/* --- Subpoints --- */

.sd-subpoints {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sd-subpoint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #f0e5e9;
    border-radius: 6px;
    background: #fdfafb;
}

.sd-subpoint-position {
    min-width: 38px;
    height: 26px;
    border-radius: 6px;
    background: #dbf3f1;
    color: #0a5a54;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sd-subpoint-content {
    flex: 1;
    min-width: 0;
}

.sd-subpoint-description {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--sp-text);
}

.sd-no-extra {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sp-muted);
    font-weight: 500;
    font-style: italic;
}

@keyframes sp-fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .sp-page {
        width: calc(100% - 1rem);
        margin-top: 1rem;
    }

    .sp-hero {
        padding: 0.7rem 0.75rem;
    }

    .sp-hero-escudo {
        width: 36px;
    }

    .sp-hero-subtitle {
        font-size: 0.78rem;
    }

    .sp-hero-stats {
        max-width: 220px;
    }

    .sp-shell {
        padding: 1rem;
    }

    .sd-info-grid {
        grid-template-columns: 1fr;
    }

    .sd-points-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sd-point-body {
        padding-left: 1rem;
    }
}
