/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-violet: #8B5CF6;
    --secondary-violet: #7C3AED;
    --dark-violet: #5B21B6;
    --light-violet: #A78BFA;
    --neon-violet: #C084FC;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --dark-gray: #1E293B;
    --gradient-primary: linear-gradient(135deg, var(--primary-violet), var(--secondary-violet));
    --gradient-neon: linear-gradient(135deg, var(--neon-violet), var(--light-violet));
    --shadow-neon: 0 0 20px rgba(192, 132, 252, 0.5);
    --shadow-card: 0 10px 30px rgba(139, 92, 246, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-violet);
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-violet);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-login, .btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    color: var(--primary-violet);
    border: 2px solid var(--primary-violet);
}

.btn-login:hover {
    background: var(--primary-violet);
    color: var(--white);
    box-shadow: var(--shadow-neon);
}

.btn-register {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-neon);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

/* Menú de usuario */
#user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.user-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

#user-menu.show .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-violet);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 0.5rem 0;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 0 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.neon-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: #64748B;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.btn-primary.disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-violet);
    border: 2px solid var(--primary-violet);
}

.btn-secondary:hover {
    background: var(--primary-violet);
    color: var(--white);
    box-shadow: var(--shadow-neon);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-preview {
    position: relative;
    width: 300px;
    height: 200px;
}

.video-frame {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-frame i {
    font-size: 4rem;
    color: var(--white);
    z-index: 2;
}

.neon-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-neon);
    border-radius: 22px;
    z-index: 1;
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
    }
    100% {
        box-shadow: 0 0 40px rgba(192, 132, 252, 0.8);
    }
}

/* Secciones */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-neon);
    margin: 1rem auto;
    border-radius: 2px;
}

/* How it Works */
.how-it-works {
    padding: 6rem 0;
    background: var(--light-gray);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-neon);
}

.step-icon i {
    font-size: 2rem;
    color: var(--white);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.step p {
    color: #64748B;
    line-height: 1.6;
}

/* Services */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: var(--primary-violet);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.service-card p {
    color: #64748B;
    line-height: 1.6;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
    background: var(--light-gray);
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--primary-violet);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--primary-violet);
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-violet);
}

.period {
    font-size: 1rem;
    color: #64748B;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
}

.features i {
    color: var(--primary-violet);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--neon-violet);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: #CBD5E1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--neon-violet);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9CA3AF;
}

/* Formularios */
.form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--light-gray);
}

.form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 400px;
}

.form-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.form-link {
    text-align: center;
    margin-top: 1rem;
}

.form-link a {
    color: var(--primary-violet);
    text-decoration: none;
    font-weight: 600;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
    min-height: 100vh;
    background: var(--light-gray);
}

.dashboard-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.dashboard-title {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 1rem;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-violet);
    color: var(--white);
}

.main-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

/* Orders */
.order-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.order-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: #E2E8F0;
    color: #64748B;
}

.step-indicator.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.step-indicator.completed {
    background: #10B981;
    color: var(--white);
}

.upload-area {
    border: 2px dashed var(--primary-violet);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--secondary-violet);
}

.upload-area.dragover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--neon-violet);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-violet);
    margin-bottom: 1rem;
}

.upload-text {
    color: #64748B;
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: #94A3B8;
}

.preview-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.preview-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-image .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.step-buttons .btn-primary,
.step-buttons .btn-secondary {
    flex: 1;
    max-width: 200px;
}

.order-summary {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.order-summary h4 {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E2E8F0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 600;
    color: #64748B;
}

.summary-item span:last-child {
    color: var(--dark-gray);
}

.price-highlight {
    color: var(--primary-violet);
    font-weight: bold;
    font-size: 1.2rem;
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h4 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-violet);
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.payment-option i {
    font-size: 1.5rem;
    color: var(--primary-violet);
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1rem;
}

.success-message h4 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.success-message p {
    color: #64748B;
    margin-bottom: 0.5rem;
}

.order-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.order-details h4 {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E2E8F0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span:first-child {
    font-weight: 600;
    color: #64748B;
}

.detail-item span:last-child {
    color: var(--dark-gray);
}

/* Orders List */
.orders-list {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.order-item {
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-info h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.order-info p {
    color: #64748B;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .order-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10B981;
}

.notification.error {
    background: #EF4444;
}

.notification.warning {
    background: #F59E0B;
}

.notification.info {
    background: var(--primary-violet);
} 

/* Mejoras para la sección de procesar video y dashboard admin */
#video-processing .video-processing-form {
    padding: 2.5rem 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
#video-processing .form-group {
    margin-bottom: 1.5rem;
}
#video-processing .watermark-config {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-card);
}
#video-processing .watermark-preview-container {
    margin-top: 1.5rem;
    text-align: center;
}
#video-processing #watermark-preview {
    min-height: 260px;
    background: #111;
    border: 2px dashed #8B5CF6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}
#video-processing #watermark-preview video {
    max-width: 100%;
    max-height: 240px;
    background: #000;
    z-index: 1;
    position: relative;
}
#video-processing #watermark-preview #watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background: transparent !important;
}
#watermark-text-overlay {
    z-index: 3;
    position: absolute;
    pointer-events: none;
}
#video-processing .processing-controls {
    margin-top: 2rem;
    text-align: center;
} 

/* MODAL MEJORADO */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(2px);
    transition: background 0.3s;
}
.modal-content {
    background: #fff;
    margin: 60px auto;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 18px;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.18), 0 1.5px 8px #0002;
    position: relative;
    animation: fadeInUp 0.3s;
}
.order-details-modal h3 {
    text-align: center;
    color: var(--primary-violet);
    margin-bottom: 1.2em;
    font-size: 1.5em;
    font-weight: 700;
}
.order-details-modal p, .order-details-modal label, .order-details-modal textarea, .order-details-modal input {
    font-size: 1em;
    margin-bottom: 0.5em;
    color: #333;
}
.order-details-modal textarea {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 0.5em;
    resize: none;
}
.order-details-modal input[readonly] {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.2em 0.5em;
}
.order-modal-images {
    margin-bottom: 1.2em;
}
.order-modal-images img.order-modal-thumb {
    transition: box-shadow 0.2s, transform 0.2s;
    border: 2px solid #e5e7eb;
}
.order-modal-images img.order-modal-thumb:hover {
    box-shadow: 0 0 0 3px var(--primary-violet), 0 2px 8px #0002;
    transform: scale(1.08);
    border-color: var(--primary-violet);
}
.modal .btn-secondary {
    background: var(--gradient-neon);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.3em 1em;
    font-size: 0.95em;
    cursor: pointer;
    margin-top: 0.2em;
    transition: background 0.2s;
}
.modal .btn-secondary:hover {
    background: var(--primary-violet);
}
.modal-close, .close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.7em;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    transition: color 0.2s;
}
.modal-close:hover, .close:hover {
    color: var(--primary-violet);
}
/* Modal de imagen grande */
#bigImageModal .modal-content {
    max-width: 600px;
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.18), 0 1.5px 8px #0002;
    text-align: center;
}
#bigImageModal img {
    border-radius: 10px;
    box-shadow: 0 2px 12px #0002;
    background: #f8fafc;
}
@media (max-width: 600px) {
    .modal-content, #bigImageModal .modal-content {
        max-width: 98vw;
        padding: 1rem 0.5rem;
    }
} 

/* --- MENÚ HAMBURGUESA Y RESPONSIVE DASHBOARD --- */
.mobile-menu {
    display: none;
    font-size: 2rem;
    color: var(--primary-violet);
    cursor: pointer;
    margin-left: 1rem;
}

@media (max-width: 900px) {
    .container {
        padding: 0 8px;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--white);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        box-shadow: var(--shadow-card);
        border-radius: 12px;
        z-index: 2002;
        padding: 1rem 0;
    }
    .nav-links.open {
        display: flex;
        z-index: 3000;
    }
    .mobile-menu {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -220px;
        top: 60px;
        width: 200px;
        height: calc(100vh - 60px);
        background: var(--white);
        box-shadow: var(--shadow-card);
        z-index: 2001;
        transition: left 0.3s;
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }
    .dashboard-content {
        flex-direction: column;
        padding: 0;
    }
    .orders-list, .order-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .order-item {
        padding: 1rem 0.5rem;
    }
    .form-group, .form-input, .form-control, .btn-primary, .btn-secondary {
        width: 100%;
        font-size: 1.1em;
    }
    .modal-content {
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }
}

@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    .sidebar {
        width: 160px;
        font-size: 1em;
    }
    .orders-list, .order-item {
        font-size: 0.98em;
    }
    .btn-primary, .btn-secondary {
        font-size: 1em;
        padding: 0.7em 1em;
    }
    .modal-content {
        max-width: 99vw;
        padding: 0.7rem 0.2rem;
    }
}

/* --- FIN MENÚ HAMBURGUESA Y RESPONSIVE --- */ 
/*
 ========================================
   ESTILOS DE NOTIFICACIONES
   ======================================== */

.notification-config {
    background: var(--white);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.notification-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.notification-config h4 {
    color: var(--primary-violet);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-config h4 i {
    font-size: 1.5rem;
}

.config-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-help {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-violet);
    border: 2px solid var(--primary-violet);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--primary-violet);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notification-status {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.notification-status h4 {
    color: var(--primary-violet);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.status-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-enabled {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.status-disabled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .notification-config {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .status-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .notification-config h4 {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .config-description {
        text-align: center;
    }
}/* 
========================================
   ESTILOS ADICIONALES PARA CONFIGURACIÓN COMPLETA
   ======================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--primary-violet);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.form-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-violet);
    border-color: var(--primary-violet);
}

.form-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
    font-size: 14px;
}

.form-checkbox:hover .checkmark {
    border-color: var(--secondary-violet);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Responsive para formularios de configuración */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-checkbox {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-row {
        margin-bottom: 0.5rem;
    }
    
    .form-help {
        font-size: 0.8rem;
    }
}/* =
=======================================
   ESTILOS PARA MODAL DE DETALLES DE ORDEN
   ======================================== */

.order-details-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

.order-detail-section {
    background: var(--white);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.order-detail-section h4 {
    color: var(--primary-violet);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
    padding-bottom: 0.5rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.order-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 6px;
    border-left: 3px solid var(--primary-violet);
}

.info-label {
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    font-weight: 500;
    color: var(--primary-violet);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.status-processing {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
}

.status-completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.status-cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.prompt-container {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--primary-violet);
}

.prompt-text {
    width: 100%;
    min-height: 80px;
    border: none;
    background: transparent;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-gray);
}

.prompt-text:focus {
    outline: none;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    text-align: center;
}

.image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.image-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-preview:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 92, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: var(--white);
    font-size: 1.5rem;
}

.image-actions {
    margin-top: 0.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: var(--primary-violet);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--secondary-violet);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.video-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Modal de imagen ampliada */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.image-modal-close:hover {
    color: var(--primary-violet);
}

/* Responsive para modal de detalles */
@media (max-width: 768px) {
    .order-details-container {
        padding: 0.5rem;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-info-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .image-preview {
        width: 100px;
        height: 100px;
    }
    
    .video-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .order-detail-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .order-detail-section h4 {
        font-size: 1.1rem;
    }
    
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilos para cupones */
.coupon-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.coupon-section:hover {
    border-color: var(--primary-violet);
    background: #f5f3ff;
}

.coupon-section h4 {
    color: var(--primary-violet);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.coupon-input-group input {
    flex: 1;
}

.coupon-input-group button {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 14px;
}

.coupon-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.coupon-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.coupon-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.coupon-discount {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #28a745;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #155724;
    font-weight: 500;
}

.discount-info i {
    color: #28a745;
}

.btn-link {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: #495057;
}

.discount-highlight {
    color: #28a745 !important;
    font-weight: 600;
}

.price-highlight.free {
    color: #28a745 !important;
    font-size: 1.2em;
    font-weight: bold;
}

.free-video-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
    animation: pulse-green 2s infinite !important;
}

.free-video-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea080) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

@keyframes pulse-green {
    0% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
}

/* Estilos para la gestión de cupones en admin */
.coupons-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.coupons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.coupons-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.coupons-table th,
.coupons-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.coupons-table th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--dark-gray);
}

.coupon-code {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.coupon-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.coupon-type.free-video {
    background: #d4edda;
    color: #155724;
}

.coupon-type.discount {
    background: #cce5ff;
    color: #004085;
}

.coupon-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.coupon-status.active {
    background: #d4edda;
    color: #155724;
}

.coupon-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.coupon-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-icon.edit {
    background: #007bff;
    color: white;
}

.btn-icon.edit:hover {
    background: #0056b3;
}

.btn-icon.delete {
    background: #dc3545;
    color: white;
}

.btn-icon.delete:hover {
    background: #c82333;
}

.btn-icon.toggle {
    background: #6c757d;
    color: white;
}

.btn-icon.toggle:hover {
    background: #545b62;
}

/* Modal para cupones */
.coupon-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.coupon-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.coupon-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.coupon-form-row .form-group {
    flex: 1;
}

.datetime-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .coupon-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coupon-input-group button {
        margin-top: 10px;
    }
    
    .coupons-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .coupons-table {
        font-size: 12px;
    }
    
    .coupons-table th,
    .coupons-table td {
        padding: 8px 4px;
    }
    
    .coupon-actions {
        flex-direction: column;
        gap: 2px;
    }
    
    .coupon-form-row {
        flex-direction: column;
    }
}