/* ============================================
   ANIMACIONES PROFESIONALES
   ============================================ */

/* ── Keyframes Base ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ── Hero Section Animations ── */
.hero__title {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero__title-highlight {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #00d4ff 0%,
        #459d9a 25%,
        #c6b7be 50%,
        #459d9a 75%,
        #00d4ff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.hero__description {
    color: aliceblue ;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero__cta {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

.hero__cta .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero__cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.hero__cta .btn:hover::before {
    left: 100%;
}

.hero__cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.hero__cta .btn--primary:hover {
    background: linear-gradient(135deg, #00d4ff, #459d9a);
}

.hero__cta .btn--secondary:hover {
    background: #00d4ff;
    color: #0a0a15;
    border-color: #00d4ff;
}

.hero-badges {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
}

.hero-badge--v1 {
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-badge--v1:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.06);
}

/* ── Navigation Animations ── */
.nav__link {
    position: relative;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #459d9a);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: #00d4ff;
}

/* ── Section Header Animations ── */
.section__title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section__subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section__title.visible,
.section-visible .section__title {
    opacity: 1;
    transform: translateY(0);
}

.section__subtitle.visible,
.section-visible .section__subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ── Service Cards Animations ── */
.service-card {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-card__icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
}

.service-card__icon svg {
    stroke: #00d4ff;
}

.service-card__title {
    position: relative;
    transition: color 0.3s ease;
}



.service-card:hover .service-card__title::after {
    width: 60%;
}

/* ── About Section Animations ── */
.about__text {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about__text.visible,
.section-visible .about__text {
    opacity: 1;
    transform: translateX(0);
}

.about__text:nth-child(2) {
    transition-delay: 0.2s;
}

.about__feature {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about__feature.visible,
.section-visible .about__feature {
    opacity: 1;
    transform: translateX(0);
}

.about__feature:nth-child(1) { transition-delay: 0.3s; }
.about__feature:nth-child(2) { transition-delay: 0.4s; }
.about__feature:nth-child(3) { transition-delay: 0.5s; }
.about__feature:nth-child(4) { transition-delay: 0.6s; }

.about__feature svg {
    stroke: #00d4ff;
    transition: all 0.3s ease;
}

.about__feature:hover svg {
    stroke: #00d4ff;
    transform: scale(1.2);
}

.about__feature:hover {
    transform: translateX(10px);
}

.about__visual {
    animation: float 4s ease-in-out infinite;
}

/* ── Process Section Animations ── */
.process__step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.process__step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process__step:hover {
    transform: translateY(-10px);
}

.process__step-number {
    background: linear-gradient(135deg, #00d4ff, #459d9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.process__step:hover .process__step-number {
    transform: scale(1.3);
    animation: pulse 0.5s ease infinite;
}

/* ── Contact Section Animations ── */
.form__input,
.form__select,
.form__textarea {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    background: rgba(0, 212, 255, 0.05);
}

.form__input:focus {
    border-color: #00d4ff;
}

.form__label {
    transition: color 0.3s ease;
}

.form__input:focus + .form__label,
.form__select:focus + .form__label,
.form__textarea:focus + .form__label {
    color: #00d4ff;
}

.contact__title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact__text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.contact__title.visible,
.section-visible .contact__title {
    opacity: 1;
    transform: translateY(0);
}

.contact__text.visible,
.section-visible .contact__text {
    opacity: 1;
    transform: translateY(0);
}

.contact__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact__link::before {
    content: '';
    position: absolute;
    left: -10px;
    width: 0;
    height: 100%;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.contact__link:hover::before {
    width: calc(100% + 20px);
}

.contact__link svg {
    stroke: #00d4ff;
    transition: all 0.3s ease;
}

.contact__link:hover svg {
    stroke: #00d4ff;
    transform: translateX(5px);
}

/* ── Footer Animations ── */
.footer__link {
    position: relative;
    transition: all 0.3s ease;
}

.footer__link:hover {
    color: #00d4ff;
    transform: translateX(5px);
}

.footer__link::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.footer__link:hover::before {
    opacity: 1;
    left: -10px;
}

/* ── Scroll Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a15;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #459d9a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #459d9a, #00d4ff);
}

/* ── Notification Styles ── */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    color: #fafbf6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease forwards;
}

.notification--hiding {
    animation: slideOut 0.3s ease forwards;
}

.notification--success {
    background: linear-gradient(135deg, #00d4ff, #459d9a);
}

.notification--error {
    background: #ff6b6b;
}

/* ── Header Scroll Animation ── */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 21, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* ── Mobile Menu Animations ── */
.nav__toggle {
    transition: all 0.3s ease;
}

.nav__toggle.active {
    transform: rotate(90deg);
}

.nav__menu {
    transition: all 0.4s ease;
}

/* ── Responsive Animations ── */
@media (max-width: 768px) {
    .hero__title {
        animation-duration: 0.8s;
    }
    
    .hero__description,
    .hero__cta,
    .hero-badges {
        animation-duration: 0.6s;
    }
    
    .service-card--active:hover {
        transform: scale(1.05);
    }
}

/* Orbital node active pulse */
.orbital__node-dot--pulse {
    animation: orbitalPulse 1s ease-in-out infinite;
}

@keyframes orbitalPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 24px rgba(0, 212, 255, 0.6); }
}

@keyframes orbitalCenterPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%       { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes orbitalRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50%       { transform: translate(-50%, -50%) scale(1.04); opacity: 0.6; }
}

@keyframes orbitalRelatedPulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(0, 212, 255, 0.2);
        border-color: rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 18px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.7);
    }
}

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

/* Workflow animations removed - node-editor uses Anime.js */