/* App de AdaptaTuCV. Colores, tipografía y radios en brand/tokens.css (compartido con la landing),
   que cada página carga antes que este fichero junto con las fuentes de Google Fonts. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Nombres que usan las páginas y cv-*.js, sobre los tokens de la marca */
  --primary: var(--brand); --primary-hover: var(--brand-hover); --accent: var(--brand);
  --text: var(--ink); --surface2: var(--bg); --green: var(--success); --red: var(--danger);
  --radius: var(--radius-card);
}
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.has-shell { background: var(--surface); }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.02em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num, .mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.icon-inline { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; flex: none; }

/* Auth pages */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth .brand { margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; width: 100%; max-width: 440px; }
.card h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.card .subtitle { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.footer-link { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--muted); }
.footer-link a { text-decoration: none; font-weight: 600; }

/* Marca: icono + nombre con «CV» en azul */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { height: 32px; width: 32px; display: block; }
.brand-accent { color: var(--brand); }

/* Forms */
label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input, textarea, select { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--ink); font: inherit; font-size: .95rem; padding: 11px 13px; outline: none; margin-bottom: 16px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #7A859E; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; accent-color: var(--brand); }
.check { display: flex; align-items: center; margin-bottom: 16px; color: var(--ink); font-weight: 500; }
.field-help { color: var(--muted); font-size: .8rem; margin: -10px 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: var(--radius-control); font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2; padding: 12px 16px; cursor: pointer; text-align: center; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--brand); border-color: var(--brand); }
.btn-sm { width: auto; padding: 8px 13px; font-size: .85rem; }
.btn-outline { background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.btn-outline:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn-outline:disabled:hover { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-danger { background: var(--surface); border: 1px solid var(--danger-line); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.alert { border-radius: var(--radius-control); padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); }
.alert-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.alert-ok { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.alert-warn { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.alert .btn-outline { color: var(--ink); }

/* App shell: menú lateral blanco roto con borde derecho */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; padding: 22px 14px; z-index: 50; }
.sidebar .brand { margin: 0 10px 26px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-control); color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; border: 0; background: none; width: 100%; cursor: pointer; font: inherit; text-align: left; }
.nav-item:hover { background: var(--divider); color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sidebar-footer { margin-top: auto; }
.user-pill { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); padding: 10px 12px; font-size: .82rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.user-pill .user-plan { color: var(--brand); font-size: .74rem; font-weight: 600; margin-top: 2px; }
.main { margin-left: 248px; padding: 40px 48px 64px; max-width: 1148px; }
.topbar { display: none; }
.page-title { font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 28px; }
.panel { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
a.panel { transition: border-color .15s; }
a.panel:hover { border-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: .76rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.done { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.badge.failed { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.badge.running, .badge.pending, .badge.queued { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-line); }
.badge.is-locked { color: var(--muted); }
.credits-pill { display: inline-flex; gap: 6px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.job { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.job-head > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-title { font-weight: 600; }
.job-output { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-control); padding: 10px 12px; margin-top: 10px; font-size: .9rem; max-height: 260px; overflow: auto; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.progress { height: 6px; background: var(--divider); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; background: var(--brand); transition: width .4s; }
.gen-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.gen-step { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.gen-step.current { color: var(--ink); font-weight: 600; }
.gen-step.done { color: var(--ink); }
.gen-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; flex: none; box-sizing: border-box; }
.gen-step.done .gen-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.gen-step.current .gen-dot { border-color: var(--brand); border-top-color: transparent; animation: gen-spin .8s linear infinite; }
@keyframes gen-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gen-step.current .gen-dot { animation: none; border-top-color: var(--brand); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--border); }
.table-wrap { overflow-x: auto; }

/* Pricing */
.toggle { display: inline-flex; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.toggle button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.toggle button.active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(11, 18, 32, .08); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px 22px 22px; position: relative; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--brand); }
.plan .tag { position: absolute; top: -12px; left: 20px; background: var(--highlight); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.plan .name { color: var(--ink); font-size: .95rem; font-weight: 600; }
.plan .price { font-family: var(--font-mono); font-size: 2rem; font-weight: 500; letter-spacing: -.05em; margin: 8px 0 2px; }
.plan .price span { font-family: var(--font-sans); font-size: .92rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.plan ul { list-style: none; margin: 14px 0 22px; flex: 1; }
.plan li { padding: 4px 0 4px 22px; font-size: .92rem; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.offer { background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; margin-bottom: 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  /* El menú se pliega arriba: barra con el logo y el botón, y la lista se despliega debajo */
  .topbar { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 60; }
  .topbar .brand img { width: 28px; height: 28px; }
  .sidebar { display: none; position: fixed; inset: 60px 0 auto 0; width: auto; max-height: calc(100vh - 60px); overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 12px 14px; box-shadow: var(--shadow-float); }
  .sidebar.open { display: flex; }
  .sidebar > .brand { display: none; }
  .sidebar-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider); }
  .main { margin-left: 0; padding: 24px 16px 48px; }
  .page-title { font-size: 1.55rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 28px 20px; }
}
.file-list { display: flex; flex-direction: column; gap: 6px; margin: -8px 0 12px; }
.file-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-control); padding: 6px 10px; font-size: .88rem; }
input[type=file] { padding: 9px; cursor: pointer; }

/* Aviso fijo mientras el email no está confirmado */
.verify-bar { position: sticky; top: 12px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 22px; padding: 12px 14px; background: var(--warning-soft); border: 1px solid var(--warning-line); border-radius: var(--radius-control); color: var(--warning); font-size: .88rem; box-shadow: var(--shadow-float); }
.verify-bar strong { color: var(--ink); }
.verify-bar .grow { flex: 1 1 260px; }
.verify-bar .btn-sm { color: var(--ink); border-color: var(--warning-line); }
.verify-bar .btn-sm:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 820px) { .verify-bar { top: 72px; } }

/* Bloqueo de generación (email sin confirmar, tope gratis, revisión de uso) */
.gen-block { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.gen-block .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Elegir cómo desbloquear un resultado */
.unlock-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; text-align: left; }
.unlock-choice { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px 16px; color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.unlock-choice:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.unlock-choice:disabled { opacity: .5; cursor: not-allowed; }
.unlock-choice.best { border: 2px solid var(--brand); }
.unlock-choice .tag { position: absolute; top: -11px; left: 12px; background: var(--highlight); color: var(--ink); font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.unlock-choice .label { font-weight: 600; }
.unlock-choice .price { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 500; letter-spacing: -.04em; }
.unlock-choice .price span { font-family: var(--font-sans); font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.unlock-choice .note { font-size: .8rem; color: var(--muted); }

/* Consentimiento de desistimiento antes de pagar (obligatorio, sin marcar por defecto) */
.waiver-note { color: var(--muted); text-align: left; margin: 10px 0 0; line-height: 1.45; }
.waiver-note a { color: inherit; text-decoration: underline; }
#waiverBox .waiver-note { margin-top: 14px; }
.price s.was, .plan .price s.was { color: var(--muted); font-size: .6em; text-decoration-thickness: 1.5px; margin-right: 4px; }

/* Pantalla de espera mientras la API trabaja (leer el CV, entender la oferta, preparar la generación) */
.wait-screen { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px); }
.wait-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.wait-card h2 { font-size: 1.15rem; margin: 0; }
.wait-card .gen-steps { margin-top: 16px; }
.wait-note { margin-top: 18px; font-size: .84rem; color: var(--muted); }

/* ── AnunciaConIA ──────────────────────────────────────────────────────────── */
.btn-block { width: 100%; }
.btn-inline { width: auto; padding: 12px 22px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.allowance { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand-hover); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .88rem; }
.allowance .detail { font-weight: 500; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }

/* Galería de vídeos (vertical 9:16) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.video-card { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; background: var(--ink); aspect-ratio: 9 / 16; color: #fff; text-decoration: none; border: 1px solid var(--border); }
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card .vc-info { position: absolute; inset: auto 0 0 0; padding: 30px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.78)); font-size: .82rem; line-height: 1.3; }
.video-card .vc-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .vc-status { position: absolute; top: 8px; left: 8px; }
.video-card .vc-wait { position: absolute; inset: 0; }
.vc-wait { display: flex; color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center; background: linear-gradient(160deg, var(--brand), var(--brand-hover)); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: gen-spin .8s linear infinite; }

/* Actores */
.actor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.actor-card { position: relative; border: 2px solid transparent; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; text-align: left; font: inherit; color: inherit; }
.actor-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: var(--divider); }
.actor-card .ac-name { padding: 8px 10px; font-weight: 600; font-size: .9rem; }
.actor-card .ac-meta { padding: 0 10px 10px; font-size: .78rem; color: var(--muted); margin-top: -6px; }
.actor-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.actor-card.selected::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.actor-card .ac-del { position: absolute; top: 6px; left: 6px; width: auto; padding: 4px 8px; font-size: .75rem; }

/* Capturas del negocio */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.media-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--divider); border: 1px solid var(--border); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item button { position: absolute; top: 6px; right: 6px; width: auto; padding: 3px 8px; font-size: .75rem; }
.dropzone { border: 2px dashed var(--brand-line); border-radius: var(--radius-card); padding: 22px; text-align: center; background: var(--brand-soft); cursor: pointer; color: var(--brand-hover); font-weight: 600; }
.dropzone.over { border-color: var(--brand); }

/* Pasos al crear */
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex: none; }
.create-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 14px 0; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Vídeo */
.video-page { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 28px; align-items: start; }
.player { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); background: var(--ink); overflow: hidden; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player .vc-wait { position: relative; height: 100%; border-radius: var(--radius-lg); }
.script { white-space: pre-line; background: var(--bg); border-radius: var(--radius-control); padding: 14px; font-size: .92rem; }
@media (max-width: 820px) { .video-page { grid-template-columns: 1fr; } .player { max-width: 340px; margin: 0 auto; } }

/* Ventanas (aviso de planes) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(18, 11, 36, .55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px; width: 100%; max-width: 780px; box-shadow: var(--shadow-float); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal h2 { margin: 0 0 6px; }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.pw-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.pw-plan { position: relative; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.pw-plan.popular { border: 2px solid var(--brand); }
.pw-tag { position: absolute; top: -11px; left: 14px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pw-name { font-weight: 700; }
.pw-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.pw-price span { font-size: .9rem; color: var(--muted); font-weight: 500; }
.pw-videos { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.pw-plan .btn { margin-top: auto; }
.pw-single { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg); border-radius: var(--radius-control); padding: 12px 14px; margin-bottom: 10px; }
.pw-single .btn { width: auto; }
textarea { min-height: 120px; resize: vertical; }
.steps { list-style: none; margin: 10px 0 14px; padding: 0; }
.steps li { padding: 5px 0; color: var(--muted); }
.steps li.done { color: var(--ink); }
.steps li.current { color: var(--brand); font-weight: 600; }
/* Entornos (paso 3 de «Crear vídeo») */
.env-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.env-card { position: relative; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; font: inherit; color: inherit; text-align: left; }
.env-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--divider); }
.env-card span { display: block; padding: 7px 9px; font-weight: 600; font-size: .85rem; }
.env-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.env-auto { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: var(--brand-soft); color: var(--brand); font-size: 2rem; }
