: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;
}

/* ═══════════════════════════════════
   Hero
   ═══════════════════════════════════ */

.hp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sp-primary) url("/images/fondo_rojo.png") center / cover
        no-repeat;
    padding: 3rem 2rem 2.4rem;
    color: #fff;
    text-align: center;
}

.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-circle closest-side at 50% 0%,
        rgba(0, 0, 0, 0.18) 0%,
        transparent 70%;
    pointer-events: none;
}

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

.hp-hero-escudo {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
    animation: hp-float 5s ease-in-out infinite;
}

@keyframes hp-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.hp-hero-title {
    margin: 0;
    font-size: clamp(1.4rem, 3.2vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hp-hero-subtitle {
    margin: 0;
    max-width: 580px;
    font-size: clamp(0.84rem, 1.3vw, 0.98rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.hp-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.hp-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}

.hp-hero-stat i {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.hp-hero-stat-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ═══════════════════════════════════
   Secciones
   ═══════════════════════════════════ */

.hp-section {
    margin-top: 1.5rem;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    box-shadow: var(--sp-shadow-sm);
    padding: 1.6rem 1.8rem;
}

.hp-section-header {
    margin-bottom: 1.3rem;
}

.hp-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sp-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.hp-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fdf0f3;
    color: var(--sp-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hp-section-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.83rem;
    color: var(--sp-muted);
    font-weight: 500;
    padding-left: calc(34px + 0.6rem);
}

/* ═══════════════════════════════════
   Accesos rápidos
   ═══════════════════════════════════ */

.hp-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.hp-shortcut-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--sp-border);
    background: #fff;
    text-decoration: none;
    color: var(--sp-text);
    transition: var(--sp-transition);
    position: relative;
    overflow: hidden;
}

.hp-shortcut-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fdf0f3;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.hp-shortcut-card:hover::after {
    opacity: 1;
}

.hp-shortcut-card:hover {
    border-color: #d5a9b8;
    box-shadow: 0 8px 24px rgba(77, 20, 37, 0.1);
    transform: translateY(-2px);
    color: var(--sp-text);
}

.hp-shortcut-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fdf0f3;
    color: var(--sp-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: var(--sp-transition);
    position: relative;
    z-index: 1;
}

.hp-shortcut-card:hover .hp-shortcut-icon {
    background: var(--sp-secondary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(166, 35, 70, 0.3);
}

.hp-shortcut-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.hp-shortcut-name {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.hp-shortcut-desc {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--sp-muted);
}

.hp-shortcut-arrow {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    color: #d8c4cb;
    font-size: 0.72rem;
    transition: var(--sp-transition);
}

.hp-shortcut-card:hover .hp-shortcut-arrow {
    color: var(--sp-secondary);
    transform: translateX(3px);
}

/* ═══════════════════════════════════
   Próximas sesiones - Timeline
   ═══════════════════════════════════ */

.hp-sessions-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hp-session-card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: var(--sp-text);
    transition: var(--sp-transition);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-left: 0;
    position: relative;
}

.hp-session-card:hover {
    background: #fdf8fa;
    color: var(--sp-text);
}

.hp-session-date-block {
    flex-shrink: 0;
    width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.hp-session-day {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--sp-secondary);
    line-height: 1;
}

.hp-session-month-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--sp-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.hp-session-year-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #c5b3b9;
    margin-top: 0.05rem;
}

.hp-session-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
    padding: 0.3rem 0;
    position: relative;
}

.hp-session-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--sp-secondary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: var(--sp-transition);
}

.hp-session-card:hover .hp-session-dot {
    background: var(--sp-secondary);
    box-shadow: 0 0 0 4px rgba(166, 35, 70, 0.15);
}

.hp-session-line {
    width: 2px;
    flex: 1;
    background: #eedbe1;
}

.hp-session-card:last-child .hp-session-line {
    display: none;
}

.hp-session-body {
    flex: 1;
    min-width: 0;
    padding: 0.1rem 0 0.1rem 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-session-title {
    margin: 0 0 0.35rem;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.3;
}

.hp-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hp-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: #fdf0f3;
    color: var(--sp-secondary);
    border: 1px solid #f3d5df;
}

.hp-session-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    color: var(--sp-muted);
    font-weight: 600;
}

.hp-session-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #d8c4cb;
    font-size: 0.8rem;
    transition: var(--sp-transition);
    padding-left: 0.5rem;
}

.hp-session-card:hover .hp-session-arrow {
    color: var(--sp-secondary);
    transform: translateX(3px);
}

.hp-session-more {
    margin-top: 1.2rem;
    text-align: center;
}

.hp-btn-agenda {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.3rem;
    border-radius: 100px;
    border: 1.5px solid #d4c3ca;
    background: #fff;
    color: var(--sp-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--sp-transition);
}

.hp-btn-agenda:hover {
    border-color: var(--sp-secondary);
    background: #fdf0f3;
    color: var(--sp-secondary);
    box-shadow: 0 4px 14px rgba(166, 35, 70, 0.12);
}

.hp-btn-agenda-arrow {
    font-size: 0.72rem;
    transition: transform 0.22s ease;
}

.hp-btn-agenda:hover .hp-btn-agenda-arrow {
    transform: translateX(3px);
}

/* ═══════════════════════════════════
   Acerca de
   ═══════════════════════════════════ */

.hp-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.hp-about-card {
    border-radius: 12px;
    border: 1px solid var(--sp-border);
    background: #fff;
    overflow: hidden;
    transition: var(--sp-transition);
}

.hp-about-card:hover {
    box-shadow: 0 8px 24px rgba(77, 20, 37, 0.08);
    transform: translateY(-2px);
}

.hp-about-card-top {
    height: 4px;
    background: var(--accent, var(--sp-secondary));
}

.hp-about-card-content {
    padding: 1.3rem 1.15rem;
}

.hp-about-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fdf0f3;
    color: var(--sp-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.hp-about-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-text);
    line-height: 1.3;
}

.hp-about-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--sp-muted);
}

/* ═══════════════════════════════════
   Reutilización sp-
   ═══════════════════════════════════ */

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

.sp-empty i {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
    opacity: 0.6;
}

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

/* ═══════════════════════════════════
   Animaciones de entrada
   ═══════════════════════════════════ */

.hp-hero {
    animation: hp-hero-in 0.6s ease both;
}

@keyframes hp-hero-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hp-animate {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-stagger-item {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-stagger-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════
   Responsive
   ═══════════════════════════════════ */

@media (max-width: 992px) {
    .hp-shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-hero-stats {
        flex-wrap: wrap;
        border-radius: 14px;
        justify-content: center;
        gap: 0.2rem;
    }

    .hp-hero-stat-sep {
        display: none;
    }

    .hp-hero-stat {
        padding: 0.3rem 0.6rem;
    }
}

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

    .hp-hero {
        padding: 2rem 1rem 1.6rem;
        border-radius: 10px;
    }

    .hp-hero-escudo {
        width: 64px;
    }

    .hp-hero-stats {
        padding: 0.5rem 0.8rem;
    }

    .hp-hero-stat {
        font-size: 0.72rem;
    }

    .hp-section {
        padding: 1.1rem;
        border-radius: 10px;
    }

    .hp-section-subtitle {
        padding-left: 0;
    }

    .hp-shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .hp-about-grid {
        grid-template-columns: 1fr;
    }

    .hp-session-card {
        padding: 0.7rem 0.5rem;
    }

    .hp-session-date-block {
        width: 48px;
    }

    .hp-session-day {
        font-size: 1.4rem;
    }

    .hp-session-title {
        font-size: 0.87rem;
    }
}

@media (max-width: 480px) {
    .hp-hero-title {
        font-size: 1.2rem;
    }

    .hp-hero-subtitle {
        font-size: 0.8rem;
    }

    .hp-shortcut-desc {
        display: none;
    }

    .hp-session-connector {
        display: none;
    }

    .hp-session-card {
        border-bottom: 1px solid var(--sp-border);
        border-radius: 0;
    }

    .hp-session-card:last-child {
        border-bottom: none;
    }
}
