/* thepawnboard.com · ThePawnBoard by ThePawnKingdom · portada «próximamente» y páginas legales.
   Páginas legales: la maquetación de mybutlex.com/privacidad (Butlex/web/public/privacidad.html).
   Portada: la pantalla de entrada de ThePawnBoard (ThePawnBoard/src/acceso.css).
   Colores: los de esa pantalla de entrada (noche azul y oro), no el morado de Butlex. Sin corona. */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --night: #0B0E19; --night-2: #12162A; --edge: #232842; --edge-2: #343C5E;
  --linen: #F4F1EA; --linen-2: #B9B4A8; --linen-3: #8C877D;
  --oro: #D4AE5F; --oro-claro: #F0D79A; --oro-hondo: #8A6A2C;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --marca: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--linen); font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
img { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--oro); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
/* Nombre de la marca como en el programa: Figtree muy negrita y «Board» en oro claro */
.wm, .nombre { font-family: var(--marca); font-weight: 800; letter-spacing: -.02em; color: var(--linen); }
.wm em, .nombre em { font-style: normal; color: var(--oro-claro); }
.firma { font-family: var(--marca); font-weight: 500; letter-spacing: .06em; color: var(--oro); }

/* Selector de idioma: pastilla discreta */
.idioma { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, .22); background: rgba(11, 14, 25, .42); color: var(--linen);
  font: 500 13px/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.idioma:hover { border-color: var(--oro); color: var(--oro-claro); }
.idioma:active { background: rgba(212, 174, 95, .14); }

/* =====================================================================
   Portada (y 404): foto a pantalla completa con velo y tarjeta de cristal
   ===================================================================== */
.portada { position: relative; overflow-x: hidden; }
.fondo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
.fondo picture, .fondo img { width: 100%; height: 100%; }
.fondo img { object-fit: cover; object-position: center 42%; }
/* El velo de la pantalla de entrada: centro más claro, bordes casi negros, y algo más oscuro abajo */
.fondo::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 46%, rgba(11, 14, 25, .16) 0%, rgba(11, 14, 25, .50) 60%, rgba(8, 10, 18, .84) 100%),
    linear-gradient(180deg, rgba(11, 14, 25, .40) 0%, rgba(11, 14, 25, 0) 26%, rgba(11, 14, 25, .14) 68%, rgba(8, 10, 18, .78) 100%); }

.arriba { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding: 20px 24px 20px; }

.tarjeta { position: relative; z-index: 1; width: min(500px, calc(100% - 32px)); margin: auto;
  padding: 48px 48px 36px; border-radius: 24px; text-align: center; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(28, 32, 52, .80), rgba(14, 17, 30, .76));
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(212, 174, 95, .28);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
/* Filete dorado en el borde superior */
.tarjeta::before { content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent); }

/* Logo en un medallón con anillo dorado */
.medallon { width: 96px; height: 96px; border-radius: 25px; padding: 3px; margin-bottom: 24px;
  background: conic-gradient(from 200deg, var(--oro), var(--oro-claro), var(--oro-hondo), var(--oro));
  box-shadow: 0 0 0 7px rgba(212, 174, 95, .08), 0 12px 32px rgba(212, 174, 95, .2); }
.medallon img { width: 100%; height: 100%; border-radius: 22px; }
.medallon.chico { width: 72px; height: 72px; border-radius: 19px; margin-bottom: 18px; }
.medallon.chico img { border-radius: 16px; }

.nombre { margin: 0; font-size: clamp(36px, 9.6vw, 50px); line-height: 1.05; }
.portada .firma { margin-top: 8px; font-size: 14px; }

.separador { width: 100%; display: flex; align-items: center; gap: 14px; margin: 28px 0 24px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 174, 95, .5), transparent); }
.separador span { width: 7px; height: 7px; transform: rotate(45deg); background: var(--oro); box-shadow: 0 0 10px rgba(212, 174, 95, .5); }

.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); }
.aviso { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7.4vw, 38px); line-height: 1.12;
  letter-spacing: -.01em; color: var(--linen); text-wrap: balance; max-width: 13em; }
.aviso.chico { font-size: 26px; }
.eslogan { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 4.6vw, 21px); line-height: 1.4; color: var(--linen-2); text-wrap: balance; }

/* Botón principal: oro con texto oscuro, con estados */
.boton { margin-top: 32px; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; min-width: 220px;
  padding: 14px 32px; border-radius: 12px; border: 1px solid rgba(240, 215, 154, .55);
  background: linear-gradient(180deg, #E4C47F 0%, #CFA552 100%); color: #17120A;
  font: 650 15px/1.2 var(--marca); letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 10px 26px rgba(212, 174, 95, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease; }
.boton:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(212, 174, 95, .32), inset 0 1px 0 rgba(255, 255, 255, .45); }
.boton:active { transform: translateY(0); filter: brightness(.94); box-shadow: 0 4px 12px rgba(212, 174, 95, .2), inset 0 1px 2px rgba(0, 0, 0, .18); }
.boton:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 4px; border-radius: 12px; }
.boton.secundario { margin-top: 20px; background: transparent; color: var(--oro-claro); border-color: rgba(212, 174, 95, .45); box-shadow: none; }
.boton.secundario:hover { background-color: rgba(212, 174, 95, .1); filter: none; }
.correo { margin-top: 14px; font-size: 13.5px; letter-spacing: .02em; color: var(--linen-2); overflow-wrap: anywhere; }

/* Pie sobre la foto */
.pie-foto { position: relative; z-index: 1; padding: 28px 16px 24px; text-align: center; font-size: 13px; color: rgba(244, 241, 234, .7); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.pie-foto nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 24px; }
.pie-foto nav a { display: inline-block; padding: 8px 2px; color: var(--linen); text-decoration: none; letter-spacing: .04em; }
.pie-foto a { color: inherit; text-decoration: none; }
.pie-foto a:hover { color: var(--oro-claro); text-decoration: underline; }
.pie-foto p { margin-top: 2px; }

@media (max-width: 480px) {
  .arriba { padding: 14px 16px 16px; }
  .tarjeta { padding: 38px 22px 28px; border-radius: 22px; }
  .medallon { width: 80px; height: 80px; border-radius: 21px; margin-bottom: 20px; }
  .medallon img { border-radius: 18px; }
  .separador { margin: 22px 0 20px; }
  .boton { width: 100%; min-width: 0; margin-top: 26px; }
}

@media (prefers-reduced-motion: no-preference) {
  .fondo img { animation: acercar 2.4s cubic-bezier(.2, .8, .2, 1) both; }
  .tarjeta { animation: entrar .8s cubic-bezier(.2, .8, .2, 1) .1s both; }
  @keyframes acercar { from { transform: scale(1.06); } to { transform: none; } }
  @keyframes entrar { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
}

/* =====================================================================
   Páginas legales: maquetación de mybutlex.com/privacidad
   ===================================================================== */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; width: 100%; }
.nav { border-bottom: 1px solid var(--edge); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--linen); }
.brand .mark { flex: none; width: 34px; height: 34px; border-radius: 9px; padding: 1.5px;
  background: conic-gradient(from 200deg, var(--oro), var(--oro-claro), var(--oro-hondo), var(--oro)); }
.brand .mark img { width: 100%; height: 100%; border-radius: 7.5px; }
.brand .rotulo { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand .wm { font-size: 20px; line-height: 1; }
.brand .firma { font-size: 12px; line-height: 1; white-space: nowrap; }
.nav .idioma { min-height: 34px; padding: 0 14px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--edge-2); color: var(--linen-2); }

.doc main { flex: 1; padding: 72px 0 90px; overflow-wrap: break-word; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--oro); font-weight: 600; }
.doc h1 { font-size: clamp(30px, 4.8vw, 44px); line-height: 1.1; margin-top: 16px; letter-spacing: -.015em; }
.docnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.docnav a { font-size: 13px; text-decoration: none; color: var(--linen-2); border: 1px solid var(--edge); border-radius: 7px; padding: 6px 12px;
  transition: border-color .15s ease, color .15s ease; }
.docnav a:hover { border-color: var(--oro); color: var(--linen); }
.docnav a[aria-current="page"] { color: var(--oro); border-color: var(--edge-2); background: var(--night-2); }
.meta { margin-top: 26px; border: 1px solid var(--edge); border-radius: 12px; padding: 16px 20px; background: var(--night-2); font-size: 14px; color: var(--linen-3); }
.doc main .meta p { margin: 2px 0; font-size: 14px; color: var(--linen-3); }
.doc main .meta strong { color: var(--linen-2); }
.doc h2 { font-size: 22px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--edge); line-height: 1.25; }
.doc h3 { font-size: 18px; margin-top: 32px; line-height: 1.3; color: var(--linen); }
.doc h4, .doc h5, .doc h6 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 26px 0 0; color: var(--linen); }
.doc h2 .n, .doc h3 .n { color: var(--oro); margin-right: .45em; font-variant-numeric: lining-nums; }
.doc main p { margin-top: 14px; color: var(--linen-2); font-size: 16.5px; }
.doc main strong { color: var(--linen); font-weight: 600; }
.doc main ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--linen-2); font-size: 16px; }
.doc main ul > li { position: relative; padding-left: 22px; }
.doc main ul > li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--oro); }
.doc main ul ul { margin-top: 10px; }
.doc main ol { margin: 16px 0 0; padding-left: 1.4em; color: var(--linen-2); font-size: 16px; }
.doc main ol > li { margin-top: 10px; padding-left: 4px; }
.doc main ol > li::marker { color: var(--oro); }
.doc blockquote { margin: 20px 0 0; border: 1px solid var(--edge); border-left: 2px solid var(--oro); border-radius: 12px; padding: 4px 20px 16px; background: var(--night-2); }
.doc hr { border: 0; border-top: 1px solid var(--edge); margin: 40px 0 0; }
.doc code { font-size: .88em; background: var(--night-2); border: 1px solid var(--edge); border-radius: 5px; padding: 1px 5px; color: var(--linen); }
.preparacion { font-family: var(--serif); font-style: italic; font-size: 22px; }

/* Tablas en la misma ficha redondeada que la fecha */
.tabla { margin-top: 20px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 12px; background: var(--night-2); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.55; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--edge); color: var(--linen-2); }
.doc thead th { border-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); background: rgba(212, 174, 95, .05); }
.doc td + td, .doc th + th { border-left: 1px solid var(--edge); }
.doc td code { overflow-wrap: anywhere; }
/* La primera columna (el permiso, con su dirección larga) necesita más ancho que la segunda */
.doc th:first-child { width: 34%; }
.doc th:nth-child(2):not(:last-child) { width: 20%; }

.doc .pie { border-top: 1px solid var(--edge); padding: 28px 0 40px; font-size: 13px; line-height: 1.9; color: var(--linen-3); }
.doc .pie a { color: var(--linen-2); }
.doc .pie a:hover { color: var(--oro-claro); }

/* Tablas legales en el móvil: cada fila se apila como una ficha */
@media (max-width: 640px) {
  .tabla { border: 0; background: none; border-radius: 0; overflow: visible; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc tr { border: 1px solid var(--edge); border-radius: 12px; background: var(--night-2); margin: 0 0 12px; overflow: hidden; }
  .doc td { border: 0; border-top: 1px solid var(--edge); padding: 10px 16px 12px; }
  .doc td + td { border-left: 0; }
  .doc td:first-child { border-top: 0; color: var(--linen); font-weight: 600; background: rgba(212, 174, 95, .05); }
  .doc td::before { content: attr(data-etiqueta); display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); font-weight: 600; margin-bottom: 3px; }
}
/* Teléfonos: margen de 16 px y la firma bajo el nombre, para que quepa junto al idioma */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .doc main { padding: 52px 0 72px; }
  .brand .rotulo { flex-direction: column; align-items: flex-start; gap: 5px; }
  .brand .wm { font-size: 18px; }
  .brand .firma { font-size: 11px; }
}
