/* ========================================
   ANIMACIONES PREMIUM & MEJORAS VISUALES
   ======================================== */

/* Grid de Proceso Premium */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Animación de Parallax Suave en Scroll */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Animación de Fade In con Slide Up */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de Scale Pulse */
@keyframes scalePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Animación de Shimmer (Brillo deslizante) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Aplicar animación shimmer a botones premium */
.btn-explore::after,
.btn-order::after {
    animation: shimmer 3s infinite linear;
}

/* Hover con efecto de elevación dramática */
.story-img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
}

.story-img:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(62, 43, 38, 0.2);
}

/* Efecto de parallax en imágenes del hero */
.hero-img {
    transition: transform 0.3s ease-out;
}

.hero:hover .hero-img {
    transform: scale(1.03);
}

/* Animación de entrada para cards de proceso */
.process-card-premium {
    animation: fadeInSlideUp 0.8s ease-out backwards;
}

.process-card-premium:nth-child(1) {
    animation-delay: 0.1s;
}

.process-card-premium:nth-child(2) {
    animation-delay: 0.3s;
}

.process-card-premium:nth-child(3) {
    animation-delay: 0.5s;
}

/* Efecto de brillo en hover para process cards */
.process-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 157, 95, 0.1), transparent);
    transition: left 0.6s ease;
}

.process-card-premium:hover::before {
    left: 100%;
}

/* Animación de iconos con rotación suave */
.process-icon-gold {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.process-card-premium:hover .process-icon-gold {
    transform: rotate(360deg) scale(1.1);
}

/* Efecto de texto con gradiente animado */
.carousel-title {
    background: linear-gradient(90deg, #ffffff, var(--color-accent), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

/* Sombra dinámica en botones */
.btn-explore,
.btn-order {
    position: relative;
}

.btn-explore::after,
.btn-order::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(197, 157, 95, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.btn-explore:hover::after,
.btn-order:hover::after {
    opacity: 1;
    bottom: -15px;
}

/* Animación de entrada para social grid */
.social-grid-preview img {
    animation: fadeInSlideUp 0.6s ease-out backwards;
}

.social-grid-preview img:nth-child(1) {
    animation-delay: 0.1s;
}

.social-grid-preview img:nth-child(2) {
    animation-delay: 0.2s;
}

.social-grid-preview img:nth-child(3) {
    animation-delay: 0.3s;
}

.social-grid-preview img:nth-child(4) {
    animation-delay: 0.4s;
}

/* Efecto de partículas flotantes (decorativo) */
.product-carousel-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(197, 157, 95, 0.1), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.product-carousel-section::after {
    animation-delay: 3s;
}

/* Mejora de transiciones globales */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de glassmorphism en navegación móvil */
@media (max-width: 900px) {
    .nav-links {
        backdrop-filter: blur(20px);
        background-color: rgba(251, 249, 244, 0.95);
    }
}

/* Animación de carga para la página */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageLoad 0.6s ease-out;
}

/* Efecto de hover en story content */
.story-content {
    transition: transform 0.3s ease;
}

.story-row:hover .story-content {
    transform: translateX(10px);
}

.story-row.reverse:hover .story-content {
    transform: translateX(-10px);
}

/* Ornamento animado */
.ornament {
    position: relative;
    overflow: hidden;
}

.ornament::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

/* Mejora de la sección social */
.social-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--color-bg), #ffffff);
}

.social-buttons-large {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-social-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-social-large.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-social-large.facebook {
    background: #1877f2;
    color: white;
}

.btn-social-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Mejora del section header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

/* Responsive para animaciones */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejora de espaciado en móvil */
@media (max-width: 768px) {
    .story {
        padding: 80px 0;
    }

    .how-it-works {
        padding: 80px 0 60px;
    }

    .process-section-premium {
        padding: 60px 0;
    }

    .social-section {
        padding: 80px 0;
    }
}