/* ================= CUSTOM FONTS — HBOMaxSans ================= */
@import url('https://satvplus.com.ar/css/fonts/hbomaxsans/hbomaxsans.css');

/* SATV base UI (Vidstack themed by your external 1.css + 2.css) */
:root {
    --bg: #07090d;
    --panel: #0e1420;
    --panel2: #111724;
    --text: #f5f7fb;
    --muted: #b6bfd1;
    --satvblue: #2563eb;
    --line: rgba(255, 255, 255, .08);
    --shadow: 0 18px 55px rgba(0, 0, 0, .34);
    --radius: .25em;
    --radius2: .25em;
    --ep-radius: .25em;
    --hero-overlay: #07090d;

    /* carousel tuning */
    --edge-fade: 120px;
    --arrow-w: 48px;
    --arrow-h: 92px;

    /* ✅ CONTROL DEL PEGADO DEL LOGO A LA PARED */
    --logo-gap: 18px;
    /* ponelo en 4px si lo querés todavía más pegado */
}

* {
    box-sizing: border-box;
    font-family: "HBOMaxSans" !important;
}

/* =========================================================
   🚀 RESPONSIVE OVERDRIVE (solo :root pedido)
   ========================================================= */
:root {
    --ui-pad-x: clamp(12px, 2vw, 24px);
    --ui-pad-y: clamp(10px, 1.6vw, 18px);
    --section-x: clamp(10px, 2.4vw, 28px);
    --hero-pad-x: clamp(16px, 5vw, 80px);
    --hero-pad-y: clamp(14px, 3vw, 28px);
}

/* ================= BASE ================= */

html {
    -webkit-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

button,
.btn,
.dropdown-selected,
.dropdown-option {
    touch-action: manipulation;
}

button,
.btn {
    min-height: 40px;
}

.container {
    margin: 0 auto;
    padding: var(--ui-pad-y) var(--ui-pad-x);
    width: 100%;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

/* ================= NAV (solo shell que usa este HTML) ================= */

.topnav {
    position: relative;
    top: 0;
    z-index: 9999;
    background: #1719245c;
    border-bottom: 1px solid var(--line);
    width: 100%;
}

/* OJO: esto también le pega a <main class="container"> en tu upload page */
.topnav+.container {
    padding-top: 0 !important;
}

.topnav .container,
.topnav .nav-inner.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: var(--logo-gap);
    padding-right: 18px;
}

/* ================= PANELS / FORMS ================= */

.panel {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 16px;
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    outline: none;
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    font-size: 16px;
    /* evita zoom iOS */
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn {
    background: var(--satvblue);
    color: white;
    border: none;
    border-radius: var(--ep-radius);
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    color: var(--satvblue);
    background: #fff;
}

/* ================= TOASTS ================= */

.toast-host {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    width: min(360px, calc(100vw - 24px));
}

.toast {
    opacity: 0;
    transition: all .18s ease;
    padding: 12px 14px;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    color: var(--text);
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow);
}

.toast.show {
    opacity: 0;
}

.toast.success {
    border-color: rgba(0, 200, 120, .35);
}

.toast.error {
    border-color: rgba(255, 80, 80, .35);
}

.toast.info {
    border-color: rgba(120, 160, 255, .35);
}

/* =========================================================
   🔥 CUSTOM DROPDOWN (usado por ambos forms)
   ========================================================= */

.dropdown {
    position: relative;
    width: 15em;
    user-select: none;
}

/* Caja principal */
.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: border .2s ease, background .2s ease;
}

.dropdown-selected:hover {
    background: rgba(255, 255, 255, .04);
}

.dropdown.open .dropdown-selected {
    border-color: rgba(37, 99, 235, .6);
    background: rgba(255, 255, 255, .06);
}

/* Texto */
.dropdown-text {
    font-size: 14px;
    color: var(--text);
}

/* Flecha */
.dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform .25s ease, opacity .25s ease;
    opacity: .7;
}

.dropdown-arrow svg {
    width: 18px;
    height: 18px;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Opciones */
.dropdown-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    z-index: 30;
    max-height: min(40vh, 320px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.dropdown.open .dropdown-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Scroll interno elegante */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 6px;
}

/* Cada opción */
.dropdown-option {
    padding: 12px;
    cursor: pointer;
    transition: background .15s ease;
    font-size: 14px;
    min-height: 42px;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, .06);
}

.dropdown-option+.dropdown-option {
    border-top: 1px solid rgba(255, 255, 255, .05);
}

/* ================= RESPONSIVE (solo lo relevante para upload) ================= */

@media (min-width: 920px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 85%;
    }

    /* aunque .container sea 85%, el nav sigue full width por el override */
}

/* Mobile general */
@media (max-width: 768px) {
    .topnav {
        padding-top: env(safe-area-inset-top);
    }

    .container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        padding-left: var(--logo-gap);
        padding-right: 10px;
    }

    .dropdown {
        width: 100%;
        min-width: 0;
    }

    .dropdown-selected {
        min-height: 44px;
        border-radius: 12px;
    }

    .dropdown-options {
        border-radius: 12px;
    }

    .form-actions {
        gap: 8px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .toast-host {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        width: auto;
    }

    .toast {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --logo-gap: 10px;
    }

    .topnav {
        border-bottom-color: rgba(255, 255, 255, .06);
    }

    .nav-inner {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 10px;
    }

    .btn {
        padding: 9px 11px;
        font-size: 13px;
    }

    label {
        font-size: 12px;
        margin: 8px 0 5px;
    }

    input,
    select,
    textarea {
        border-radius: 12px;
        padding: 10px;
    }

    textarea {
        min-height: 80px;
    }

    .dropdown-selected {
        padding: 10px;
    }

    .dropdown-text,
    .dropdown-option {
        font-size: 13px;
    }

    .dropdown-options {
        max-height: 38vh;
    }

    .toast {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .btn {
        font-size: 12px;
    }
}

/* Reduced motion (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }

    .btn,
    .dropdown-options,
    .dropdown-arrow {
        transition: none !important;
    }
}

/* Hover real vs touch */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        color: white;
        background: var(--satvblue);
    }
}

/* ================= CUSTOM FONTS — HBOMaxSans ================= */
@import url('fonts/hbomaxsans/hbomaxsans.css');

/* SATV base UI (Vidstack themed by your external 1.css + 2.css) */
:root {
    --bg: #07090d;
    --panel: #0e1420;
    --panel2: #111724;
    --text: #f5f7fb;
    --muted: #b6bfd1;
    --satvblue: #2563eb;
    --line: rgba(255, 255, 255, .08);
    --shadow: 0 18px 55px rgba(0, 0, 0, .34);
    --radius: .25em;
    --radius2: .25em;
    --ep-radius: .25em;
    --hero-overlay: #07090d;

    /* carousel tuning */
    --edge-fade: 120px;
    --arrow-w: 48px;
    --arrow-h: 92px;

    /* ✅ CONTROL DEL PEGADO DEL LOGO A LA PARED */
    --logo-gap: 18px;
    /* ponelo en 4px si lo querés todavía más pegado */
}

* {
    box-sizing: border-box;
    font-family: "HBOMaxSans" !important;
}

/* =========================================================
   🚀 RESPONSIVE OVERDRIVE (solo :root pedido)
   ========================================================= */
:root {
    --ui-pad-x: clamp(12px, 2vw, 24px);
    --ui-pad-y: clamp(10px, 1.6vw, 18px);
    --section-x: clamp(10px, 2.4vw, 28px);
    --hero-pad-x: clamp(16px, 5vw, 80px);
    --hero-pad-y: clamp(14px, 3vw, 28px);
}

/* ================= BASE ================= */

html {
    -webkit-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

button,
.btn,
.dropdown-selected,
.dropdown-option {
    touch-action: manipulation;
}

button,
.btn {
    min-height: 40px;
}

.container {
    margin: 0 auto;
    padding: var(--ui-pad-y) var(--ui-pad-x);
    width: 100%;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

/* ================= NAV (solo shell que usa este HTML) ================= */

.topnav {
    position: relative;
    top: 0;
    z-index: 9999;
    background: #1719245c;
    border-bottom: 1px solid var(--line);
    width: 100%;
}

/* OJO: esto también le pega a <main class="container"> en tu upload page */
.topnav+.container {
    padding-top: 0 !important;
}

.topnav .container,
.topnav .nav-inner.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: var(--logo-gap);
    padding-right: 18px;
}

/* ================= PANELS / FORMS ================= */

.panel {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 16px;
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    outline: none;
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    font-size: 16px;
    /* evita zoom iOS */
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn {
    background: var(--satvblue);
    color: white;
    border: none;
    border-radius: var(--ep-radius);
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    color: var(--satvblue);
    background: #fff;
}

/* ================= TOASTS ================= */

.toast-host {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    width: min(360px, calc(100vw - 24px));
}

.toast {
    opacity: 0;
    transition: all .18s ease;
    padding: 12px 14px;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    color: var(--text);
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow);
}

.toast.show {
    opacity: 0;
}

.toast.success {
    border-color: rgba(0, 200, 120, .35);
}

.toast.error {
    border-color: rgba(255, 80, 80, .35);
}

.toast.info {
    border-color: rgba(120, 160, 255, .35);
}

/* =========================================================
   🔥 CUSTOM DROPDOWN (usado por ambos forms)
   ========================================================= */

.dropdown {
    position: relative;
    width: 15em;
    user-select: none;
}

/* Caja principal */
.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: border .2s ease, background .2s ease;
}

.dropdown-selected:hover {
    background: rgba(255, 255, 255, .04);
}

.dropdown.open .dropdown-selected {
    border-color: rgba(37, 99, 235, .6);
    background: rgba(255, 255, 255, .06);
}

/* Texto */
.dropdown-text {
    font-size: 14px;
    color: var(--text);
}

/* Flecha */
.dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform .25s ease, opacity .25s ease;
    opacity: .7;
}

.dropdown-arrow svg {
    width: 18px;
    height: 18px;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Opciones */
.dropdown-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    z-index: 30;
    max-height: min(40vh, 320px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.dropdown.open .dropdown-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Scroll interno elegante */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 6px;
}

/* Cada opción */
.dropdown-option {
    padding: 12px;
    cursor: pointer;
    transition: background .15s ease;
    font-size: 14px;
    min-height: 42px;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, .06);
}

.dropdown-option+.dropdown-option {
    border-top: 1px solid rgba(255, 255, 255, .05);
}

/* ================= RESPONSIVE (solo lo relevante para upload) ================= */

@media (min-width: 920px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 85%;
    }

    /* aunque .container sea 85%, el nav sigue full width por el override */
}

/* Mobile general */
@media (max-width: 768px) {
    .topnav {
        padding-top: env(safe-area-inset-top);
    }

    .container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        padding-left: var(--logo-gap);
        padding-right: 10px;
    }

    .dropdown {
        width: 100%;
        min-width: 0;
    }

    .dropdown-selected {
        min-height: 44px;
        border-radius: 12px;
    }

    .dropdown-options {
        border-radius: 12px;
    }

    .form-actions {
        gap: 8px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .toast-host {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        width: auto;
    }

    .toast {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --logo-gap: 10px;
    }

    .topnav {
        border-bottom-color: rgba(255, 255, 255, .06);
    }

    .nav-inner {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 10px;
    }

    .btn {
        padding: 9px 11px;
        font-size: 13px;
    }

    label {
        font-size: 12px;
        margin: 8px 0 5px;
    }

    input,
    select,
    textarea {
        border-radius: 12px;
        padding: 10px;
    }

    textarea {
        min-height: 80px;
    }

    .dropdown-selected {
        padding: 10px;
    }

    .dropdown-text,
    .dropdown-option {
        font-size: 13px;
    }

    .dropdown-options {
        max-height: 38vh;
    }

    .toast {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .btn {
        font-size: 12px;
    }
}

/* Reduced motion (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }

    .btn,
    .dropdown-options,
    .dropdown-arrow {
        transition: none !important;
    }
}

/* Hover real vs touch */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        color: white;
        background: var(--satvblue);
    }
}