/* Modern Mobile-First Design System */
:root {
    /* Rich, vibrant seasonal theme (Bread, Vine, Grapes hints) */
    --bg-base: #FAF9F6;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #FAF9F6 100%);

    --text-primary: #2E2E2E;
    --text-secondary: #5E6C84;

    /* Elegant wine/burgundy for accents */
    --accent-color: #FF6B6B;
    --accent-hover: #ff5252;

    /* Classic Gold for headers */
    --accent-secondary: #4F6D4F;

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 30px rgba(139, 38, 53, 0.05);
    --shadow-card: 0 4px 20px rgba(139, 38, 53, 0.08);

    --radius-lg: 16px;
    --radius-pill: 50px;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Lato', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    /* Gradiente de abajo hacia arriba sobre la imagen de fondo */
    background-image:
        linear-gradient(to top, rgba(250, 249, 246, 1) 0%, rgba(250, 249, 246, 0.2) 60%),
        url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container::before {
    content: '';
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border: 1px solid rgba(139, 38, 53, 0.15);
    pointer-events: none;
    z-index: 10;
}

.content-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding-bottom: 2rem;
    padding-top: 4rem;
}

.logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 0.5rem;
    /* Usamos drop-shadow múltiple y más opaco para respetar la transparencia del PNG y hacerlo resaltar */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
}

.header-text {
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.scripture {
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.verse-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.verse-ref {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.month-badge {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    writing-mode: horizontal-tb;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--accent-secondary);
    text-transform: uppercase;
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-secondary);
    margin: 0.5rem 0;
    border-radius: 2px;
}

.date-time-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 1rem 0;
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.time {
    font-family: 'Lato', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Glassmorphism Cards */
.location-card,
.attendance-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.location-card:hover,
.attendance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.location-label {
    display: block;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.address {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.address strong {
    color: var(--text-primary);
    font-weight: 700;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    max-width: 250px;
}

.map-btn:hover {
    background: var(--accent-color);
    transform: scale(1.02);
}

.map-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Attendance App Styles */
.att-title {
    font-family: 'Cinzel', serif;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.att-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.att-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.att-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    flex: 1;
    max-width: 140px;
}

.att-btn.yes {
    background: #4caf50;
    color: white;
}

.att-btn.yes:hover {
    background: #43a047;
}

.att-btn.no {
    background: #e57373;
    color: white;
}

.att-btn.no:hover {
    background: #ef5350;
}

.att-select-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.att-select-group label {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.att-select {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--text-primary);
    outline: none;
}

.att-submit {
    margin-top: 1rem;
    padding: 1rem;
    width: 100%;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.att-submit:hover {
    background: var(--accent-hover);
}

/* Stats View */
.stats-bar-container {
    height: 24px;
    width: 100%;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    margin: 1rem 0;
}

.stats-bar-seg {
    height: 100%;
    transition: width 1s ease;
}

.items-list {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.items-list ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .month-badge {
        top: auto;
        left: 2rem;
        bottom: 4rem;
        transform: none;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 3rem;
        letter-spacing: 0.2em;
    }

    .container::before {
        top: 2rem;
        left: 2rem;
        right: 2rem;
        bottom: 2rem;
    }

    .content-card {
        max-width: 700px;
        padding-top: 0;
    }

    .main-content-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        width: 100%;
    }

    .info-side {
        text-align: left;
        align-items: flex-start;
        flex: 1;
    }

    .visual-side {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-text {
        align-self: flex-start;
    }

    .logo {
        max-width: 220px;
    }

    .main-title {
        font-size: 5.5rem;
        text-align: left;
    }

    .divider {
        align-self: flex-start;
        margin: 0.5rem 0;
    }

    .scripture {
        padding: 0;
    }

    .date-time-group {
        align-items: flex-start;
    }

    .date {
        font-size: 3.2rem;
    }
}