:root {
  /* Paleta tomada del logo (olas de claro a oscuro) */
  --azul-900: #15304d;
  --azul-700: #274f72;
  --azul-600: #2d5a9b;
  --azul-500: #3d7abd;
  --azul-100: #e8eff8;
  --azul-claro: #9cc3ea;   /* acentos sobre fondos oscuros */
  --acento: #3d7abd;
  --acento-hover: #2d5a9b;
  --bg: #f4f6f9;
  --card: #fff;
  --text: #141e29;
  --muted: #5a6878;
  --line: #e1e6ed;
  --wa: #1fae55;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(21, 48, 77, .08);
  --shadow-lg: 0 18px 50px rgba(21, 48, 77, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; margin: 0 0 .4em; color: var(--azul-900); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--azul-600); margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0; }
.muted { color: var(--muted); }
.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.i { width: 18px; height: 18px; flex: none; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 36px; height: 36px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 20px;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, transform .1s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acento); color: #fff; }
.btn-primary:hover { background: var(--acento-hover); }
.btn-dark { background: var(--azul-900); color: #fff; }
.btn-dark:hover { background: var(--azul-700); }
.btn-ghost { background: #fff; color: var(--azul-900); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--azul-900); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.94); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* Barra superior */
.topbar { background: var(--azul-900); color: #cfdbe3; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.tb-left { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.uf strong { color: #fff; }
.social { display: flex; gap: 12px; }
@media (max-width: 560px) { .topbar [data-href="mail"] { display: none; } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 44px; width: auto; flex: none; }
.logo-text { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; color: var(--text); line-height: 1; white-space: nowrap; }
.logo-text small { display: block; font: 400 10px "Playfair Display", Georgia, serif; letter-spacing: .52em; margin-right: -.52em; color: var(--text); text-transform: uppercase; margin-top: 5px; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--azul-900); }
.nav a:not(.btn):hover { background: var(--bg); }
.nav .btn { margin-left: 10px; padding: 10px 16px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--azul-900); }
.menu-toggle .i { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(61, 122, 189, .4), transparent 60%),
    linear-gradient(135deg, var(--azul-900) 0%, var(--azul-700) 55%, var(--azul-600) 100%);
  padding: 88px 0 150px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 40c160 30 320 30 520 0s400-40 620-10 300 20 300 20v70H0z' fill='%233d7abd' fill-opacity='.45'/%3E%3Cpath d='M0 65c200 25 380 20 560-5s420-25 600 0 280 15 280 15v45H0z' fill='%232d5a9b' fill-opacity='.55'/%3E%3Cpath d='M0 92c180 18 360 14 540-4s420-16 620 2 280 8 280 8v22H0z' fill='%23f4f6f9'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero .eyebrow { color: var(--azul-claro); }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 60px); max-width: 760px; }
.hero p.lead { color: #d6e3ea; font-size: 18px; }

/* Buscador */
.search {
  position: relative; z-index: 2; margin-top: -96px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px;
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.search-tabs button {
  border: 0; background: var(--bg); color: var(--muted); font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.search-tabs button.on { background: var(--azul-900); color: #fff; }
.search-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 12px; }
@media (max-width: 1050px) { .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .search-grid { grid-template-columns: 1fr 1fr; } .search-grid .field-btn { grid-column: 1 / -1; } }

.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: 15px Inter, sans-serif; background: #fff; color: var(--text);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--azul-600); outline-offset: -1px; border-color: transparent; }
.field-btn { display: flex; align-items: end; }
.field-btn .btn { height: 45px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--azul-600); }

/* Listado */
.sort { min-width: 200px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #dde4ec; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.tag { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--azul-900); line-height: 1.2; }
.pill-venta { background: var(--azul-900); color: #fff; }
.pill-arriendo { background: var(--azul-600); color: #fff; }
.pill-dest { background: #fff; color: var(--azul-900); }
.card-meta {
  position: absolute; bottom: 10px; left: 12px; right: 12px; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 600; color: #fff;
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-size: 22px; font-weight: 700; color: var(--azul-900); }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card h3 { font: 600 16px/1.35 Inter, sans-serif; margin: 0; color: var(--text); }
.loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin: 0; }
.feats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.card .feats { margin-top: 10px; }
.feats li { display: flex; align-items: center; gap: 6px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--radius); color: var(--muted); }
.empty p { margin: 0 0 16px; }

/* Nosotros */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }
.benefit { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.benefit .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--azul-100); color: var(--azul-600); display: grid; place-items: center; margin-bottom: 12px; }
.benefit .ico .i { width: 22px; height: 22px; }
.benefit h3 { font: 600 16px Inter, sans-serif; margin: 0 0 4px; color: var(--azul-900); }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }

/* Vende con nosotros */
.sell { background: var(--azul-900); color: #d0dde5; }
.sell h2 { color: #fff; }
.sell .eyebrow { color: var(--azul-claro); }
.sell .lead { color: #c3d2db; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; counter-reset: paso; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li::before {
  counter-increment: paso; content: counter(paso);
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acento); color: #fff; font-weight: 700;
}
.steps strong { color: #fff; display: block; }
.form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); border: 0; margin: 0; min-width: 0; }
.form-card h3 { font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Contacto */
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-item { display: flex; gap: 14px; align-items: center; text-decoration: none; background: #fff; padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-item .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--azul-100); color: var(--azul-600); flex: none; }
.contact-item span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-item strong { color: var(--azul-900); }

/* Footer */
.footer { background: #0d1f33; color: #9fb3c0; padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .logo-text, .footer .logo-text small { color: #fff; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer li:has(> a[hidden]) { display: none; }
.footer-bottom { border-top: 1px solid #23405f; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .i { width: 28px; height: 28px; }

/* Detalle (modal) */
dialog.det {
  border: 0; padding: 0; border-radius: 18px; overflow-y: auto;
  width: min(1100px, 100% - 24px); max-width: none; max-height: calc(100dvh - 24px);
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog.det::backdrop { background: rgba(8, 22, 32, .72); }
.det-head {
  position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.det-code { font-size: 14px; color: var(--muted); margin-left: 6px; }
.det-actions { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--azul-900); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--azul-900); }
.gallery { position: relative; background: #0d1d2e; }
/* contain: las fotos verticales se ven completas, sin recortes */
.gallery-main { width: 100%; aspect-ratio: 16 / 9; max-height: 68vh; object-fit: contain; }
@media (max-width: 700px) { .gallery-main { aspect-ratio: 1 / 1; } }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--azul-900); display: grid; place-items: center;
}
.gal-nav.prev { left: 14px; }
.gal-nav.next { right: 14px; }
.gal-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: #0d1d2e; scrollbar-width: thin; }
.thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .55; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--acento); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.det-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; padding: 28px; }
@media (max-width: 900px) { .det-body { grid-template-columns: 1fr; padding: 22px 16px; } }
.det-body h2 { margin-bottom: 6px; }
.det-body h3 { font-size: 20px; margin-top: 30px; }
.det-body .price { font-size: 28px; margin-top: 12px; }
.desc { white-space: pre-line; margin: 0; }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.spec div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.spec span { display: block; font-size: 12px; color: var(--muted); }
.spec strong { font-size: 16px; color: var(--azul-900); }
.video-wrap { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap.short { aspect-ratio: 9 / 16; max-width: 340px; }
.video-wrap iframe, .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-ph { aspect-ratio: 16 / 9; border-radius: 12px; border: 2px dashed #c6ced2; background: #fff; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--muted); padding: 20px; }
.video-ph p { margin: 0; max-width: 420px; }
.map { aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; background: #dde4ec; }
.aside-card { position: sticky; top: 80px; display: grid; gap: 10px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.aside-card .price { margin: 0; font-size: 24px; }
.aside-card p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px);
  background: var(--azul-900); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Panel de administración ---------- */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(135deg, var(--azul-900), var(--azul-600));
}
.login-card { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.login-card h1 { font-size: 26px; margin: 8px 0 0; }
.note { background: #fff7e6; border: 1px solid #f1d9a6; color: #6b4a0c; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 0; }
.admin-bar { background: var(--azul-900); color: #fff; position: sticky; top: 0; z-index: 20; }
.admin-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.admin-bar .logo-text { color: #fff; font-size: 18px; }
.admin-bar .logo-text small { color: var(--azul-claro); }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-nav a, .admin-nav button { color: #d0dde5; background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 500; }
.admin-nav a:hover, .admin-nav button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.panel { padding: 28px 0 64px; display: grid; gap: 24px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
.t-title { white-space: normal; min-width: 220px; }
.thumb { width: 64px; height: 46px; border-radius: 6px; object-fit: cover; background: #dde4ec; }
.status { border: 0; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; background: #eceff3; color: var(--muted); }
.status.on { background: #dff3e7; color: #17733f; }
.row-actions { display: flex; gap: 6px; }
.admin-form { display: grid; gap: 20px; }
.admin-form legend { font-family: "Playfair Display", serif; font-weight: 700; font-size: 20px; color: var(--azul-900); padding: 0; float: left; width: 100%; margin-bottom: 16px; }
.admin-form .form-card { box-shadow: var(--shadow); }
.admin-form .form-grid { clear: both; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-form .form-grid .half { grid-column: span 2; }
@media (max-width: 800px) { .admin-form .form-grid { grid-template-columns: 1fr 1fr; } }
.checks { display: flex; gap: 24px; flex-wrap: wrap; }
.uploader { clear: both; display: grid; justify-items: center; gap: 6px; border: 2px dashed #c6ced2; border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; color: var(--muted); transition: .2s; }
.uploader:hover, .uploader.drag { border-color: var(--azul-600); background: var(--azul-100); color: var(--azul-600); }
.uploader .i { width: 30px; height: 30px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.preview { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #dde4ec; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.preview .cover { position: absolute; left: 6px; bottom: 6px; }
.preview .mk { position: absolute; left: 6px; bottom: 6px; border: 0; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .9); color: var(--azul-900); cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn-peligro { color: #b3261e; margin-right: auto; }
.btn-peligro:hover { border-color: #b3261e; }
.btn[disabled] { opacity: .6; cursor: wait; }
.field .err { margin: 6px 0 0; font-size: 13px; }
.field.con-error input, .field.con-error select, .field.con-error textarea { border-color: #b3261e; }
.preview .orden { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.preview .orden button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.preview .orden button[disabled] { opacity: .3; cursor: default; }
.preview.subiendo img { opacity: .4; }
.preview .estado { position: absolute; inset: auto 6px 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; text-align: center; }
.preview.fallo .estado { background: #b3261e; }
.cargando { padding: 48px 16px; text-align: center; color: var(--muted); }
.err { color: #b3261e; font-size: 14px; margin: 8px 0 0; }
#video-prev { margin-top: 14px; max-width: 560px; }
