/* ============================================================
   main.css — Estilos globales de Slover Clip
   ============================================================ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
    --primary:       #7c3aed;
    --primary-light: #a855f7;
    --secondary:     #ec4899;
    --secondary-light: #f472b6;
    --bg:            #0a0a0f;
    --bg-card:       #111118;
    --bg-card2:      #1a1a2e;
    --border:        #2a2a3e;
    --text:          #e2e8f0;
    --text-muted:    #94a3b8;
    --text-dim:      #64748b;
    --success:       #10b981;
    --warning:       #f59e0b;
    --error:         #ef4444;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow:   0 0 30px rgba(124,58,237,0.3);
    --transition:    all 0.3s ease;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--secondary-light); }

img { max-width: 100%; display: block; }

input, textarea, select, button {
    font-family: var(--font);
    font-size: 1rem;
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ── SELECCIÓN ──────────────────────────────────────────────── */
::selection {
    background: var(--primary);
    color: white;
}

/* ── TIPOGRAFÍA ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.7; }

/* ── BOTONES ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(124,58,237,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124,58,237,0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(124,58,237,0.08);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.btn-danger {
    background: var(--error);
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.card:hover {
    border-color: rgba(124,58,237,0.3);
    box-shadow: var(--shadow-glow);
}

.card-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
}

/* ── INPUTS ─────────────────────────────────────────────────── */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
    outline: none;
}
.input:focus {
    border-color: var(--primary);
    background: rgba(124,58,237,0.06);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.input::placeholder { color: var(--text-dim); }

textarea.input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-primary { background: rgba(124,58,237,0.2); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.3); }
.badge-success { background: rgba(16,185,129,0.2); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-error   { background: rgba(239,68,68,0.2);  color: var(--error);   border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.2); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.navbar__logo img { height: 36px; width: auto; }
.navbar__logo span {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.navbar__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.navbar__links a:hover { color: var(--text); }

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,58,237,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%,  rgba(236,72,153,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero__video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.34;
    filter: saturate(1.15) contrast(1.08);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,15,0.25), rgba(10,10,15,0.76)),
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(10,10,15,0.12), rgba(10,10,15,0.66));
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 48px;
}

.hero__copy {
    text-align: left;
    max-width: 720px;
}

.hero__preview {
    width: min(100%, 300px);
    aspect-ratio: 9/16;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 24px 80px rgba(124,58,237,0.35);
    position: relative;
}

.hero__preview video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 28px;
    font-weight: 500;
}

.hero__title {
    margin-bottom: 24px;
    color: white;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-cta {
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
}

/* ── SECCIÓN ────────────────────────────────────────────────── */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section__title {
    margin-bottom: 16px;
    color: white;
}

.section__subtitle {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── GRID ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── CRÉDITOS DISPLAY ───────────────────────────────────────── */
.credits-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-light);
}
.credits-display .icon { font-size: 1.1rem; }

/* ── TOAST NOTIFICATIONS ────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInRight 0.3s ease;
    box-shadow: var(--shadow);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info    { border-left: 3px solid var(--primary); }

.toast__icon { font-size: 1.2rem; }
.toast__msg  { font-size: 0.9rem; flex: 1; color: var(--text); }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: scale(1); }

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.modal__title { font-size: 1.3rem; font-weight: 700; color: white; }
.modal__close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.modal__close:hover { color: var(--text); }

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 64px 24px 32px;
    margin-top: 80px;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand p {
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 280px;
}

.footer__col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col ul a {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer__col ul a:hover { color: var(--text); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .navbar__links { display: none; }
    .navbar { padding: 12px 0; }
    .navbar__inner {
        padding: 0 12px;
        gap: 8px;
        min-width: 0;
        justify-content: space-between;
    }
    .navbar__logo {
        gap: 8px;
        min-width: 0;
        flex: 0 1 auto;
    }
    .navbar__logo img {
        height: 34px;
        flex-shrink: 0;
    }
    .navbar__logo span {
        font-size: 1rem;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 96px;
    }
    .navbar__actions {
        gap: 8px;
        flex: 0 0 auto;
    }
    .navbar__actions .btn-ghost {
        display: none;
    }
    .navbar__actions .btn-primary {
        width: 74px;
        min-width: 74px;
        height: 42px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
        position: relative;
    }
    .navbar__actions .btn-primary::before {
        content: "Gratis";
        color: white;
        font-size: 0.86rem;
        line-height: 1;
    }
    .navbar__inner > div:has(.credits-display) {
        flex: 0 0 auto;
        gap: 8px !important;
        min-width: 0;
    }
    .user-nav-actions {
        flex: 0 0 auto !important;
        gap: 8px !important;
    }
    .navbar__inner > div:has(.credits-display) .btn-ghost {
        display: none;
    }
    .user-nav-actions .btn-ghost {
        display: none;
    }
    .navbar__inner > div:has(.credits-display) .btn-primary {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
        position: relative;
    }
    .user-nav-actions .btn-primary {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
        position: relative;
    }
    .navbar__inner > div:has(.credits-display) .btn-primary::before {
        content: "+";
        color: white;
        font-size: 1.45rem;
        line-height: 1;
    }
    .user-nav-actions .btn-primary::before {
        content: "+";
        color: white;
        font-size: 1.45rem;
        line-height: 1;
    }
    .credits-display {
        gap: 6px;
        padding: 7px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .credits-display span:last-child {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero {
        min-height: auto;
        padding: 104px 16px 56px;
    }
    .hero__video-bg {
        display: none;
    }
    .hero__content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .hero__copy {
        text-align: center;
        margin: 0 auto;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__preview {
        width: min(58vw, 220px);
        margin: 0 auto;
        border-radius: 22px;
    }
    .hero__actions .btn,
    .hero-cta {
        width: min(100%, 320px);
        padding-left: 18px;
        padding-right: 18px;
    }
    .hero-cta {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .navbar__logo span {
        display: none;
    }
    .navbar__logo img {
        height: 32px;
    }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── UTILIDADES ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: white !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-primary { color: var(--primary-light) !important; }
.text-success { color: var(--success) !important; }
.text-error   { color: var(--error) !important; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.w-full  { width: 100%; }
.hidden  { display: none !important; }
.visible { display: block !important; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
