:root {
    --primary: #a855f7;
    --primary-dark: #7e22ce;
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #f59e0b;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

/* ... Estilos base anteriores ... */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* ESPACIOS DE PUBLICIDAD */
.ad-wrapper {
    width: 100%;
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
}

.ad-placeholder-box {
    width: 100%;
    max-width: 728px;
    height: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #444;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder-box span {
    font-size: 0.7rem;
    color: #333;
    margin-top: 5px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

/* Glass Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 4rem;
}

.input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

input[type="text"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
    outline: none;
}

/* Video Preview */
.preview-box {
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.preview-box img {
    width: 140px;
    border-radius: 10px;
    object-fit: cover;
}

.preview-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-info p {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.4rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.modern-select {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

/* Trimmer */
.trimmer-section {
    margin-bottom: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid var(--border);
}

.trimmer-title {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trimmer disabled state */
.trimmer-controls-wrapper.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Slider Doble */
.dual-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 1.5rem;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    pointer-events: none;
}

.dual-slider-container input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    height: 6px;
    margin: 0;
    padding: 0;
}

.dual-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.5);
    transition: transform 0.15s;
}

.dual-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.dual-slider-container input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.5);
}

/* Labels bajo el slider */
.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-range-badge {
    background: rgba(168, 85, 247, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Inputs manuales del trimmer */
.trim-inputs {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.trim-input-group {
    flex: 1;
}

.trim-input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.trim-inputs input {
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
    text-align: center;
}

/* Error de validación */
.trim-error-msg {
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Buttons */
.main-cta {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.5);
}

.main-cta:active {
    transform: scale(0.98);
}

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

.feature-card {
    background: var(--glass);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

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

/* How it works */
.how-it-works {
    text-align: center;
    margin-bottom: 5rem;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 200px;
}

.step span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--primary);
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-section {
    margin-bottom: 5rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--glass);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.2rem 1.2rem 1.2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Status Toast */
.status-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2000;
    animation: toastFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-toast.success {
    background: #10b981;
    color: white;
}

.status-toast.error {
    background: #ef4444;
    color: white;
}

/* Estilo uniforme para todas las opciones del menú */
.modern-select option {
    background-color: #0f172a;
    /* El mismo fondo oscuro de la página */
    color: white;
}

.premium-option {
    color: var(--accent) !important;
}

/* Premium Lock Message */
.ad-notice {
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--accent);
    margin-bottom: 1.5rem;
}

.glass-button {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.glass-button:hover {
    background: var(--accent);
    color: white;
}

/* Ad Overlay (Premium) */
.ad-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-box {
    background: #1e293b;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.ad-video-placeholder {
    height: 250px;
    background: #0f172a;
    border: 2px dashed #334155;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    border-radius: 12px;
}

/* --- ESTILOS PARA LEGALES, CONTACTO Y BLOG --- */
.content-panel {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: left;
}

.content-panel h2,
.content-panel h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-panel p,
.content-panel li {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.content-panel ul {
    padding-left: 2rem;
    margin-bottom: 1.2rem;
}

/* Formulario de Contacto */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.contact-form label {
    font-weight: 600;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

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

.blog-card-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e1b4b, #3b0764);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.blog-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
}

/* Tablas del Blog */
.table-responsive-wrapper { width: 100%; overflow-x: auto; margin: 2rem 0; border-radius: 12px; border: 1px solid var(--border); background: rgba(30, 41, 59, 0.4); }
.content-panel table { width: 100%; border-collapse: collapse; min-width: 500px; }
.content-panel th { background: rgba(168, 85, 247, 0.2); color: var(--primary); font-weight: 800; text-align: left; padding: 1.2rem; border-bottom: 2px solid var(--border); }
.content-panel td { padding: 1.2rem; color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.content-panel tr:last-child td { border-bottom: none; }
.content-panel tr:hover { background: rgba(255, 255, 255, 0.02); }

.hidden {
    display: none !important;
}

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

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bar Simulation */
.progress-wrapper {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    border: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

#progress-text {
    color: var(--text-muted);
}

#progress-percent {
    color: var(--primary);
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary), #ec4899);
    border-radius: 20px;
    transition: width 0.4s cubic-bezier(0.1, 0.5, 0.5, 1);
    position: relative;
}

.cancel-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-cta:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 3000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: toastFadeIn 0.5s ease;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.cookie-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: var(--primary);
}

.cookie-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.cookie-btn:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}