/* ═══════════════════════════════════════════
   MOM DIGITAL — Main Stylesheet
   ═══════════════════════════════════════════ */

:root {
    --red:        #C0392B;
    --red-dark:   #922B21;
    --red-mid:    #E74C3C;
    --rose:       #FADBD8;
    --rose-light: #FEF0EE;
    --cream:      #FFF8F7;
    --text:       #2C2020;
    --text-muted: #7A5555;
    --white:      #FFFFFF;
    --border:     rgba(192,57,43,0.15);
    --shadow:     0 4px 24px rgba(192,57,43,0.10);
    --radius:     14px;
    --tr:         0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
}

a { color: var(--red); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; }

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


/* ── Header ───────────────────────────────── */
.site-header {
    background: var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-link { flex-shrink: 0; transition: opacity var(--tr); }
.logo-link:hover { opacity: 0.85; }
.logo { height: 70px; width: auto; display: block; }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: all var(--tr);
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.65);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--tr);
}


/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--tr);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1;
}

.btn-white { background: white; color: var(--red); }
.btn-white:hover { background: var(--rose); color: var(--red-dark); }

.btn-outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.55);
    color: white;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: white; }

.btn-red { background: var(--red); color: white; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: white; }

.btn-sm { padding: 8px 20px; font-size: 0.78rem; }


/* ── Hero ─────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 55%, #D44333 100%);
    color: white;
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.12;
}

.hero h1 em {
    font-style: italic;
    font-weight: 400;
    opacity: 0.92;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.75;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }


/* ── Section base ─────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--rose-light); }
.section-red { background: var(--red); color: white; }

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

.section-label {
    display: inline-block;
    color: var(--red);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}
.section-red .section-label { color: rgba(255,255,255,0.68); }

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    color: var(--text);
    margin-bottom: 14px;
}
.section-red .section-title { color: white; }

.section-desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 14px auto 0;
    line-height: 1.8;
}
.section-red .section-desc { color: rgba(255,255,255,0.82); }

.divider {
    width: 52px;
    height: 3px;
    background: var(--red);
    margin: 14px auto 0;
    border-radius: 2px;
}
.section-red .divider { background: rgba(255,255,255,0.45); }


/* ── Cards ────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--tr), box-shadow var(--tr);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(192,57,43,0.18);
}

.card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--red);
}

.card-body { padding: 24px; }

.evento-tipo {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--rose);
    color: var(--red-dark);
    margin-bottom: 10px;
}

.card-date {
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.35;
}

.card-text {
    font-size: 0.91rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.card-footer {
    padding: 14px 24px 20px;
}

.card-local {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ── About section ────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .section-label { text-align: left; display: block; }

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text);
    margin-bottom: 18px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.85;
}

.about-highlights { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }

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

.highlight-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--rose);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-text strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 3px; }
.highlight-text span   { font-size: 0.87rem; color: var(--text-muted); }

.about-visual {
    background: linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 20px;
    padding: 44px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.about-visual::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -30px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.about-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.about-quote::before {
    content: '\201C';
    font-size: 6rem;
    color: rgba(255,255,255,0.18);
    position: absolute;
    top: -24px; left: -8px;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    pointer-events: none;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-item { text-align: center; }
.stat-num  { font-size: 2.1rem; font-weight: 700; display: block; }
.stat-label { font-size: 0.78rem; opacity: 0.78; text-transform: uppercase; letter-spacing: 0.07em; }


/* ── Page hero ────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    color: white;
    padding: 64px 0 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: 10px; }
.page-hero p { font-size: 1.04rem; opacity: 0.85; max-width: 500px; margin: 0 auto; }


/* ── Gallery ──────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(146,43,33,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--tr);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    text-align: center;
    padding: 16px;
}


/* ── Lightbox ─────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.75;
    transition: opacity var(--tr);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 7px 22px;
    border-radius: 50px;
    white-space: nowrap;
    max-width: 80vw;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ── Calendario ───────────────────────────── */
.calendario-list { display: flex; flex-direction: column; gap: 14px; }

.cal-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    align-items: center;
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--tr), box-shadow var(--tr);
}

.cal-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 28px rgba(192,57,43,0.15);
}

.cal-month { text-align: center; }

.cal-month-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
}

.cal-day {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-top: 2px;
}

.cal-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.cal-info p { font-size: 0.86rem; color: var(--text-muted); }


/* ── About Page ───────────────────────────── */
.content-block {
    background: white;
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.content-block h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--rose);
}

.content-block p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.85;
    font-size: 1.02rem;
}

.content-block p:last-child { margin-bottom: 0; }
.content-block strong { color: var(--text); }


/* ── Contact ──────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 14px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.8;
}

.contact-links { display: flex; flex-direction: column; gap: 16px; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    font-size: 0.94rem;
    transition: color var(--tr);
}

.contact-link:hover { color: var(--red); }

.contact-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--rose);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-form-box {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form-box h3 {
    font-size: 1.3rem;
    margin-bottom: 22px;
    color: var(--text);
}


/* ── Forms ────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: white;
    transition: border-color var(--tr), box-shadow var(--tr);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

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


/* ── Alerts ───────────────────────────────── */
.alert {
    padding: 13px 18px;
    border-radius: 9px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.alert-success { background: #D5F5E3; color: #1E8449; border: 1px solid #A9DFBF; }
.alert-error   { background: var(--rose); color: var(--red-dark); border: 1px solid #F1948A; }


/* ── Footer ───────────────────────────────── */
.site-footer {
    background: var(--red-dark);
    color: white;
    padding: 64px 0 32px;
    text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.footer-logo img { height: 80px; width: auto; margin: 0 auto; }

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-style: italic;
    opacity: 0.9;
}

.footer-sub {
    font-size: 0.82rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links { display: flex; gap: 24px; margin-top: 6px; }

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.86rem;
    transition: color var(--tr);
}

.footer-links a:hover { color: white; }

.footer-copy {
    font-size: 0.78rem;
    opacity: 0.45;
    margin-top: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.14);
    width: 100%;
}


/* ── Utilities ────────────────────────────── */
.text-center { text-align: center; }
.mt-4  { margin-top: 32px; }
.mt-2  { margin-top: 16px; }

.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 1.05rem; }

/* ── Fade-in animations ───────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
    .about-grid    { grid-template-columns: 1fr; gap: 40px; }
    .about-visual  { order: -1; }
    .contact-grid  { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--red-dark);
        flex-direction: column;
        padding: 16px 24px 20px;
        gap: 14px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.22);
        z-index: 200;
    }
    .main-nav.open { display: flex; }

    .section  { padding: 60px 0; }
    .hero     { padding: 64px 0 52px; }

    .cal-item { grid-template-columns: 70px 1fr; }
    .cal-item .btn { display: none; }

    .content-block { padding: 28px 22px; }
    .contact-form-box { padding: 24px; }
}
