/* index.css MEJORADO */
/* ===== ANIMACIONES AVANZADAS ===== */

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes text-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scale-in {
    from {
        transform: scale(0.98);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #ff0066;
    }
}

/* ===== CLASES DE ANIMACIÓN ===== */

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-gradient {
    background: linear-gradient(135deg, #ff0066, #fbc415, #ff0066);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    background-size: 200% 100%;
    animation: text-shimmer 4s infinite linear;
}

.animate-slide-left {
    animation: slide-in-left 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
    animation: slide-in-right 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scale-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid;
    animation:
        typewriter 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

/* ===== EFECTOS MEJORADOS ===== */

/* Botón principal con efecto neón */
.btn-primary {
    background: linear-gradient(135deg, #ff0066 0%, #ff3385 100%);
    color: white;
    border-radius: 50px;
    font-weight: 900;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 0, 102, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow:
        0 10px 25px rgba(255, 0, 102, 0.3),
        0 0 30px rgba(255, 0, 102, 0.15);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 0, 102, 0.3);
}

/* Glass effect mejorado */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-enhanced:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 0, 102, 0.2);
    transform: scale(1.01);
}

/* Bento card con efecto 3D */
.bento-card-3d {
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-card-3d:hover {
    transform:
        translateY(-4px) rotateX(2deg) rotateY(2deg);
    box-shadow:
        0 25px 50px rgba(255, 0, 102, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Text gradient animado */
.text-gradient-animated {
    background: linear-gradient(135deg,
            #ff0066 0%,
            #ff3385 25%,
            #fbc415 50%,
            #ff3385 75%,
            #ff0066 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */

/* Focus visible mejorado */
:focus-visible {
    outline: 2px solid #ff0066;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Contraste mejorado para texto */
.high-contrast-text {
    color: #f0f9ff !important;
    text-shadow: 0 1px 2px rgba(13, 40, 53, 0.5);
}

/* ===== EFECTOS DE SCROLL ===== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MENÚ MÓVIL MEJORADO ===== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(13, 40, 53, 0.98) 0%,
            rgba(13, 40, 53, 0.95) 100%);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active a:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MEJORAS RESPONSIVE ===== */

@media (max-width: 768px) {
    .btn-primary-mobile {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .mobile-text-optimized {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.2;
    }
}

/* ===== EFECTOS DE CARGA ===== */

@keyframes shimmer-loading {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer-loading 1.5s infinite linear;
}

/* ===== CUSTOM SCROLLBAR MEJORADO ===== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 40, 53, 0.95);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0066, #fbc415);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3385, #fbc415);
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
}

/* ===== SELECT PERSONALIZADO ===== */

.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff0066' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* ===== TRANSICIONES SUAVES ===== */

.smooth-transition {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== EFECTO PARALLAX SUAVE ===== */

.parallax-bg {
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== ANIMACIÓN DE PULSO MEJORADA ===== */

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 102, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 0, 102, 0.4);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Añadir al final de tu index.css */

/* Animación de pulso lento */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.95;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Animación alternada entre los dos botones */
@keyframes alternate-glow-1 {

    0%,
    50% {
        background-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.8);
    }

    25%,
    75%,
    100% {
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.4);
    }
}

@keyframes alternate-glow-2 {

    0%,
    50% {
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.4);
    }

    25%,
    75%,
    100% {
        background-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.alternate-cta-1 {
    animation: alternate-glow-1 4s ease-in-out infinite;
}

.alternate-cta-2 {
    animation: alternate-glow-2 4s ease-in-out infinite;
}

/* ===== MARQUEE CARRUSEL ===== */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .marquee-track {
        gap: 2rem;
    }
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    width: 320px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .marquee-item {
        width: 380px;
    }
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - (1.5rem / 2)));
    }
}

@media (min-width: 768px) {
    @keyframes marquee-scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - (2rem / 2)));
        }
    }
}