/* 
   Theme: TextosQueDeslizam Premium Dark
   Font: Outfit, sans-serif
*/

:root {
    /* Color Palette - Deep Space & Neon Violet */
    --bg-primary: #030712;
    /* Very dark blue/black */
    --bg-secondary: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Glassy Slate 800 */
    --bg-hover: rgba(51, 65, 85, 0.8);
    /* Slate 700 */

    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --text-muted: #64748b;
    /* Slate 500 */

    --accent-primary: #8b5cf6;
    /* Violet 500 */
    --accent-hover: #7c3aed;
    /* Violet 600 */
    --accent-glow: rgba(139, 92, 246, 0.5);

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    /* Indigo -> Purple -> Pink */
    --gradient-subtle: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, #0f172a 100%);

    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(139, 92, 246, 0.3);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 25%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-primary);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Header */
.header {
    padding: 24px 0;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.logo {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    /* Glow text effect */
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Cards & Containers */
.upload-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.upload-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 800px;
    /* Increased max-width */
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

/* Top border gradient line */
.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.card-header {
    text-align: center;
    margin-bottom: 48px;
}

.card-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: white;
}

.card-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    color: var(--accent-primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 16px 20px;
    /* Taller inputs */
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:hover,
.form-select:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: var(--bg-secondary);
}

.form-handle-focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Custom File Input */
.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-label:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
}

.file-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.file-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Content Sections (SEO & Rich Text) */
.content-wrapper {
    margin-top: 80px;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 60px 0;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.content-block {
    margin-bottom: 60px;
}

.content-block h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: white;
    font-weight: 600;
}

.content-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
    padding: 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
}

.feature-item h4 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 12px;
}

/* FAQ List */
.faq-list {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.faq-item strong {
    display: block;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 8px;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Steps List */
.steps-list {
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-content {
    color: var(--text-muted);
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Style Switcher */
.style-switcher-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.switcher-header {
    text-align: center;
}

.switcher-header h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
}

.switcher-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: center;
}

.style-select-large {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b5cf6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    transition: all 0.2s ease;
}

.style-select-large:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-hover);
}

.style-select-large:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.status-message {
    text-align: center;
    min-height: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.tips-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 60px;
}

.tips-card h3 {
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-content ul {
    list-style: none;
}

.tips-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.tips-content li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 8px;
    font-weight: bold;
}

/* Carousel Framework */
.carousel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-card);
}

.carousel {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--accent-primary);
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

.slide-info {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
    pointer-events: none;
    z-index: 5;
}

/* Legal Pages */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    color: var(--text-secondary);
}

.legal-container h1,
.legal-container h2,
.legal-container h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    text-align: center;
}

.legal-container section {
    margin-bottom: 40px;
}

.legal-container ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-container li {
    margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upload-card {
        padding: 24px;
    }

    .card-header h2 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 2rem;
    }

    /* Results Page Mobile */
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .switcher-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .style-select-large {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        background: rgba(15, 23, 42, 0.9);
    }

    .tips-card {
        padding: 20px;
    }
}

/* Messages/Alerts */
.messages {
    margin-bottom: 24px;
}

.message {
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Additional Utilities */
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}