/* Aviso de privacidad de Omeyocan (docs/72). Interfaz C · Tilmatli (docs/47, view/tilmatli.gd):
   el fondo y la manta de añil con cenefa de grana y ocre; lo que se lee, en algodón crudo con tinta negra y roja.
   Sin scripts y sin nada de otros sitios: las letras van en fuentes/ (licencia OFL). */

@font-face { font-family: "Cinzel"; src: url("fuentes/Cinzel-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fuentes/BarlowSemiCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fuentes/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fuentes/BarlowSemiCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --fondo: #0f1526;
  --anil: #1e2d55; --anil-hi: #2e4579; --anil-lo: #111a33;
  --grana: #b52435; --grana-lo: #6e1220;
  --ocre: #e0aa3e; --ocre-hi: #f6d58a; --ocre-lo: #9c6a1c;
  --maya: #4aa7bd; --jade: #4fbf7f;
  --tlilli: #17120f; --tinta-2: #4a3826; --tinta-3: #7a6448;
  --ichcatl: #ecdfc4;
  --texto: #f1e6cd; --texto-2: #cbbd9f;
  --letra: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --titulo: "Cinzel", Georgia, "Times New Roman", serif;
  --cenefa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Crect width='32' height='16' fill='%23b52435'/%3E%3Crect y='0' width='32' height='1.5' fill='%2317120f'/%3E%3Crect y='14.5' width='32' height='1.5' fill='%2317120f'/%3E%3Cpath d='M1 12 H5 V9 H8 V6 H11 V3.5 H20 V10 H15 V7 H17.5' fill='none' stroke='%23e0aa3e' stroke-width='1.7'/%3E%3Cpath d='M26 4 L29 8 L26 12 L23 8 Z' fill='%23ecdfc4'/%3E%3C/svg%3E");
  --cenefa-crudo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Crect width='32' height='16' fill='%2317120f'/%3E%3Crect y='0' width='32' height='1.5' fill='%23b52435'/%3E%3Crect y='14.5' width='32' height='1.5' fill='%23b52435'/%3E%3Cpath d='M1 12 H5 V9 H8 V6 H11 V3.5 H20 V10 H15 V7 H17.5' fill='none' stroke='%23b52435' stroke-width='1.7'/%3E%3Cpath d='M26 4 L29 8 L26 12 L23 8 Z' fill='%23e0aa3e'/%3E%3C/svg%3E");
  --greca-ocre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 10.5 H4 V7.5 H7 V4.5 H10 V1.5 H21 V9 H15 V5.5 H18' fill='none' stroke='%23e0aa3e' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
  --greca-grana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 10.5 H4 V7.5 H7 V4.5 H10 V1.5 H21 V9 H15 V5.5 H18' fill='none' stroke='%23b52435' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
  --quech: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='30' viewBox='0 0 74 30'%3E%3Crect width='74' height='30' fill='%23b52435'/%3E%3Crect y='6' width='74' height='6' fill='%23e0aa3e'/%3E%3Cpath d='M0 9 L4 6 L8 9 L12 6 L16 9 L20 6 L24 9 L28 6 L32 9 L36 6 L40 9 L44 6 L48 9 L52 6 L56 9 L60 6 L64 9 L68 6 L72 9 L74 7.5' fill='none' stroke='%2317120f' stroke-width='1.2'/%3E%3Crect y='14' width='74' height='6' fill='%231e2d55'/%3E%3Cpath d='M30 22 L37 29 L44 22' fill='%23ecdfc4'/%3E%3C/svg%3E");
  --tejido: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
            repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--tejido), radial-gradient(ellipse 120% 60% at 50% 0%, #1d2c57 0%, rgba(15,21,38,0) 70%), var(--fondo);
  color: var(--texto); font-family: var(--letra); font-weight: 500; font-size: 17px; line-height: 1.55;
}
a { color: var(--ocre-hi); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ocre); outline-offset: 2px; border-radius: 2px; }
strong, b { font-weight: 700; }

.saltar { position: absolute; left: 16px; top: -60px; z-index: 5; padding: 8px 14px; background: var(--ocre); color: var(--tlilli); font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

/* ------------------------------------------------------------------ cabeza */
.cenefa { height: 16px; background: var(--cenefa) repeat-x; background-size: 32px 16px; }
.cabeza { text-align: center; padding: 0 16px 8px; }
.cabeza .cenefa { margin: 0 -16px; }
.barra { max-width: 760px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; gap: 12px; }
.marca { font-family: var(--titulo); font-weight: 700; letter-spacing: .22em; font-size: 14px; color: var(--ocre); text-align: left; line-height: 1.3; }
.marca small { display: block; font-family: var(--letra); font-weight: 600; letter-spacing: .08em; font-size: 12px; color: var(--texto-2); }
.idioma { flex: none; font-weight: 700; font-size: 15px; color: var(--texto); text-decoration: none; padding: 6px 14px; border: 1px solid rgba(224,170,62,.6); border-radius: 2px;
  background: var(--tejido), linear-gradient(180deg, #24355f, #16213f); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.5); }
.idioma:hover { background: var(--anil-hi); }
h1 {
  font-family: var(--titulo); font-weight: 800; font-size: clamp(30px, 8.4vw, 50px); line-height: 1.1; margin: 26px 0 8px; letter-spacing: .02em;
  color: var(--ocre-hi);
  background: linear-gradient(180deg, #fff3d0 0%, #f2c766 45%, #b77d22 72%, #e9b555 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 var(--grana-lo));
}
.sub { margin: 0 auto; color: var(--texto-2); font-weight: 600; max-width: 760px; }
.greca { height: 12px; background: var(--greca-ocre) repeat-x 0 50%; background-size: 24px 12px; width: 216px; max-width: 100%; margin: 18px auto 0; }

main { max-width: 760px; margin: 0 auto; padding: 14px 16px 8px; }

/* ------------------------------------------------------------------ manta de añil: «En corto» */
.manta {
  position: relative; margin: 26px 0 34px; padding: 40px 22px 22px;
  background: var(--tejido), radial-gradient(ellipse at 30% 0%, rgba(70,100,170,.35), transparent 60%), linear-gradient(180deg, #24355f 0%, #19264a 55%, #131d38 100%);
  border: 1px solid var(--ocre-lo); box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 1px rgba(246,213,138,.25), inset 0 0 40px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.45);
}
.manta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--cenefa) repeat-x; background-size: 32px 16px; }
.manta::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -12px; height: 12px; background: repeating-linear-gradient(90deg, #c9a85e 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(180deg, #000 30%, transparent); mask: linear-gradient(180deg, #000 30%, transparent); }
.manta .punta { position: absolute; left: 50%; top: 16px; width: 74px; height: 30px; margin-left: -37px; background: var(--quech) center / 74px 30px no-repeat; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.manta h2 { font-family: var(--titulo); font-weight: 700; color: var(--ocre-hi); font-size: 24px; margin: 6px 0 12px; text-align: center; letter-spacing: .04em; }
.manta p { margin: 0 0 10px; }
.manta p:last-child { margin-bottom: 0; }
.manta .clave { color: var(--ocre-hi); }

/* ------------------------------------------------------------------ índice */
.indice { margin: 0 0 30px; padding: 18px 20px 14px; background: rgba(17,26,51,.75); border-left: 3px solid var(--maya); }
.indice h2 { font-family: var(--titulo); font-weight: 700; font-size: 18px; color: var(--texto); margin: 0 0 8px; letter-spacing: .04em; }
.indice ol { margin: 0; padding-left: 26px; columns: 2 280px; column-gap: 28px; }
.indice li { margin: 0 0 6px; break-inside: avoid; color: var(--texto-2); }
.indice a { color: var(--texto); text-decoration: none; border-bottom: 1px solid rgba(224,170,62,.45); }
.indice a:hover { color: var(--ocre-hi); }

/* ------------------------------------------------------------------ algodón crudo: el aviso */
.algodon {
  position: relative; color: var(--tlilli); padding: 30px 22px 22px;
  background: repeating-linear-gradient(0deg, rgba(120,90,50,.07) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(120,90,50,.06) 0 1px, transparent 1px 4px), radial-gradient(ellipse at 50% 0%, #f6ecd6, #e6d6b4 80%);
  box-shadow: inset 0 0 0 3px #e6d6b4, inset 0 0 0 4px var(--tlilli), inset 0 0 30px rgba(120,80,30,.25), 0 10px 26px rgba(0,0,0,.45);
}
.algodon::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 14px; background: var(--cenefa-crudo) repeat-x; background-size: 28px 14px; }
.algodon section { padding-top: 6px; scroll-margin-top: 12px; }
.algodon section + section { margin-top: 26px; }
.algodon section + section::before { content: ""; display: block; height: 12px; margin: 0 auto 18px; max-width: 168px; background: var(--greca-grana) repeat-x center; background-size: 24px 12px; opacity: .8; }
.algodon h2 { font-family: var(--titulo); font-weight: 700; color: var(--grana); font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
.algodon h2 .n { display: inline-block; min-width: 1.6em; color: var(--tinta-3); font-weight: 600; }
.algodon h3 { font-size: 18px; font-weight: 700; color: var(--grana-lo); margin: 18px 0 6px; }
.algodon p, .algodon li { color: var(--tinta-2); }
.algodon strong { color: var(--tlilli); }
.algodon p { margin: 0 0 10px; }
.algodon ul, .algodon ol { margin: 0 0 12px; padding-left: 22px; }
.algodon li { margin: 0 0 6px; }
.algodon li::marker { color: var(--grana); }
.algodon a { color: var(--grana); font-weight: 600; }
.algodon .nota { font-size: 15.5px; color: var(--tinta-2); }

/* el aviso de lo que aún no llega */
.pronto { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 10px; font-family: var(--letra); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: #2f7d8f; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); }
#cuando-llegue { background: rgba(74,167,189,.08); margin-left: -10px; margin-right: -10px; padding: 14px 10px 6px; border-left: 3px solid #2f7d8f; }

/* lo que solo sabe el director */
.llenar { background: rgba(224,170,62,.28); outline: 1.5px dashed var(--ocre-lo); outline-offset: 1px; padding: 0 4px; border-radius: 2px; font-weight: 700; color: inherit; }
.manta .llenar, .sub .llenar { background: rgba(224,170,62,.18); outline-color: var(--ocre); color: var(--ocre-hi); }

/* tablas: en el celular, cada renglón es una tarjeta */
.tabla { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 16px; }
.tabla th { text-align: left; font-weight: 700; color: var(--tlilli); border-bottom: 2px solid var(--tlilli); padding: 6px 8px; }
.tabla td { vertical-align: top; color: var(--tinta-2); border-bottom: 1px solid rgba(74,56,38,.25); padding: 8px; }
.tabla td:first-child { color: var(--tlilli); font-weight: 700; }
@media (max-width: 600px) {
  body { font-size: 17px; }
  .manta { padding: 40px 16px 18px; }
  .algodon { padding: 28px 16px 18px; }
  .tabla, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla thead { display: none; }
  .tabla tr { padding: 10px 12px; margin: 0 0 10px; background: rgba(255,255,255,.35); box-shadow: inset 3px 0 0 var(--grana); }
  .tabla td { border: 0; padding: 2px 0; }
  .tabla td[data-k]::before { content: attr(data-k); display: block; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grana); margin-top: 6px; }
  .tabla td:first-child[data-k]::before { margin-top: 0; }
}

/* ------------------------------------------------------------------ pie */
footer { max-width: 760px; margin: 0 auto; padding: 26px 16px 34px; text-align: center; color: var(--texto-2); font-size: 15px; }
footer .greca { margin: 0 auto 14px; }
footer p { margin: 0 0 6px; }
footer .estudio { font-family: var(--titulo); font-weight: 700; color: var(--texto); letter-spacing: .06em; }

@media print {
  body { background: #fff; color: #000; }
  .cenefa, .manta::before, .manta::after, .manta .punta, .algodon::before, .greca, .idioma, .saltar, .indice { display: none; }
  h1 { -webkit-text-fill-color: #000; color: #000; background: none; filter: none; }
  .manta, .algodon { background: #fff; box-shadow: none; border: 1px solid #000; color: #000; }
  .manta h2, .manta p, .algodon p, .algodon li { color: #000; }
}
