:root {
    --primary-green: #3A4F41; /* Dark green from hero-bg.jpg (aprox) */
    --accent-cream: #F0EBE3; /* Creamy white from flowers/logo (aprox) */
    --custom-gold: #B08D57; /* A subtle, elegant gold for accents */
    --dark-text: #2c2c2c;
    --light-text: #555555;
    --bg-light-custom: #F8F7F5; /* Slightly warmer than pure white */
    --white: #ffffff;
    --navbar-bg: rgba(248, 247, 245, 0.85); /* var(--bg-light-custom) with alpha */
    --navbar-bg-scrolled: rgba(248, 247, 245, 0.97);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
    font-weight: 500; /* Default for Playfair */
}

/* Navigation */
.navbar-custom {
    min-height: 100px;
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar-custom.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.navbar-custom .navbar-brand img {
    max-height: 70px; 
    width: auto;
    transition: transform 0.4s ease;
}

.navbar-custom .navbar-brand:hover img {
    transform: scale(1.03);
}

.navbar-custom .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--custom-gold);
    transition: width 0.3s ease-in-out;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { /* Added active state */
    color: var(--custom-gold) !important;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { /* Added active state */
    width: 100%;
}


/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--accent-cream); /* Text color on hero */
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

/* Hero Arquidiocesis Logo */
.hero-arquidiocesis-logo {
    max-height: 115px; /* Adjust as needed */
    filter: brightness(0) invert(1);
    opacity: 0.8;
}
.arquidiocesis-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem; /* Reduje ligeramente para mejor jerarquía */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-subtitle {
    font-size: 1.5rem; /* Tamaño más adecuado para subtítulo */
    margin-bottom: 1.5rem;
}

.hero-quote {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}

.bible-ref {
    font-size: 1rem;
    font-style: normal;
    opacity: 0.85;
    vertical-align: middle;
    margin-left: 8px;
}

/* Ajuste para el divisor */
.hero-divider {
    margin: 1rem auto 1.5rem;
    height: 1px;
    width: 80px;
    background: rgba(240, 235, 227, 0.5);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-green); /* Titles in brand green */
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
.brand-icon-divider {
    margin: 2rem 0;
}
.brand-icon-divider.text-start { margin-left:0; margin-right:0; }


/* Premium Card Design */
.premium-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--custom-gold);
    opacity: 0.9;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--custom-gold);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem; /* Playfair */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-green);
}
.card-text {
    color: var(--light-text);
    font-size: 0.95rem;
}
.premium-card ul li {
    color: var(--light-text);
    font-size: 0.95rem;
}
.premium-card .text-custom-gold { color: var(--custom-gold); }


/* Statistics */
.bg-light-custom { background-color: var(--bg-light-custom); }


/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8) 70%);
    color: var(--white);
    padding: 1.2rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.gallery-overlay h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.25rem; }
.gallery-overlay p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0;}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Gallery Lightbox */
.lightbox-container {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.92);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    animation: zoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: #bbb;
    transform: scale(1.1);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* CTA Section */
.cta-section {
    background: url('../images/g14702.jpg') center/cover no-repeat fixed;
    color: var(--accent-cream);
    text-align: center;
}
.cta-section .section-title { color: var(--accent-cream); } /* Title white on green */
.cta-section .lead { opacity: 0.9; }


/* Buttons */
.btn-premium {
    background: var(--custom-gold);
    color: var(--white);
    border: 1px solid var(--custom-gold);
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(176, 141, 87, 0.2);
}

.btn-premium:hover {
    background: #a5804b; /* Darker gold */
    border-color: #a5804b;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(176, 141, 87, 0.3);
}

.btn-premium-outline {
    background: transparent;
    color: var(--accent-cream); /* For use on dark backgrounds like CTA */
    border: 2px solid var(--accent-cream);
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium-outline:hover {
    background: var(--accent-cream);
    color: var(--primary-green); /* Text green on hover */
    transform: translateY(-3px);
}


/* Contact Section */
.contact-info-card { background-color: var(--bg-light-custom); }
.contact-info-card::before { background: var(--primary-green); }
.contact-info-card a { 
    color: var(--custom-gold); 
    text-decoration: none; 
    transition: color 0.3s;
}
.contact-info-card a:hover { color: var(--primary-green); }


/* Form Styling */
.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text);
}
.form-control, .form-select {
    background-color: var(--bg-light-custom);
    border: 1px solid #ddd; /* Softer border */
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--custom-gold);
    box-shadow: 0 0 0 0.2rem rgba(176, 141, 87, 0.2);
    background-color: var(--white);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: rgba(240, 235, 227, 0.8); /* --accent-cream with alpha */
    padding: 4rem 0 2rem;
}
.footer .footer-logo {
    max-height: 75px;
    filter: brightness(0) invert(1); /* Makes dark logo white */
    opacity: 0.8;
}
/* Footer Arquidiocesis Logo */
.footer-arquidiocesis-logo {
    max-height: 115px; /* Adjust as needed */
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--accent-cream);
    margin-bottom: 1rem;
}
.footer ul li a {
    color: rgba(240, 235, 227, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer ul li a:hover {
    color: var(--accent-cream);
}
.footer hr {
    border-color: rgba(240, 235, 227, 0.2);
}
.footer .social-links a {
    color: rgba(240, 235, 227, 0.7);
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer .social-links a:hover {
    color: var(--accent-cream);
    transform: scale(1.1);
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-custom .nav-link { margin: 0.5rem 0.8rem; }
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2.4rem; }
    .premium-card { margin-bottom: 1.5rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .section-padding { padding: 80px 0; }
    .gallery-grid { gap: 1rem; }
    .footer { text-align: center; }
    .footer .col-lg-4, .footer .col-lg-3 { justify-content: center; text-align: center; }
    .footer .social-links { justify-content: center; display: flex; }
    .footer h5 { margin-top: 1.5rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .btn-premium, .btn-premium-outline { padding: 0.7rem 2rem; font-size: 0.9rem; }
}