/* modern.css - Hoja de Estilos para el Rediseño de la Parroquia La Merced */

:root {
    --primary: #98262b;
    --primary-hover: #b13337;
    --primary-light: #fdf2f2;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --border-color: #eef0f2;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}

html {
    font-size: 115%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Header & Top Navigation Bar */
.navbar-modern {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.navbar-brand-modern img {
    height: 48px;
}

.nav-link-modern {
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-link-modern:hover, 
.nav-link-modern.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}

/* Cards & Layout Grid */
.modern-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.modern-card-primary {
    border-top: 5px solid var(--primary);
}

.modern-card h3, .modern-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 0;
}

/* Hero Section */
.hero-welcome {
    background: #ffffff;
    color: var(--text-color);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    text-align: center;
}

.hero-welcome h1 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-weight: 700;
    font-size: 2.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
}

.hero-welcome p {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Quick Access / Widgets */
.widget-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.widget-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.widget-card h4 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333333;
    font-size: 1.35rem;
}

.widget-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Buttons */
.btn-modern-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 20px;
    transition: background-color 0.2s;
}

.btn-modern-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-modern-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 700;
    border-radius: 6px;
    padding: 8px 18px;
    transition: all 0.2s;
}

.btn-modern-outline:hover {
    background-color: var(--primary);
    color: #ffffff !important;
}

/* Footer */
.footer-modern {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 60px;
    font-size: 1.05rem;
    color: var(--text-muted);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

/* Alert Banner */
.alert-banner-modern {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #b78103;
    font-weight: 500;
}

.alert-banner-modern a {
    color: #b78103;
    font-weight: bold;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-welcome h1 {
        font-size: 1.7rem;
    }
    .hero-welcome p {
        font-size: 1rem;
    }
    .widget-card {
        min-height: auto;
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    .text-right-desktop {
        text-align: right !important;
    }
}

@media (min-width: 768px) {
    .widgets-flex-row {
        display: flex;
        flex-wrap: wrap;
    }
    .widgets-flex-row > div {
        display: flex;
        flex-direction: column;
    }
    .widgets-flex-row .widget-card {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* Floating Scroll Button on Hero Image */
.hero-scroll-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    border: 2px solid #ffffff;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 30px;
    padding: 10px 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.hero-scroll-btn:hover {
    background-color: var(--primary-hover);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
    .hero-welcome {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .hero-welcome h1 {
        font-size: 1.6rem !important;
        margin-bottom: 5px !important;
    }
    
    .hero-welcome p {
        display: none !important;
    }

    .hero-scroll-btn {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        display: inline-block;
        margin: 15px auto 0 auto;
    }
    
    .hero-scroll-btn:hover {
        transform: translateY(-2px);
    }
}
