:root {
    --primary: #000000; /* changed to black for dominant background */
    --secondary: #0a3d0a; /* deep green for subtle accents */
    --accent-gold:rgb(195, 168, 15); /* muted gold accent */
    --accent-silver: #c0c0c0;
    --accent-green: #2e8b57; /* retained primary green accent */
    --text-light: #ffffff; /* white text for contrast */
    --text-dark: #f0f0f0;  /* light text, since dark texts won’t contrast on black */
    --background-dark: #000000; /* using black as dominant background */
    --background-darker: #111111; /* slightly lighter than pure black */
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1518756509608-b89b3b8bf_f90?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxzZWFyY2h8MTV8fHN0YXJyeSUyMHNreXxlbnwwfHx8fDE2MTYwNDg0NTg&ixlib=rb-4.0.3&q=80&w=1080') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
}

/* Entrance Animation */
.entrance-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-darker);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 6s ease-in-out forwards;
    pointer-events: none;
}

.entrance-logo {
    position: relative;
    width: 220px;
    height: 220px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards, float 3s ease-in-out infinite;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-gold);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    margin: 0 1px;
    position: relative;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://maestrosangregoriochicago.com/path-to-new-hero-image.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.74);
    border-radius: 15px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* CTA Buttons */
.btn-cta {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
    z-index: -1;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    color: var(--accent-gold);
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta i {
    margin-right: 8px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--background-dark), var(--background-darker));
    position: relative;
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    color: var(--accent-gold);
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    background: rgba(38, 0, 59, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-gold);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    animation: pulse 1s infinite;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
    border-color: var(--accent-green);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-gold, rgba(212, 175, 55, 0.1)), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-silver);
}

.service-desc {
    color: var(--text-light);
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: url('https://imatropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxzZWFyY2h8M3x8Y2FuZGxlc3xlbnwwfHx8fDE2MTYwNDc4NTc&ixlib=rb-4.0.3&q=80&w=1080') center/cover fixed;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.testimonial-container {
    position: relative;
    z-index: 1;
}

.swiper-slide {
    padding: 20px;
}

.testimonial-card {
    background: rgba(38, 0, 59, 0.1);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    color: var(--accent-silver);
    font-weight: 600;
}

.testimonial-rating {
    color: var(--accent-gold);
    margin-top: 10px;
}

.swiper-pagination-bullet {
    background: var(--accent-gold);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-gold);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--accent-gold);
}

/* Consultation Section */
.consultation {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--background-darker), var(--background-dark));
    position: relative;
}

.consultation-form {
    background: rgba(38, 0, 59, 0.1);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-dark);
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    color: var(--text-dark);
}

.form-label {
    color: var(--accent-silver);
    font-weight: 500;
}

.form-select {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-dark);
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    color: var(--text-dark);
}

.consultation-image {
    height: 100%;
    background: url('https://images.unsplash.com/photo-1611695435555-e18956e779f9?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxzZWFyY2h8OHx8Y3J5c3RhbCUyMGJhbGx8ZW58MHx8fHwxNjE2MDQ4MTE2&ixlib=rb-4.0.3&q=80&w=1080') center/cover no-repeat;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.consultation-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(38, 0, 59, 0.1));
}

.consultation-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--accent-gold);
}

.consultation-info h4 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.consultation-info p {
    color: var(--text-light);
    margin-bottom: 5px;
}

/* Blog Section */
.blog {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--background-dark), var(--background-darker));
}

.blog-card {
    background: rgba(38, 0, 59, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--accent-gold);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 15px;
    border-radius: 30px;
    color: var(--accent-gold);
    font-size: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-silver);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.blog-link i {
    margin-left: 8px;
    transition: all 0.3s;
}

.blog-link:hover {
    color: var(--accent-silver);
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: url('https://images.unsplash.com/photo-1501632865397-94246a9f1521?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxzZWFyY2h8MTJ8fG1vb24lMjBzdGFyc3xlbnwwfHx8fDE2MTYwNDgyMDM&ixlib=rb-4.0.3&q=80&w=1080') center/cover fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.contact-container {
    position: relative;
    z-index: 1;
}

.contact-info {
    background: rgba(38, 0, 59, 0.1);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--accent-gold);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--accent-gold);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.contact-item:hover .contact-icon {
    background: var(--accent-gold);
    color: var(--background-dark);
    transform: scale(1.1);
}

.contact-text h5 {
    color: var(--accent-silver);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-link:hover {
    background: var(--accent-gold);
    color: white;
    transform: scale(1.1);
}

.map-container {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
    margin-top: 30px;
}

/* Footer */
.footer {
    background: var(--background-darker);
    padding: 50px 0 20px;
    border-top: 1px solid var(--accent-gold);
}

.footer-logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links h5 {
    color: var(--accent-silver);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-link-list {
    list-style: none;
    padding: 0;
}

.footer-link-list li {
    margin-bottom: 10px;
}

.footer-link-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-link-list a i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.footer-link-list a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--accent-gold);
    border-radius: 50px 0 0 50px;
    padding: 10px 20px;
    color: var(--text-dark);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.newsletter-btn {
    background: var(--accent-gold);
    color: var(--background-dark);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background: var(--accent-silver);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--accent-gold);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Welcome Popup with nebula fade effect */
.welcome-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/cc.webp') center/cover no-repeat;
    background-size: cover;
    animation: nebulaFade 3s ease-in-out;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

@keyframes nebulaFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.popup-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    max-width: 500px;
    width: 90%;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--accent-silver);
    cursor: pointer;
    transition: all 0.3s;
}

.popup-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.popup-title {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.popup-text {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.8);
    color: var(--background-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    border: 2px solid transparent;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--background-dark);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        border: 1px solid var(--accent-gold);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
    
    .consultation-image {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-content {
        padding: 30px 20px;
        margin-top: 5rem;
    }
    
    .btn-cta {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .footer-links {
        margin-top: 30px;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

/* New CSS for Video Section */
.video-section {
    padding: 100px 0;
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
}
.video-section .video-container {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}
.video-section .video-container iframe,
.video-section .video-container img {
    width: 100%;
    border: 5px solid var(--accent-gold);
    border-radius: 10px;
}
.video-section .btn-video-cta {
    background: var(--accent-green);
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}
.video-section .btn-video-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* New CSS for FAQ Accordion using Bootstrap */
.faq-section {
    padding: 100px 0;
    background: var(--background-darker);
    color: var(--text-light);
}
.faq-section .accordion-button {
    background-color: var(--background-dark);
    color: var(--text-light);
    border: 1px solid var(--accent-gold);
}
.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--secondary);
    color: var(--accent-gold);
}
.faq-section .accordion-item {
    border: none;
    background: transparent;
}
.faq-section .accordion-body {
    background-color: var(--background-dark);
    border: 1px solid var(--accent-gold);
    border-top: none;
    color: var(--text-light);
}

/* New CSS for Fixed Contact Icons */
.fixed-contact-icons {
    position: fixed;
    bottom: 20px;
    right: 34px;
    z-index: 1000;

}
.fixed-contact-icons a {
    display: inline-block;
    margin: 5px;
    width: 100%;
    height: 100%;
    background: var(--accent-green);
    color: white;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    transition: transform 0.3s ease; 
    padding: 16px 10px;
}
.fixed-contact-icons a:hover {
    transform: scale(1.1);
}
.service-card img {
width: 100%;
height: auto;
object-fit: cover; /* Esto asegura que las imágenes cubran el área sin deformarse */
}
.service-card img{
max-height: 10rem;
}
.entrance-animation {
    /* Mantener estas propiedades */
    pointer-events: none; /* Permite interacción durante la animación */
    animation: fadeOut 6s ease-in-out forwards;
}

.welcome-popup {
    z-index: 99999; /* Asegurar que aparece sobre todo */
}