* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(ellipse at top, #0f0f23 0%, #1a0b2e 35%, #16213e 100%);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.4s ease;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text .title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 100px);
    padding: 40px 30px;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

/* Left Content */
.content-left {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 40px;
}

.main-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.highlight-gradient {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffa726 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

.highlight-electric {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, #ff00ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: electricPulse 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes electricPulse {
    0%, 100% { background-position: 0% 50%; filter: brightness(1); }
    50% { background-position: 100% 50%; filter: brightness(1.2); }
}

.main-description {
    font-size: 20px;
    line-height: 1.7;
    color: #cbd5e0;
    margin-bottom: 20px;
    max-width: 520px;
    font-weight: 400;
}

.main-subdescription {
    font-size: 16px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 35px;
    max-width: 520px;
}

.cta-button {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    color: #0a0a0a;
    padding: 20px 40px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 45px;
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
}

.feature-tags {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* Right Content - Template Preview MEJORADO */
.content-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.template-preview-container {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
}

.template-preview-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.template-header {
    margin-bottom: 25px;
}

.template-category {
    display: inline-block;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.template-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.template-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.prompt-section {
    margin-bottom: 25px;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.prompt-header span {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

.copy-prompt-btn {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-prompt-btn:hover {
    background: rgba(0, 255, 136, 0.25);
    transform: scale(1.02);
}

.prompt-content {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    position: relative;
}

/* NUEVOS ESTILOS PARA EL PROMPT MEJORADO */
.prompt-text-enhanced {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(15, 15, 35, 0.9) 100%);
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.prompt-text-plain {
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
}

.prompt-text-plain * {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Template Actions */
.template-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: space-around;
}

.action-btn-primary,
.action-btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.action-btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.action-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* Template Tags */
.template-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 7px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00ff88;
}

.footer-copyright {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Scroll personalizado */
.prompt-content::-webkit-scrollbar {
    width: 6px;
}

.prompt-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.prompt-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

.prompt-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        max-width: 1200px;
        gap: 40px;
    }
    
    .content-left {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
        min-height: auto;
    }
    
    .content-left {
        margin-left: 0;
        text-align: center;
        align-items: center;
    }
    
    .main-title {
        font-size: clamp(36px, 8vw, 48px);
        text-align: center;
    }
    
    .template-preview-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .template-actions {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    
    .logo-text .title {
        font-size: 24px;
    }
    
    .main-container {
        padding: 15px;
    }
    
    .template-preview-container {
        padding: 20px 15px;
    }
    
    .prompt-content {
        max-height: 200px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .highlight-gradient,
    .highlight-electric {
        animation: none;
    }
    
    body::before {
        animation: none;
    }
}