/* galeria.css - ESTILOS ESPECÍFICOS PARA LA GALERÍA */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --light-yellow: #fef3c7;
}

/* Estilos base - SIN interferir con el navbar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-x: hidden;
    padding-top: 0; /* IMPORTANTE: No añadir padding que interfiera con el navbar fixed */
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(30, 64, 175, 0.8), rgba(30, 64, 175, 0.9)), url('/images/galeria/hero-galeria.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Para compensar el navbar fixed */
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
}

/* Galería - Corregido */
.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.testimonial-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.client-name {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.travel-location {
    color: var(--accent-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-text {
    color: #4b5563;
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.rating {
    color: var(--accent-yellow);
    margin-top: auto;
}

.travel-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.image-overlay {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay::after {
    opacity: 1;
}

.image-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent-yellow);
    color: #1f2937;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .image-tag {
    opacity: 1;
    transform: translateY(0);
}

.loading-bar {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.intro-section {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    padding: 5rem 0;
    border-bottom: 5px solid var(--accent-yellow);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos para los botones del CTA */
.btn-accent {
    background-color: var(--accent-yellow) !important;
    color: #1f2937 !important;
    border: none !important;
    border-radius: 50px !important;
}

.btn-accent:hover {
    background-color: #f59e0b !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: 50vh;
        background-attachment: scroll;
        padding-top: 80px;
    }
    
    .gallery-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .intro-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .gallery-image {
        height: 200px;
    }
}

/* Estilos para animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }
.stagger-delay-6 { transition-delay: 0.6s; }

/* Floating elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element-delay {
    animation: float 6s ease-in-out infinite 2s;
}

.btn {
    border-radius: 8px;
}

/* IMPORTANTE: No incluir estilos de navbar aquí, se usarán del main.css */
/* El navbar se cargará desde el fragmento del header */