:root {
    --cream: #FAF7F2;
    --warm-white: #F5F0E8;
    --sand: #E8E0D4;
    --stone: #9C9384;
    --earth: #6B5E4F;
    --bark: #3D3429;
    --ink: #1A1612;
    --gold: #C8A96E;
    --gold-light: #E4D5B0;
    --gold-dark: #9A7D45;
    --sage: #7A8B6F;
    --sage-light: #D4DED0;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 4px 24px rgba(26, 22, 18, 0.06);
    --shadow-md: 0 8px 40px rgba(26, 22, 18, 0.1);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(250, 247, 242, 0.95);
    box-shadow: 0 2px 20px rgba(26, 22, 18, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: var(--bark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--gold-dark);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--earth);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 100px;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--bark);
    background: var(--sand);
}

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

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--bark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--bark);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--sand);
    transition: var(--transition);
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(122, 139, 111, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(200, 169, 110, 0.12);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    animation: fadeDown 0.8s ease both;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--bark);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s ease 0.15s both;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-dark);
}

.hero p {
    font-size: 1.1rem;
    color: var(--earth);
    max-width: 520px;
    margin: 0 auto 40px;
    animation: fadeUp 0.8s ease 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.45s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--bark);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--bark);
    border: 1.5px solid var(--sand);
}

.btn-ghost:hover {
    border-color: var(--gold);
    background: rgba(200, 169, 110, 0.06);
}

/* ─── SECTIONS ─── */
section {
    padding: 100px 24px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--bark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--earth);
    max-width: 560px;
    line-height: 1.75;
}

.section-header {
    margin-bottom: 56px;
}

.divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 20px 0;
    border-radius: 2px;
}

/* ─── ABOUT ─── */
#quienes-somos {
    background: var(--warm-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.value-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.88rem;
    color: var(--stone);
    line-height: 1.6;
}

.about-image {
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, var(--sand) 0%, var(--gold-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '✦';
    font-size: 6rem;
    color: rgba(200, 169, 110, 0.3);
}

.about-image .float-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.float-badge .fb-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: var(--gold-dark);
}

.float-badge .fb-label {
    font-size: 0.72rem;
    color: var(--stone);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── MINISTRY CARDS ─── */
.ministry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.ministry-card {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 280px;
}

.ministry-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.ministry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.ministry-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: var(--transition);
}

.ministry-card:hover::after {
    opacity: 1;
}

.card-emoji {
    width: 56px;
    height: 56px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.ministry-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--bark);
    margin-bottom: 8px;
}

.ministry-card .card-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.ministry-card p {
    font-size: 0.9rem;
    color: var(--stone);
    line-height: 1.7;
}

.ministry-card .card-schedule,
.ministry-card .card-cta-old {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--sand);
    font-size: 0.82rem;
    color: var(--earth);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── ALABANZA / SONGS ─── */
#alabanzas {
    background: var(--bark);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

#alabanzas::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

#alabanzas .section-tag {
    color: var(--gold-light);
}

#alabanzas .section-title {
    color: var(--cream);
}

#alabanzas .section-desc {
    color: var(--stone);
}

#alabanzas .divider {
    background: var(--gold-dark);
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
}

.song-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(200, 169, 110, 0.2);
}

.song-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.song-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    min-width: 28px;
}

.song-info {
    flex: 1;
}

.song-info h4 {
    font-size: 0.95rem;
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 2px;
}

.song-info p {
    font-size: 0.72rem;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.song-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.songs-loading {
    text-align: center;
    padding: 40px;
    color: var(--stone);
    font-size: 0.88rem;
}

.songs-empty {
    text-align: center;
    padding: 40px;
    color: var(--stone);
    font-size: 0.88rem;
    font-style: italic;
}

/* ─── ENSEÑANZAS ─── */
#ensenanzas {
    background: var(--warm-white);
}

.teach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.teach-embed {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.teach-embed iframe {
    border-radius: 12px;
}

.teach-text p {
    color: var(--earth);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ─── ANUNCIOS (image cards) ─── */
.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.anuncio-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.anuncio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.anuncio-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.anuncio-img-icon {
    font-size: 3rem;
    filter: grayscale(0.2);
    opacity: 0.9;
}

/* When real images are used, replace the gradient+icon with:
       .anuncio-img { background-image: url('...'); background-size: cover; background-position: center; }
       and remove .anuncio-img-icon */

.anuncio-body {
    padding: 20px 24px 24px;
}

.anuncio-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 6px;
}

.anuncio-body p {
    font-size: 0.85rem;
    color: var(--stone);
    line-height: 1.6;
}

.anuncio-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.badge-new {
    background: rgba(122, 139, 111, 0.15);
    color: var(--sage);
}

.badge-important {
    background: rgba(200, 169, 110, 0.2);
    color: var(--gold-dark);
}

/* ─── CONTACT ─── */
#contacto {
    background: var(--warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ci-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ci-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.ci-item h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 4px;
}

.ci-item p,
.ci-item a {
    font-size: 0.88rem;
    color: var(--stone);
    text-decoration: none;
    line-height: 1.6;
}

.ci-item a:hover {
    color: var(--gold-dark);
}

.contact-form {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--bark);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--ink);
    transform: translateY(-1px);
}

.ministry-card {
    cursor: pointer;
}

.card-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--sand);
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-weight: 600;
    transition: var(--transition);
}

.ministry-card:hover .card-cta {
    color: var(--bark);
}

.anuncio-card {
    cursor: pointer;
}

/* ─── MODAL ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 18, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 10001;
    background: var(--cream);
    border-radius: 20px;
    width: calc(100% - 40px);
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(26, 22, 18, 0.25);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--stone);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: var(--sand);
    color: var(--bark);
}

.modal-header {
    padding: 36px 32px 0;
    text-align: center;
}

.modal-emoji {
    width: 64px;
    height: 64px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.modal-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(200, 169, 110, 0.12);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: var(--bark);
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 24px 32px;
}

.modal-body>p {
    font-size: 0.92rem;
    color: var(--earth);
    line-height: 1.75;
    margin-bottom: 20px;
}

.modal-details {
    background: var(--warm-white);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.md-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.md-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stone);
}

.md-value {
    font-size: 0.88rem;
    color: var(--bark);
    font-weight: 500;
}

.modal-note {
    font-size: 0.85rem !important;
    color: var(--stone) !important;
    font-style: italic;
    padding-left: 16px;
    border-left: 2px solid var(--gold-light);
}

.modal-footer {
    padding: 0 32px 32px;
    text-align: center;
}

.modal-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Scrollbar inside modal */
.modal::-webkit-scrollbar {
    width: 6px;
}

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

.modal::-webkit-scrollbar-thumb {
    background: var(--sand);
    border-radius: 3px;
}

/* ─── EDITORIAL ─── */
#editorial {
    background: var(--warm-white);
}

.editorial-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    max-width: 760px;
}

.editorial-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: var(--stone);
}

.editorial-month {
    font-weight: 600;
    color: var(--gold-dark);
    background: rgba(200, 169, 110, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
}

.editorial-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--bark);
    margin-bottom: 20px;
}

.editorial-body p {
    font-size: 0.92rem;
    color: var(--earth);
    line-height: 1.8;
    margin-bottom: 14px;
}

.editorial-verse {
    font-style: italic;
    color: var(--gold-dark) !important;
    padding-left: 16px;
    border-left: 2px solid var(--gold);
    margin-top: 20px !important;
}

/* ─── CALENDAR ─── */
.calendar-wrap {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    max-width: 480px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--bark);
}

.cal-nav {
    width: 36px;
    height: 36px;
    border: 1px solid var(--sand);
    background: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--earth);
    transition: var(--transition);
}

.cal-nav:hover {
    background: var(--warm-white);
    border-color: var(--gold);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-days span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    border-radius: 10px;
    cursor: default;
    color: var(--earth);
    transition: var(--transition);
    position: relative;
}

.cal-day.today {
    background: var(--bark);
    color: var(--cream);
    font-weight: 700;
}

.cal-day.has-event {
    cursor: pointer;
    font-weight: 600;
}

.cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.cal-day.has-event.type-group::after {
    background: var(--sage);
}

.cal-day.has-event:hover {
    background: rgba(200, 169, 110, 0.12);
}

.cal-day.other-month {
    color: var(--sand);
}

.cal-event-detail {
    margin-top: 16px;
    padding: 16px;
    background: var(--warm-white);
    border-radius: 12px;
}

.cal-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cal-detail-header span {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--bark);
}

.cal-detail-close {
    background: none;
    border: none;
    color: var(--stone);
    cursor: pointer;
    font-size: 0.9rem;
}

#calDetailBody p {
    font-size: 0.85rem;
    color: var(--earth);
    line-height: 1.6;
    margin-bottom: 6px;
}

.cal-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--stone);
}

.cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ─── PALABRA ─── */
#palabra {
    background: var(--warm-white);
}

.palabra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.palabra-block {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.pb-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.pb-icon {
    width: 48px;
    height: 48px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.pb-header h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--bark);
}

.pb-subtitle {
    font-size: 0.78rem;
    color: var(--stone);
}

.cursos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.curso-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--warm-white);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.curso-item:hover {
    background: var(--sand);
}

.curso-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--gold-dark);
    min-width: 28px;
}

.curso-item h4 {
    font-size: 0.88rem;
    color: var(--bark);
    margin-bottom: 2px;
}

.curso-item p {
    font-size: 0.75rem;
    color: var(--stone);
}

.curso-arrow {
    color: var(--gold);
    margin-left: auto;
}

.pred-embeds {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pred-embed-item h4 {
    font-size: 0.82rem;
    color: var(--earth);
    margin-bottom: 10px;
}

.yt-placeholder {
    background: var(--warm-white);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px dashed var(--sand);
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.88rem;
}

.yt-placeholder:hover {
    background: var(--sand);
}

/* ─── FAENAS ─── */
.faenas-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.faenas-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.faenas-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--bark);
    margin-bottom: 4px;
}

.faenas-date {
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 16px;
}

.faenas-card>p {
    font-size: 0.9rem;
    color: var(--earth);
    line-height: 1.7;
}

.faenas-participants {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sand);
    text-align: left;
}

.faenas-participants h4 {
    font-size: 0.82rem;
    color: var(--bark);
    margin-bottom: 10px;
}

.faenas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faena-person {
    font-size: 0.78rem;
    color: var(--stone);
    background: white;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--sand);
}

/* ─── APORTACIONES ─── */
#aportaciones {
    background: var(--warm-white);
}

.aportaciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.aport-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.aport-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.aport-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.aport-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--bark);
    margin-bottom: 8px;
}

.aport-card p {
    font-size: 0.82rem;
    color: var(--stone);
    line-height: 1.6;
    font-style: italic;
}

.bank-info {
    display: flex;
    justify-content: center;
}

.bank-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    max-width: 440px;
    width: 100%;
}

.bank-card h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--bark);
    margin-bottom: 20px;
}

.bank-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--sand);
}

.bank-label {
    font-size: 0.8rem;
    color: var(--stone);
    font-weight: 500;
}

.bank-value {
    font-size: 0.85rem;
    color: var(--bark);
    font-weight: 600;
}

.bank-note {
    font-size: 0.78rem;
    color: var(--stone);
    margin-top: 16px;
    font-style: italic;
}

/* ─── MODAL SUBSECTIONS ─── */
.modal-subsections {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-sub {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--warm-white);
    border-radius: 10px;
}

.modal-sub-icon {
    font-size: 1.1rem;
    min-width: 28px;
    text-align: center;
    padding-top: 2px;
}

.modal-sub strong {
    font-size: 0.85rem;
    color: var(--bark);
    display: block;
    margin-bottom: 2px;
}

.modal-sub p {
    font-size: 0.78rem;
    color: var(--stone);
    line-height: 1.5;
    margin: 0;
}

/* ─── FOOTER ─── */
footer {
    background: var(--ink);
    color: rgba(250, 247, 242, 0.5);
    padding: 48px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--gold);
}

footer p {
    font-size: 0.78rem;
    line-height: 1.7;
}

.footer-legal {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-grid,
    .palabra-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ministry-card {
        flex: 1 1 100%;
        min-width: unset;
    }

    .anuncios-grid {
        grid-template-columns: 1fr;
    }

    .aportaciones-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 72px 20px;
    }

    .about-image {
        aspect-ratio: 16/9;
    }
}

/* ─── Install Banner ─── */
.install-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(26, 22, 18, 0.18);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: calc(100% - 32px);
    max-width: 480px;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.install-banner.show {
    bottom: 24px;
}

.ib-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ib-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.ib-text {
    display: flex;
    flex-direction: column;
}

.ib-text strong {
    font-size: 0.88rem;
    color: var(--bark);
}

.ib-text span {
    font-size: 0.75rem;
    color: var(--stone);
}

.ib-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ib-btn-install {
    padding: 10px 20px;
    background: var(--bark);
    color: var(--cream);
    border: none;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ib-btn-install:hover {
    background: var(--ink);
}

.ib-btn-dismiss {
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--stone);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
}

.ib-btn-dismiss:hover {
    color: var(--bark);
}

/* ─── Offline Toast ─── */
.offline-toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: var(--bark);
    color: var(--gold-light);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(26, 22, 18, 0.2);
    transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.offline-toast.show {
    top: 84px;
}

@media (max-width: 500px) {
    .install-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }

    .ib-content {
        justify-content: center;
    }

    .ib-actions {
        justify-content: center;
    }
}

.cancion-letra {
    font-weight: 100;
}