/* ============================================
   HOME.CSS - Adoración Perpetua Bilbao
   Vanilla CSS basado en diseño Stitch
   ============================================ */

/* --- Variables --- */
:root {
    --primary: #8B6D31;
    --primary-light: rgba(139, 109, 49, 0.1);
    --primary-20: rgba(139, 109, 49, 0.2);
    --bg-light: #FDFCF8;
    --accent-red: #C53030;
    --accent-green: #38A169;
    --soft-green: #F0FFF4;
    --soft-red: #FFF5F5;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --white: #FFFFFF;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body.home-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--slate-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Typography --- */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Container --- */
.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .home-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .home-container {
        padding: 0 2rem;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.home-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
}

.home-nav .nav-inner-wrapper {
    display: flex;
    flex-direction: column;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.75rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.nav-brand img {
    height: 3.5rem;
    width: 3.5rem;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary-20);
    box-shadow: var(--shadow-sm);
}

.nav-brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.nav-slogan {
    width: 100%;
    text-align: center;
    order: 3;
    padding: 0.35rem 0;
    border-top: 1px dashed var(--slate-200);
    border-bottom: 1px dashed var(--slate-200);
}

.nav-slogan p {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-600);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-links a span.material-symbols-outlined {
    color: var(--primary);
    transition: transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover span.material-symbols-outlined {
    transform: scale(1.15);
}

/* hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 51;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.nav-mobile.is-open {
    display: block;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-overlay.is-open {
    display: block;
}

.nav-mobile a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-700);
    text-decoration: none;
    transition: background 0.2s;
}

.nav-mobile a span.material-symbols-outlined {
    color: var(--primary);
}

.nav-mobile a:hover {
    background: var(--slate-50);
    color: var(--primary);
}

.nav-bottom-row {
    display: none;
    border-top: 1px solid var(--slate-200);
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    width: 100%;
}

@media (min-width: 768px) {
    .nav-inner-wrapper {
        padding-top: 0.8rem;
        padding-bottom: 0.6rem;
    }

    .nav-top-row {
        flex-wrap: nowrap;
        gap: 2rem;
    }

    .nav-slogan {
        width: auto;
        text-align: right;
        order: unset;
        padding: 0;
        border: none;
    }

    .nav-slogan p {
        font-size: 0.85rem;
    }

    .nav-bottom-row {
        display: block;
    }

    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .nav-brand-text h1 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .nav-brand img {
        height: 2.75rem;
        width: 2.75rem;
    }
    .nav-brand-text h1 {
        font-size: 0.95rem;
    }
    .nav-slogan p {
        font-size: 0.73rem;
    }
}

/* ============================================
   FRASE (compact)
   ============================================ */
.frase-section {
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    padding: 1rem 0;
}

.frase-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.frase-icon {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.frase-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.4;
}

.frase-author {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .frase-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .frase-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   MAIN LAYOUT (2/3 + 1/3 grid)
   ============================================ */
.home-main {
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .home-main {
        padding: 0.75rem 0;
    }
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .home-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-width: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

.section-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 500;
    font-style: italic;
    font-size: 0.9rem;
}

.section-desc {
    color: var(--slate-500);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================
   CALENDAR GRID (CSS Grid)
   ============================================ */
.cal-wrapper {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cal-legend {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate-600);
}

.cal-legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
}

.cal-legend-dot.green {
    background: var(--accent-green);
}

.cal-legend-dot.red {
    background: var(--accent-red);
}

.cal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* custom scrollbar */
.cal-scroll::-webkit-scrollbar {
    height: 6px;
}

.cal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cal-scroll::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 10px;
}

.cal-grid {
    display: grid;
    grid-template-columns: 55px repeat(7, 1fr);
    min-width: 520px;
}

@media (max-width: 767px) {
    .cal-grid {
        grid-template-columns: 40px repeat(7, 1fr);
        min-width: 100%;
    }

    .cal-header-cell {
        font-size: 0.55rem;
        padding: 0.4rem 0.1rem;
    }

    .cal-header-cell:first-child {
        font-size: 0.5rem;
    }

    .cal-hour-label {
        font-size: 0.55rem;
        padding: 0.4rem 0.1rem;
    }

    .cal-cell {
        min-height: 1.75rem;
    }

    .cal-cell-inner {
        min-height: 1.5rem;
    }

    .cal-cell-inner .cal-icon {
        font-size: 0.75rem;
    }

    .cal-cell-inner.priest {
        font-size: 0.55rem;
        padding: 0.15rem 0.05rem;
    }
}

.cal-header-cell {
    padding: 0.6rem 0.25rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--slate-700);
    background: rgba(248, 250, 252, 0.5);
    border-bottom: 1px solid var(--slate-200);
}

.cal-header-cell:first-child {
    font-size: 0.6rem;
    color: var(--slate-400);
    text-transform: uppercase;
}

.cal-header-cell.weekend {
    color: var(--primary);
}

.cal-hour-label {
    padding: 0.4rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--slate-400);
    background: rgba(248, 250, 252, 0.3);
    border-right: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-cell {
    padding: 2px;
    border-bottom: 1px solid var(--slate-100);
    min-height: 2.25rem;
}

.cal-cell-inner {
    height: 100%;
    min-height: 2rem;
    width: 100%;
    border-radius: 4px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s;
    cursor: default;
}

.cal-cell-inner:hover {
    filter: brightness(0.95);
}

.cal-cell-inner.covered {
    background: var(--soft-green);
    border-color: rgba(56, 161, 105, 0.2);
    color: var(--accent-green);
}

.cal-cell-inner.needs {
    background: var(--soft-red);
    border-color: rgba(197, 48, 48, 0.2);
    color: var(--accent-red);
}

.cal-cell-inner .cal-icon {
    font-size: 0.85rem;
    opacity: 0.4;
}

/* --- Sacerdotes calendar --- */
.cal-cell-inner.priest {
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.3rem 0.15rem;
    cursor: default;
    line-height: 1.1;
}

.cal-cell-priest {
    padding: 2px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* --- Ajustes específicos para el calendario de confesiones (30 min) --- */
.cal-grid--confesiones {
    position: relative;
}

.cal-grid--confesiones .cal-cell {
    border-bottom: none;
    min-height: 1.1rem;
}

.cal-cell--half-border {
    border-bottom: 1px dashed rgba(226, 232, 240, 0.95);
}

.cal-cell--full-border {
    border-bottom: 1px solid rgba(226, 232, 240, 1);
}

.cal-grid--confesiones .cal-cell-priest {
    border-bottom: none;
    height: 100%;
    z-index: 2;
}

.cal-grid--confesiones .cal-cell-inner.priest {
    padding: 0.15rem 0.1rem;
    font-size: 0.58rem;
    line-height: 1;
    min-height: 1rem;
}

.cal-grid--confesiones .cal-hour-label {
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    height: 100%;
    align-self: center;
    font-size: 0.6rem;
    padding: 0.2rem 0.15rem;
}

@media (max-width: 767px) {
    .cal-grid--confesiones .cal-cell {
        min-height: 0.85rem;
    }
    .cal-grid--confesiones .cal-cell-inner.priest {
        font-size: 0.5rem;
        padding: 0.08rem 0.05rem;
    }
    .cal-grid--confesiones .cal-hour-label {
        font-size: 0.5rem;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Card dark (obispo) --- */
.sidebar-card-dark {
    background: var(--slate-900);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
}

.sidebar-card-dark h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.sidebar-card-dark ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-card-dark li {
    border-left: 2px solid rgba(139, 109, 49, 0.4);
    padding-left: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.sidebar-card-dark li p {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--slate-300);
    line-height: 1.5;
}

/* --- Card light --- */
.sidebar-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.sidebar-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.sidebar-card .card-desc {
    font-size: 0.75rem;
    color: var(--slate-500);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-card li {
    background: var(--slate-50);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.sidebar-card li p {
    font-size: 0.85rem;
    color: var(--slate-700);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* --- Noticias card --- */
.sidebar-card-noticias {
    background: rgba(139, 109, 49, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-20);
}

.sidebar-card-noticias h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.noticias-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.noticia-item {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.noticia-item:hover h4 {
    color: var(--primary);
}

.noticia-item h4 {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.3;
    transition: color 0.2s;
    color: var(--slate-800);
}

.noticia-item .noticia-date {
    font-size: 0.625rem;
    color: var(--slate-500);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.noticia-item+.noticia-item {
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 109, 49, 0.1);
}

.btn-ver-todas {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-ver-todas:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Green accent --- */
.sidebar-card h3.green {
    color: var(--accent-green);
}

.sidebar-card li.green-border {
    border-left: 4px solid rgba(56, 161, 105, 0.3);
}

/* ============================================
   DONACIONES
   ============================================ */
.donaciones-section {
    margin-bottom: 2rem;
}

.donaciones-card {
    background: var(--white);
    border: 2px solid var(--primary-20);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .donaciones-card {
        flex-direction: row;
    }
}

.donaciones-icon {
    background: var(--primary);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.donaciones-icon .material-symbols-outlined {
    font-size: 1.75rem;
}

.donaciones-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .donaciones-text {
        text-align: left;
    }
}

.donaciones-text h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-900);
    margin-bottom: 0.35rem;
}

.donaciones-text p {
    color: var(--slate-600);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 42rem;
}

.donaciones-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 640px) {
    .donaciones-accounts {
        flex-direction: row;
        width: auto;
    }
}

.don-account {
    background: var(--slate-50);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    flex: 1;
}

.don-account .don-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.2rem;
}

.don-account code {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-800);
}

.don-account.bizum code {
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.home-footer {
    background: var(--slate-900);
    color: var(--white);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-brand img {
    height: 3rem;
    width: 3rem;
    filter: grayscale(1) brightness(2);
}

.footer-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-desc {
    color: var(--slate-400);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-title {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--slate-400);
    font-size: 0.85rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.15rem;
}

.footer-contact a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.footer-nav-grid a {
    color: var(--slate-400);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-grid a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--slate-500);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-legal-separator {
    color: var(--slate-600);
    font-size: 0.75rem;
}

.footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
    color: var(--white);
}


/* ============================================
   ORACIÓN ALEATORIA
   ============================================ */
.oracion-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.oracion-card::before {
    content: 'format_quote';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    top: -1rem;
    right: 1rem;
    font-size: 8rem;
    color: var(--primary-light);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.oracion-card .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.oracion-content {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: var(--slate-700);
    line-height: 1.7;
}

.oracion-content p {
    margin-bottom: 1rem;
}

.oracion-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .oracion-card {
        padding: 1.5rem;
    }
    
    .oracion-content {
        font-size: 0.95rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary {
    color: var(--primary);
}

.text-green {
    color: var(--accent-green);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   CALENDAR LEGEND LEFT ALIGNED
   ============================================ */
.cal-legend--left {
    justify-content: space-between;
}

/* ============================================
   BTN APUNTATE
   ============================================ */
.btn-apuntate {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    background: var(--accent-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.35);
    animation: pulse-apuntate 2.5s ease-in-out infinite;
}

.btn-apuntate:hover {
    background: #a12828;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(197, 48, 48, 0.45);
}

@keyframes pulse-apuntate {
    0%, 100% { box-shadow: 0 2px 8px rgba(197, 48, 48, 0.35); }
    50% { box-shadow: 0 2px 16px rgba(197, 48, 48, 0.55); }
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.is-open {
    display: flex;
}

/* ============================================
   MODAL ADORADOR
   ============================================ */
.modal-adorador {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 580px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modal-in 0.3s ease-out;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--slate-100);
    border: none;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-500);
    transition: all 0.2s;
    z-index: 2;
}

.modal-close:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

/* --- Header --- */
.modal-adorador-header {
    text-align: center;
    padding: 0.8rem 2rem 0.3rem;
    border-bottom: 1px solid var(--slate-100);
}

.modal-adorador-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.2rem;
}

.modal-adorador-header p {
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* --- Info blocks --- */
.modal-adorador-info {
    padding: 0.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: var(--slate-600);
    line-height: 1.4;
    background: var(--slate-50);
    padding: 0.4rem 0.75rem 0.4rem 1.15rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.modal-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary);
}

.modal-info-item .material-symbols-outlined {
    font-size: 1.15rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* --- Form --- */
.modal-adorador form {
    padding: 0.7rem 2rem 1.25rem;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 520px) {
    .modal-form-grid {
        grid-template-columns: 1fr;
    }
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.modal-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-field label .required {
    color: var(--accent-red);
}

.modal-field input,
.modal-field select {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: var(--slate-800);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.modal-field input:focus,
.modal-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 109, 49, 0.12);
}

.modal-field input::placeholder {
    color: var(--slate-400);
}

/* --- Legal --- */
.modal-legal {
    margin-top: 0.45rem;
    margin-bottom: 0.65rem;
}

.modal-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--slate-600);
    line-height: 1.5;
    cursor: pointer;
}

.modal-checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.modal-checkbox-label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.modal-checkbox-label a:hover {
    color: #6b5524;
}

/* --- Actions --- */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.modal-btn-cancel {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--slate-200);
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

.modal-btn-submit {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(139, 109, 49, 0.3);
}

.modal-btn-submit:hover {
    background: #6b5524;
    box-shadow: 0 4px 14px rgba(139, 109, 49, 0.4);
}

.modal-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Messages --- */
.modal-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.modal-msg--ok {
    background: var(--soft-green);
    color: #276749;
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.modal-msg--error {
    background: var(--soft-red);
    color: #9B2C2C;
    border: 1px solid rgba(197, 48, 48, 0.3);
}

/* --- Spin animation --- */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- Modal scrollbar --- */
/* --- Modal scrollbar --- */
.modal-adorador::-webkit-scrollbar {
    width: 6px;
}

.modal-adorador::-webkit-scrollbar-track {
    background: transparent;
}

.modal-adorador::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 10px;
}