body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
}
.btn-primary {
    background-color: #ca8a04; /* yellow-600 */
    color: white;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #a16207; /* yellow-700 */
}

/* Page Specific Backgrounds */
.hero-bg {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/image1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cta-bg {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/image2.jpg');
    background-size: cover;
    background-position: center;
}
.hero-bg-about {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/image3.jpg');
    background-size: cover;
    background-position: center;
}
.mission-bg {
     background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/image4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-bg-projects {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/image6.jpg');
    background-size: cover;
    background-position: center;
}
.cta-bg-projects {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/image5.jpg');
    background-size: cover;
    background-position: center;
}
.hero-bg-contact {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/image7.jpg');
    background-size: cover;
    background-position: center;
}
.hero-bg-legal {
    background-color: #111;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/image8.jpg');
    background-size: cover;
}


/* Gallery */
.gallery-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Legal Pages Typography */
.prose-dark {
    color: #d1d5db; /* gray-300 */
}
.prose-dark h2, .prose-dark h3 {
    color: #ffffff;
}
.prose-dark a {
    color: #f59e0b; /* amber-500 */
}
.prose-dark strong {
    color: #fef08a; /* yellow-200 */
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* Hidden by default */
    background-color: #ca8a04;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    line-height: 50px;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}
#scrollToTopBtn:hover {
    background-color: #a16207;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
}
.carousel-track {
    display: flex;
    width: fit-content;
    /* Animation will be applied dynamically via JavaScript */
}
/* Hover pause is now handled dynamically by JavaScript */
.carousel-slide {
    width: 400px; /* Adjust width as needed */
    flex-shrink: 0;
    padding: 0 1rem;
}
.carousel-slide img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.carousel-slide img:hover {
    transform: scale(1.03);
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    transition: opacity 0.3s ease;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85vh;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Mobile Menu Alignment */
#mobile-menu > a {
    text-align: left;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: visible;
    opacity: 1;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ca8a04;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#logoheader {
    max-height: 50px;
}

#logofooter {
    max-height: 40px;
}

/* ========== RESPONSIVE DESIGN IMPROVEMENTS ========== */

/* Carousel Responsivo */
@media (max-width: 768px) {
    .carousel-slide {
        width: 300px; /* Más pequeño en tablet */
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        width: 250px; /* Aún más pequeño en móvil */
    }
}

/* Desactivar parallax en móvil para mejor rendimiento */
@media (max-width: 768px) {
    .hero-bg,
    .mission-bg {
        background-attachment: scroll !important;
    }
}

/* Ajustar botón scroll-to-top para móvil */
@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
        line-height: 45px;
    }
}

/* Mejorar grids de galería para tablets */
@media (min-width: 640px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Optimizar lightbox para móviles */
@media (max-width: 768px) {
    .lightbox {
        padding-top: 40px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
        margin: 0 auto;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 75vh;
    }
    
    .lightbox-close {
        font-size: 25px;
        right: 10px;
    }
}

/* Mejoras adicionales para móvil muy pequeño */
@media (max-width: 375px) {
    .carousel-slide {
        width: 220px;
        padding: 0 0.5rem;
    }
    
    /* Ajustar padding de secciones en pantallas muy pequeñas */
    .section-padding-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}