/* VIENTO.DATA.SUR — hoja de estilos (ver diseno/diseno-viento-data-sur.md) */
:root {
  --fondo: #f5f7fb;
  --tinta: #1f2345;
  --secundario: #5c6680;
  --copete: #32407a;
  --azul: #3f51b5;
  --noche: #2b3675;
  --violeta: #44378e;
  --purpura: #4a1970;
  --celeste: #8091f5;
  --lila: #9688e4;
  --lavanda: #eef0ff;
  --linea: #adb8eb;
  --linea-suave: #dfe3f7;
  --verde: #1f9b5a;
  --ambar: #b7791f;
  --gris: #7a829b;
  --titulos: 'Fraunces', Georgia, serif;
  --lectura: 'Newsreader', Georgia, serif;
  --interfaz: 'Karla', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--fondo); }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--interfaz); -webkit-text-size-adjust: 100%; }
a { color: var(--azul); }
a:hover { color: var(--noche); }

/* Encabezado */
.vds-top { position: sticky; top: 0; z-index: 10; background: var(--fondo); }
.vds-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 12px 12px; border-bottom: 1px solid var(--linea); }
.vds-header .todos { display: none; font-size: 15px; font-weight: 700; color: var(--secundario); text-decoration: none; }
.vds-marca { font-family: var(--titulos); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; color: var(--tinta); text-decoration: none; }
.vds-header .der { grid-column: 3; display: flex; justify-content: flex-end; }
.vds-header .vds-marca { grid-column: 2; }
.pastilla-guazu { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; background: var(--lavanda); color: var(--noche); font-size: 13px; white-space: nowrap; font-weight: 700; text-decoration: none; }
.progreso { height: 3px; background: var(--lavanda); }
.progreso > div { width: 0; height: 3px; background: var(--azul); }

/* Página de un texto */
.texto { padding: 32px 24px 0; display: flex; flex-direction: column; }
.cinta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cinta a { text-decoration: none; }
.cinta .genero { color: var(--azul); }
.cinta .coleccion { color: var(--violeta); }
.cinta .punto { color: var(--gris); }
.cinta .formato { padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--violeta); color: var(--violeta); letter-spacing: 0.04em; }
.cinta .borrador { padding: 3px 9px; border-radius: 999px; border: 1.5px dashed var(--ambar); color: var(--ambar); letter-spacing: 0.04em; }
.texto h1 { margin: 14px 0 0; font-family: var(--titulos); font-size: 38px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; color: var(--tinta); overflow-wrap: break-word; }
.texto h1.largo { font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; }
.copete { margin: 14px 0 0; font-family: var(--lectura); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--copete); }
.datos { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.datos .fecha { display: flex; flex-direction: column; gap: 2px; }
.datos .fecha strong { font-size: 15px; }
.datos .fecha span { font-size: 13px; color: var(--secundario); }
.ficha { margin: 22px 0 0; padding: 14px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); display: grid; grid-template-columns: 92px minmax(0, 1fr); row-gap: 10px; column-gap: 12px; font-size: 15px; line-height: 1.4; }
.ficha dt { color: var(--secundario); }
.ficha dd { margin: 0; }
.ficha dd.fuerte { font-weight: 700; }
.ficha + .datos { margin-top: 0; border-top: 0; }
.boton-compartir { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--azul); background: transparent; color: var(--azul); font: 700 14px var(--interfaz); cursor: pointer; flex-shrink: 0; }
.accion-principal { margin-top: 28px; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 20px; border-radius: 14px 6px 12px 4px; background: var(--noche); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; text-align: center; }
.accion-principal:hover { color: #fff; background: var(--tinta); }

/* El cuerpo del texto */
.cuerpo { margin-top: 32px; font-family: var(--lectura); font-size: 19px; line-height: 1.62; color: var(--tinta); overflow-wrap: break-word; }
.cuerpo p { margin: 0 0 20px; }
.cuerpo blockquote { margin: 0 0 32px; padding: 0; color: var(--copete); font-size: 17px; line-height: 1.55; }
.cuerpo blockquote p { margin-bottom: 12px; }
.cuerpo h1, .cuerpo h2, .cuerpo h3 { font-family: var(--titulos); font-weight: 600; line-height: 1.2; margin: 36px 0 16px; }
.cuerpo h1 { font-size: 26px; }
.cuerpo h2 { font-size: 24px; }
.cuerpo h3 { font-size: 21px; }
.cuerpo pre { font-family: var(--lectura); font-size: inherit; line-height: inherit; white-space: pre-wrap; margin: 0 0 20px; }
.cuerpo img, .cuerpo iframe, .cuerpo video { max-width: 100%; height: auto; }
.cuerpo iframe { aspect-ratio: 16 / 9; width: 100%; }
.cuerpo figure { margin: 0 0 24px; }
.cuerpo [style*="justify"] { text-align: left !important; }
.cuerpo sup { line-height: 0; }

.ornamento { margin: 20px 0 36px; text-align: center; font-family: var(--titulos); font-size: 22px; color: var(--lila); letter-spacing: 0.5em; }

/* Compartir (al pie del texto) */
.compartir { display: flex; flex-direction: column; gap: 12px; }
.etiqueta { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secundario); }
.redes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.red { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; background: #fff; border: 1.5px solid var(--linea); color: var(--tinta); font: 700 15px var(--interfaz); text-decoration: none; cursor: pointer; }
.red.wa { background: var(--verde); border-color: var(--verde); color: #fff; }
.red.wa:hover { color: #fff; }
.copiar { display: flex; align-items: center; justify-content: center; min-height: 44px; background: none; border: 0; color: var(--azul); font: 700 14px var(--interfaz); text-decoration: underline; cursor: pointer; }

/* Las dos puertas */
.puertas { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--linea); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.puerta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; min-height: 64px; text-decoration: none; }
.puerta.guazu { border-radius: 14px 6px 12px 4px; background: var(--azul); }
.puerta.guazu span:first-child { font-family: var(--titulos); font-size: 22px; font-weight: 600; color: #fff; }
.puerta.guazu span:last-child { font-size: 18px; color: var(--lavanda); }
.puerta.vds { padding: 0 10px; gap: 6px; border-radius: 6px 14px 4px 12px; background: var(--lavanda); }
.puerta.vds span:first-child { font-family: var(--titulos); font-size: clamp(11px, 3.1vw, 14px); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; color: var(--noche); }
.puerta.vds span:last-child { font-size: 16px; color: var(--violeta); }

.vds-pie { margin-top: 40px; padding: 20px 24px 32px; font-size: 13px; color: var(--gris); text-align: center; }
.vds-pie a { color: var(--gris); text-decoration: none; }
.vds-pie .guazu { display: none; font-weight: 700; color: var(--azul); }

/* Hoja de compartir (sube desde abajo) */
.hoja-fondo { position: fixed; inset: 0; z-index: 50; background: rgba(31, 35, 69, 0.55); display: none; }
.hoja-fondo.abierta { display: block; }
.hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: #fff; border-radius: 22px 22px 0 0; padding: 12px 20px 28px; display: none; flex-direction: column; gap: 6px; max-width: 520px; margin: 0 auto; }
.hoja.abierta { display: flex; }
.hoja .asa { align-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--linea); }
.hoja .cabeza { padding: 14px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.hoja .cabeza strong { font-family: var(--titulos); font-size: 20px; font-weight: 600; }
.opcion { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--lavanda); background: none; color: var(--tinta); text-decoration: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.opcion:last-child { border-bottom: 0; color: var(--azul); }
.opcion .icono { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.opcion .nombre { font-size: 16px; font-weight: 700; }
.opcion .nota { display: block; font-size: 13px; color: var(--secundario); font-weight: 400; }

.aviso { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--tinta); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; display: none; }
.aviso.visible { display: block; }

/* Computadora */
@media (min-width: 900px) {
  .vds-header { padding: 18px 48px; }
  .vds-header .todos { display: inline; }
  .vds-marca { font-size: 20px; letter-spacing: 0.1em; }
  .pastilla-guazu { padding: 0 18px; font-size: 15px; }
  .texto { width: 680px; margin: 0 auto; padding: 72px 0 0; }
  .cinta { font-size: 14px; gap: 10px; }
  .texto h1 { margin-top: 18px; font-size: 60px; line-height: 1.02; letter-spacing: -0.025em; }
  .texto h1.largo { font-size: 44px; line-height: 1.08; }
  .copete { margin-top: 18px; font-size: 24px; }
  .datos { margin-top: 28px; padding: 14px 0; }
  .datos .fecha { flex-direction: row; gap: 0; font-size: 15px; }
  .datos .fecha span { font-size: 15px; }
  .datos .fecha span::before { content: "·"; margin: 0 6px; }
  .cuerpo { margin-top: 40px; font-size: 21px; line-height: 1.65; }
  .cuerpo p { margin-bottom: 22px; }
  .cuerpo blockquote { font-size: 19px; }
  .ornamento { margin: 24px 0 40px; font-size: 24px; }
  .redes { display: flex; flex-wrap: wrap; }
  .compartir { flex-direction: column; }
  .puertas { margin-top: 48px; padding-top: 28px; gap: 16px; }
  .puerta { min-height: 80px; padding: 0 24px; }
  .puerta.guazu { border-radius: 16px 6px 14px 4px; }
  .puerta.guazu span:first-child { font-size: 28px; }
  .puerta.vds { padding: 0 24px; border-radius: 6px 16px 4px 14px; }
  .puerta.vds span:first-child { font-size: 18px; letter-spacing: 0.08em; }
  .puerta span:last-child { font-size: 22px; }
  .vds-pie { margin: 48px 48px 0; padding: 24px 0 40px; border-top: 1px solid var(--linea); display: flex; justify-content: space-between; font-size: 14px; }
  .vds-pie .guazu { display: inline; }
  .hoja { bottom: 50%; transform: translateY(50%); border-radius: 22px; }
}

/* Todos los textos */
.lista-cabeza { padding: 28px 24px 8px; }
.lista-cabeza h1 { margin: 0; font-family: var(--titulos); font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.filtros { display: flex; gap: 8px; padding: 16px 24px; overflow-x: auto; border-bottom: 1px solid var(--linea-suave); scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--tinta); border: 1.5px solid var(--linea); font: 700 14px var(--interfaz); text-decoration: none; flex-shrink: 0; cursor: pointer; }
.filtro.activo { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.lista { padding: 0 24px; display: flex; flex-direction: column; }
.anio { padding: 26px 0 4px; font-family: var(--titulos); font-size: 30px; font-weight: 300; color: var(--lila); }
.item { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--linea-suave); text-decoration: none; color: var(--tinta); }
.item:hover { color: var(--tinta); }
.item:hover .item-titulo { color: var(--azul); }
.item-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.item-meta .izq { color: var(--violeta); }
.item-meta .der { color: var(--gris); flex-shrink: 0; }
.item-titulo { font-family: var(--titulos); font-size: 21px; line-height: 1.15; font-weight: 600; }
.item-copete { font-family: var(--lectura); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--secundario); }
.item-autoria { font-size: 13px; color: var(--secundario); }
.item-pastilla { align-self: flex-start; margin-top: 2px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--azul); font-size: 12px; font-weight: 700; color: var(--azul); }
.item-pastilla.borrador { border-style: dashed; border-color: var(--ambar); color: var(--ambar); }
.ver-mas { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 20px; border-radius: 12px; border: 1.5px solid var(--azul); background: none; font: 700 16px var(--interfaz); color: var(--azul); cursor: pointer; width: 100%; }
.oculto { display: none !important; }

@media (min-width: 900px) {
  .lista-cabeza, .lista { width: 680px; margin: 0 auto; padding-left: 0; padding-right: 0; }
  .lista-cabeza { padding-top: 56px; }
  .lista-cabeza h1 { font-size: 52px; }
  .filtros { justify-content: center; padding: 20px 0; }
  .anio { font-size: 40px; padding-top: 36px; }
  .item { padding: 22px 0; }
  .item-meta { font-size: 13px; }
  .item-titulo { font-size: 26px; }
  .item-copete { font-size: 18px; }
}
