/* Container */
.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Section Layouts */
.section {
    padding: var(--space-8) 0;  
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-3xl);
}

.section__subtitle {
    text-align: center;
    color: var(--color-text) !important;
    margin-bottom: var(--space-8);
}

/* Grid Layouts */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-8);
}

.footer__links-columns {
    display: flex;
    gap: 20px; /* Espaciado entre las columnas */
    flex-wrap: wrap; /* Permitir que las columnas se ajusten si el espacio es limitado */
}

.footer__links-columns ul {
    flex: 1; /* Hacer que las columnas tengan el mismo ancho */
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links-columns li {
    margin-bottom: 10px; /* Espaciado entre los elementos de la lista */
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: var(--space-6) 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav__menu {
        display: none;
    }

    .nav__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        padding: var(--space-4);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero__content {
    margin-top: 140px !important;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
    animation: fadeIn 1s ease;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin-bottom: var(--space-6);
    animation: slideUp 1s ease 0.2s both;
}

.hero__cta {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    animation: slideUp 1s ease 0.4s both;
}

/* Estilos para el stack de imágenes */
.hero__images-stack {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 4rem auto 0;
    perspective: 1000px;
}

.image-stack__item {
    position: absolute;
    width: 70%;
    max-width: 500px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center center;
    z-index: 1;
    opacity: 0.9;
}

/* Posicionamiento inicial apilado */
.image-stack__item:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    z-index: 3;
}

.image-stack__item:nth-child(2) {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    z-index: 2;
    opacity: 0.8;
}

.image-stack__item:nth-child(3) {
    top: 60px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    z-index: 1;
    opacity: 0.7;
}

.image-stack__item:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
}

.stack-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-stack__item:hover .image-overlay {
    transform: translateY(0);
}

/* Estado cuando las imágenes están "desplegadas" */
.image-stack__item.stack-active {
    opacity: 1;
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Animación para la transición al hacer scroll */
.image-stack__item.scroll-transition {
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(100px) rotate(10deg) !important;
}

/* Estilos para las secciones de destino */
.example {
    position: relative;
    overflow: hidden;
}

.example__image-placeholder {
    min-height: 300px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.example__image-placeholder.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero__images-stack {
        height: 300px;
        margin: 2rem auto 0;
    }
    
    .image-stack__item {
        width: 85%;
        height: 200px;
    }
    
    .image-stack__item:nth-child(2) {
        top: 20px;
    }
    
    .image-stack__item:nth-child(3) {
        top: 40px;
    }
}


/* Efecto de brillo en hover */
.image-stack__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.image-stack__item:hover::before {
    opacity: 1;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #00D4FF;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Efecto de partículas en las imágenes */
.image-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00D4FF;
    border-radius: 50%;
    opacity: 0;
}

.image-stack__item:hover .particle {
    animation: particle-float 2s ease-out forwards;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1);
    }
}
/* Estilos para el layout horizontal en hero */
.hero__images-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.hero-image-container {
    flex: 1;
    max-width: 320px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image-container:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-image-container:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-image-container:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
}

.image-wrapper:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.25);
}

.scrollable-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-wrapper:hover .image-label {
    transform: translateY(0);
}

/* Estados para la animación de scroll */
.hero-image-container.scrolling {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-container.scrolling .image-wrapper {
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.hero-image-container.destination-reached {
    position: absolute !important;
    opacity: 0.5;
    z-index: 100;
}

/* Placeholder en las secciones de destino */
.image-destination {
    position: relative;
    min-height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-destination.active {
    opacity: 1;
}

.destination-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Efecto de brillo en las imágenes */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-wrapper:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__images-horizontal {
        gap: 1.5rem;
    }
    
    .hero-image-container {
        max-width: 280px;
    }
    
    .scrollable-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .hero__images-horizontal {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .hero-image-container {
        max-width: 100%;
        width: 100%;
    }
    
    .scrollable-image {
        height: 200px;
    }
}