f/* ===================================
   ANIMACIONES PERSONALIZADAS
   Para páginas sin scroll-spy (AOS)
   =================================== */

/* ===== KEYFRAMES ===== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 165, 116, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(212, 165, 116, 0.5);
    }
}

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

/* ===== TRANSICIONES SUAVES ===== */

.fade-in-element {
    animation: fadeIn 0.8s ease-out;
}

.scale-in-element {
    animation: scaleIn 0.6s ease-out;
}

.slide-up-element {
    animation: slideInUp 0.8s ease-out;
}

.slide-down-element {
    animation: slideInDown 0.8s ease-out;
}

.slide-left-element {
    animation: slideInLeft 0.8s ease-out;
}

.slide-right-element {
    animation: slideInRight 0.8s ease-out;
}

/* ===== HOVER EFFECTS ===== */

.lift-on-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lift-on-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.grow-on-hover {
    transition: all 0.3s ease;
}

.grow-on-hover:hover {
    transform: scale(1.05);
}

.accent-on-hover {
    transition: all 0.3s ease;
    border-color: transparent;
    border-left-color: transparent;
}

.accent-on-hover:hover {
    border-left-color: var(--color-acento);
}

.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.shift-on-hover {
    transition: all 0.3s ease;
}

.shift-on-hover:hover {
    transform: translateX(8px);
}

/* ===== STAGGER ANIMATION HELPER ===== */

.stagger-item-1 { animation-delay: 0.1s; }
.stagger-item-2 { animation-delay: 0.2s; }
.stagger-item-3 { animation-delay: 0.3s; }
.stagger-item-4 { animation-delay: 0.4s; }
.stagger-item-5 { animation-delay: 0.5s; }
.stagger-item-6 { animation-delay: 0.6s; }
.stagger-item-7 { animation-delay: 0.7s; }
.stagger-item-8 { animation-delay: 0.8s; }
.stagger-item-9 { animation-delay: 0.9s; }
.stagger-item-10 { animation-delay: 1s; }

/* ===== SMOOTH TRANSITIONS ===== */

.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-color {
    transition: color 0.3s ease;
}

.smooth-background {
    transition: background-color 0.3s ease;
}

.smooth-transform {
    transition: transform 0.3s ease;
}

.smooth-opacity {
    transition: opacity 0.3s ease;
}

.smooth-shadow {
    transition: box-shadow 0.3s ease;
}

/* ===== BUTTON ANIMATIONS ===== */

.button-ripple {
    position: relative;
    overflow: hidden;
}

.button-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.button-ripple:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ===== CARD ANIMATIONS ===== */

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-borde);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
    border-color: var(--color-acento);
}

/* ===== LIST ANIMATIONS ===== */

.list-item-animated {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.list-item-animated:nth-child(1) { animation-delay: 0.1s; }
.list-item-animated:nth-child(2) { animation-delay: 0.2s; }
.list-item-animated:nth-child(3) { animation-delay: 0.3s; }
.list-item-animated:nth-child(4) { animation-delay: 0.4s; }
.list-item-animated:nth-child(5) { animation-delay: 0.5s; }

/* ===== TEXT ANIMATIONS ===== */

.text-highlight {
    position: relative;
    background: linear-gradient(90deg, rgba(212, 165, 116, 0), rgba(212, 165, 116, 0.3), rgba(212, 165, 116, 0));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* ===== GRADIENT ANIMATIONS ===== */

.gradient-animate {
    background: linear-gradient(-45deg, var(--color-primario), var(--color-acento), var(--color-primario-claro), var(--color-acento));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== FADE IN PROGRESSIVE ===== */

.fade-in-progressive {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-progressive:nth-child(1) { animation-delay: 0.1s; }
.fade-in-progressive:nth-child(2) { animation-delay: 0.2s; }
.fade-in-progressive:nth-child(3) { animation-delay: 0.3s; }
.fade-in-progressive:nth-child(4) { animation-delay: 0.4s; }
.fade-in-progressive:nth-child(5) { animation-delay: 0.5s; }
.fade-in-progressive:nth-child(6) { animation-delay: 0.6s; }

/* ===== SCALE ENTRANCE ===== */

.scale-entrance {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-entrance:nth-child(1) { animation-delay: 0.05s; }
.scale-entrance:nth-child(2) { animation-delay: 0.1s; }
.scale-entrance:nth-child(3) { animation-delay: 0.15s; }
.scale-entrance:nth-child(4) { animation-delay: 0.2s; }
.scale-entrance:nth-child(5) { animation-delay: 0.25s; }
.scale-entrance:nth-child(6) { animation-delay: 0.3s; }

/* ===== PULSING ELEMENT ===== */

.pulse-element {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== RESPONSIVE ANIMATIONS ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ACCENT COLOR TRANSITIONS ===== */

.accent-transition {
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.accent-transition:hover {
    color: var(--color-acento);
    border-color: var(--color-acento);
}

/* ===== SMOOTH SCROLL ===== */

html {
    scroll-behavior: smooth;
}

/* ===== LOADING SKELETON ===== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===== FADE DECORATIVE ELEMENTS ===== */

.decor-line {
    animation: slideInRight 0.8s ease-out;
}

.decor-dot {
    animation: scaleIn 0.6s ease-out;
}

.decor-accent {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: backwards;
}

.decor-accent:nth-child(1) { animation-delay: 0.2s; }
.decor-accent:nth-child(2) { animation-delay: 0.4s; }
.decor-accent:nth-child(3) { animation-delay: 0.6s; }

/* ===== SECTION ENTRANCE ===== */

.section-entrance {
    animation: slideInUp 0.8s ease-out;
}

.section-entrance:nth-of-type(1) { animation-delay: 0.1s; }
.section-entrance:nth-of-type(2) { animation-delay: 0.2s; }
.section-entrance:nth-of-type(3) { animation-delay: 0.3s; }
.section-entrance:nth-of-type(4) { animation-delay: 0.4s; }

/* ===== OPACITY LAYERS ===== */

.layer-1 { animation-delay: 0.1s; }
.layer-2 { animation-delay: 0.2s; }
.layer-3 { animation-delay: 0.3s; }
.layer-4 { animation-delay: 0.4s; }
.layer-5 { animation-delay: 0.5s; }

/* ===== BOUNCY ANIMATION ===== */

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

.bounce-element {
    animation: bounce 1s ease-in-out infinite;
}

/* ===== ROTATE ENTRANCE ===== */

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.rotate-entrance {
    animation: rotateIn 0.6s ease-out;
}
