:root {
    --primary: #00f3ff;
    --secondary: #ff00ff;
    --accent: #ffff00;
    --dark: #0a0a0f;
    --dark-2: #14141f;
    --dark-3: #1e1e2f;
    --light: #ffffff;
    --success: #00ff88;
    --error: #ff3366;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: var(--light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efecto sutil de fondo */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

.stars {
    background: radial-gradient(circle at 20% 50%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.06) 0%, transparent 50%);
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="10" r="0.5" fill="%2300f3ff" opacity="0.3"/><circle cx="60" cy="40" r="0.5" fill="%23ff00ff" opacity="0.3"/><circle cx="30" cy="70" r="0.5" fill="%2300ff88" opacity="0.3"/></svg>') repeat;
}

.stars3 {
    display: none;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-2000px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 243, 255, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
}

.glitch {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    }

    25% {
        text-shadow: -2px 0 rgba(255, 0, 255, 0.5), 2px 0 rgba(0, 243, 255, 0.5);
    }

    50% {
        text-shadow: 2px 0 rgba(255, 0, 255, 0.5), -2px 0 rgba(0, 243, 255, 0.5);
    }

    75% {
        text-shadow: -2px 0 rgba(0, 243, 255, 0.5), 2px 0 rgba(255, 0, 255, 0.5);
    }
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* Platform Grid */
.platforms,
.features {
    margin: 2rem 0;
}

.platforms h2,
.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.platform-card {
    background: var(--dark-2);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.3);
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.platform-icon svg {
    width: 64px;
    height: 64px;
    transition: all 0.3s;
}

.platform-card:hover .platform-icon svg {
    transform: scale(1.1);
}

/* Colores específicos para cada plataforma */
.twitter .platform-icon svg {
    color: #1DA1F2;
}

.instagram .platform-icon svg {
    color: #E1306C;
}

.facebook .platform-icon svg {
    color: #4267B2;
}

.tiktok .platform-icon svg {
    color: #00F2EA;
}

.youtube .platform-icon svg {
    color: #FF0000;
}

.universal .platform-icon svg {
    color: #00ff88;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: rgba(255, 255, 255, 0.7);
}

.twitter {
    border-color: #1DA1F2;
}

.instagram {
    border-color: #E1306C;
}

.facebook {
    border-color: #4267B2;
}

.tiktok {
    border-color: #00F2EA;
}

.youtube {
    border-color: #FF0000;
}

.universal {
    border-color: #00ff88;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-2);
    border: 2px solid var(--dark-3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Download Section */
.download-section {
    max-width: 800px;
    margin: 0 auto;
}

.platform-header {
    text-align: center;
    padding: 3rem 0;
}

.platform-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.platform-icon-large svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px currentColor);
    animation: float 3s ease-in-out infinite;
}

/* Animación de flotación para el logo */
@keyframes float {

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

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

/* Colores para iconos grandes según plataforma */
.twitter .platform-icon-large svg {
    color: #1DA1F2;
}

.instagram .platform-icon-large svg {
    color: #E1306C;
}

.facebook .platform-icon-large svg {
    color: #4267B2;
}

.tiktok .platform-icon-large svg {
    color: #00F2EA;
}

.youtube .platform-icon-large svg {
    color: #FF0000;
}

.universal .platform-icon-large svg {
    color: #00ff88;
}

.platform-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.platform-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.download-container {
    background: var(--dark-2);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--dark-3);
}

.download-form {
    margin: 3rem 0;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.url-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: var(--dark-2);
    border: 2px solid var(--dark-3);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s;
}

.clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    display: none;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.clear-icon:hover {
    color: var(--error);
    background: rgba(255, 51, 102, 0.1);
}

.url-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Botones de iconos */
.icon-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    background: var(--dark-2);
    border: 2px solid var(--dark-3);
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
    border-color: var(--primary);
}

.icon-btn:active {
    transform: translateY(0);
}

.clear-btn:hover {
    background: rgba(255, 51, 102, 0.2);
    border-color: var(--error);
}

.paste-btn {
    background: var(--gradient);
    color: var(--dark);
    border: none;
}

.paste-btn:hover {
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--dark-3);
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--dark-2);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
}

/* Botones específicos */
.fetch-btn {
    background: var(--gradient);
    color: var(--dark);
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.fetch-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.download-btn {
    background: linear-gradient(135deg, #00f3ff 0%, #ff3366 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 0 auto;
}

.download-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.5);
    transform: translateY(-3px);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-icon {
    font-size: 1.3rem;
}

box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: var(--dark);
}

.btn-success:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--dark-3);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.error-message {
    background: rgba(255, 51, 102, 0.1);
    border: 2px solid var(--error);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    color: var(--error);
}

/* Video Info */
.video-info {
    background: var(--dark-2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
}

.video-preview {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.video-preview img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    background: var(--dark-3);
    transition: opacity 0.3s;
}

.video-preview img[style*="display: none"] {
    display: none !important;
}

.video-details {
    flex: 1;
    min-width: 250px;
}

.video-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.download-options {
    margin-top: 2rem;
}

.download-options h3 {
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.option-group label {
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.5rem;
    display: block;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    background: var(--dark-3);
    border: 2px solid var(--dark-3);
    border-radius: 12px;
    transition: all 0.3s;
}

.radio-label:hover {
    background: var(--dark);
    border-color: var(--primary);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-label input[type="radio"]:checked+span {
    color: var(--primary);
    font-weight: bold;
}

.radio-label span {
    color: var(--light);
    font-size: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--dark-3);
    border-radius: 12px;
    transition: all 0.3s;
}

.option-label:hover {
    background: var(--dark);
    border-color: var(--primary);
}

.option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.quality-selector {
    margin: 1.5rem 0;
}

/* Barra de progreso de descarga */
.download-progress {
    margin: 0 0 2rem 0;
    padding: 1.5rem;
    background: var(--dark-2);
    border: 2px solid var(--dark-3);
    border-radius: 15px;
    animation: fadeIn 0.3s ease-in;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.progress-info #progressStatus {
    color: var(--primary);
    font-weight: 600;
}

.progress-info #progressPercent {
    color: var(--light);
    font-weight: bold;
    font-size: 1.3rem;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: var(--dark-3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.progress-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.quality-selector {
    margin: 1.5rem 0;
}

.quality-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.quality-select {
    width: 100%;
    padding: 1rem;
    background: var(--dark-3);
    border: 2px solid var(--dark-3);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quality-select:focus {
    outline: none;
    border-color: var(--primary);
}

.quality-select option {
    background: var(--dark-2);
    color: var(--light);
}

/* Instructions */
.instructions {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--dark-2);
    border-radius: 20px;
}

.instructions h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
}

/* Footer */
.footer {
    background: var(--dark-2);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid rgba(0, 243, 255, 0.2);
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s;
        gap: 1rem;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .platform-header h1 {
        font-size: 2rem;
    }

    .platform-icon-large {
        font-size: 3.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .url-input {
        width: 100%;
    }

    .video-preview {
        flex-direction: column;
    }

    .video-preview img {
        width: 100%;
    }

    .option-group {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    .platform-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }