/* Tu negocio en redes — estilos. Colores sólidos, texto grande, botones grandes. */
:root {
  --tinta: #12233f;
  --tinta-2: #3d4b63;
  --marino: #00214c;
  --naranja: #ff6e00;
  --naranja-texto: #a84300;
  --fondo: #f6f7fa;
  --papel: #ffffff;
  --linea: #d5dbe6;
  --linea-fuerte: #8d99ae;
  --ok: #17663a;
  --ok-fondo: #e7f5ec;
  --atencion: #7a4b00;
  --atencion-fondo: #fff4dc;
  --error: #a3241a;
  --error-fondo: #fdeceb;
  --info-fondo: #e9f0fb;
  --radio: 16px;
  --sombra: 0 2px 10px rgba(18, 35, 63, .08);
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--fondo); }
h1, h2, h3 { color: var(--marino); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.5rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: #0b4fcb; text-underline-offset: 3px; }
a:hover { color: var(--marino); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--marino); color: #fff; padding: .7rem 1rem; z-index: 100; }
.saltar:focus { left: 8px; top: 8px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* cabecera y pie */
.cabecera { background: var(--marino); color: #fff; position: sticky; top: 0; z-index: 20; }
.cabecera__in { max-width: 960px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.marca:hover { color: #fff; }
.marca__icono { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--naranja); color: var(--marino); }
.marca__icono svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cabecera__nav { display: flex; align-items: center; gap: .3rem 1rem; flex-wrap: wrap; font-size: .95rem; }
.cabecera__negocio { background: rgba(255,255,255,.14); border-radius: 999px; padding: .15rem .8rem; font-weight: 700; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enlace-nav { color: #fff; text-decoration: underline; min-height: 2.5rem; display: inline-flex; align-items: center; }
.enlace-nav:hover { color: #ffd9bd; }
.pie { max-width: 760px; margin: 2.5rem auto 3rem; padding: 0 1rem; color: var(--tinta-2); font-size: .92rem; }
.pie p { margin-bottom: .4em; }

#app { max-width: 760px; margin: 0 auto; padding: 1.4rem 1rem 1rem; }
.noscript { max-width: 760px; margin: 2rem auto; padding: 1rem; background: var(--error-fondo); border: 2px solid var(--error); border-radius: var(--radio); }

/* tarjetas */
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.2rem 1.2rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--sombra); }
.tarjeta > :last-child { margin-bottom: 0; }
.tarjeta--destacada { border: 2px solid var(--marino); }
.cuadricula { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cuadricula--2 { grid-template-columns: 1fr 1fr; } }
.migas { font-size: .95rem; margin-bottom: 1rem; color: var(--tinta-2); }
.migas a { color: var(--tinta-2); }

/* botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .7rem 1.4rem; border: 2px solid var(--marino); border-radius: 999px; background: #fff; color: var(--marino); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.25; }
.boton:hover { background: #eef2f9; color: var(--marino); }
.boton--primario { background: var(--naranja); border-color: var(--naranja); color: var(--marino); }
.boton--primario:hover { background: #ff8a33; border-color: #ff8a33; color: var(--marino); }
.boton--oscuro { background: var(--marino); color: #fff; }
.boton--oscuro:hover { background: #0a3470; color: #fff; }
.boton--peligro { border-color: var(--error); color: var(--error); }
.boton--peligro:hover { background: var(--error-fondo); color: var(--error); }
.boton--pequeno { min-height: 2.75rem; padding: .4rem 1rem; font-size: .95rem; }
.boton--bloque { width: 100%; }
.boton[disabled], .boton--desactivado { opacity: .55; cursor: not-allowed; border-style: dashed; }
.boton--desactivado:hover { background: #fff; }
.acciones { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.acciones--fin { justify-content: space-between; }
.boton-elegir { display: block; width: 100%; text-align: left; padding: 1.1rem 1.2rem; border: 2px solid var(--linea-fuerte); border-radius: var(--radio); background: #fff; font: inherit; color: var(--tinta); cursor: pointer; margin-bottom: .8rem; }
.boton-elegir:hover { border-color: var(--marino); background: #f2f6fc; }
.boton-elegir strong { display: block; color: var(--marino); font-size: 1.15rem; margin-bottom: .15rem; }

/* formularios */
.campo { margin-bottom: 1.1rem; }
.campo label, .campo legend { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--marino); }
.campo .ayuda { display: block; font-weight: 400; color: var(--tinta-2); font-size: .95rem; margin-top: -.1rem; margin-bottom: .35rem; }
.campo input[type=text], .campo input[type=url], .campo select, .campo textarea { width: 100%; min-height: 3rem; padding: .6rem .8rem; border: 2px solid var(--linea-fuerte); border-radius: 12px; font: inherit; color: var(--tinta); background: #fff; }
.campo textarea { min-height: 7rem; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--marino); }
fieldset.campo { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.opcion { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem .8rem; border: 2px solid var(--linea); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; background: #fff; }
.opcion:hover { border-color: var(--linea-fuerte); }
.opcion input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: none; accent-color: var(--marino); }
.opcion span { display: block; }
.opcional { font-weight: 400; color: var(--tinta-2); font-size: .9rem; }

/* progreso y pasos */
.progreso { margin: 0 0 1rem; }
.progreso__texto { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: .95rem; color: var(--tinta-2); margin-bottom: .3rem; }
.progreso__barra { height: .8rem; border-radius: 999px; background: #dfe5ef; overflow: hidden; border: 1px solid var(--linea-fuerte); }
.progreso__relleno { height: 100%; background: var(--marino); border-radius: 999px; }
.progreso--mini .progreso__barra { height: .55rem; }
.lista-pasos { list-style: none; padding: 0; margin: 0; }
.lista-pasos li { margin: 0; }
.lista-pasos a, .lista-pasos .paso-actual { display: flex; gap: .7rem; align-items: center; padding: .6rem .5rem; border-bottom: 1px solid var(--linea); text-decoration: none; color: var(--tinta); }
.lista-pasos a:hover { background: #f2f6fc; }
.marca-estado { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--linea-fuerte); font-size: .85rem; font-weight: 800; background: #fff; }
.marca-estado--hecho { background: var(--ok); border-color: var(--ok); color: #fff; }
.paso-actual { font-weight: 800; }
.paso-actual .marca-estado { border-color: var(--marino); }

/* bloques de una tarea */
.tarea h1 { margin-bottom: .3rem; }
.tarea__etapa { color: var(--tinta-2); font-weight: 700; margin-bottom: .6rem; }
.bloque { margin-bottom: 1.1rem; }
.bloque h2 { font-size: 1.02rem; text-transform: none; margin-bottom: .25rem; }
.bloque ol { padding-left: 1.5em; }
.bloque ol li { margin-bottom: .55em; }
.bloque--pasos { background: var(--info-fondo); border-radius: 14px; padding: .9rem 1rem .6rem; border: 1px solid #c6d6f0; }
.bloque--ejemplo { border-left: 5px solid var(--naranja); padding: .5rem 0 .2rem 1rem; background: #fffaf5; border-radius: 0 12px 12px 0; }
.ejemplo-texto { white-space: pre-wrap; margin: 0 0 .6rem; padding: .6rem .8rem; background: #fff; border: 1px dashed var(--linea-fuerte); border-radius: 10px; }
details.desplegable { border: 1px solid var(--linea); border-radius: 12px; margin-bottom: .6rem; background: #fff; }
details.desplegable > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; color: var(--marino); min-height: 3rem; list-style: none; display: flex; align-items: center; gap: .6rem; }
details.desplegable > summary::-webkit-details-marker { display: none; }
details.desplegable > summary::before { content: "+"; font-weight: 800; width: 1.4rem; height: 1.4rem; border: 2px solid var(--marino); border-radius: 50%; display: inline-grid; place-items: center; line-height: 1; flex: none; font-size: 1rem; }
details.desplegable[open] > summary::before { content: "−"; }
details.desplegable > div { padding: 0 1rem 1rem; }

/* avisos y etiquetas */
.aviso { padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--linea-fuerte); background: #fff; margin-bottom: 1rem; }
.aviso--atencion { background: var(--atencion-fondo); border-color: #d8a542; color: var(--atencion); }
.aviso--ok { background: var(--ok-fondo); border-color: var(--ok); color: var(--ok); }
.aviso--error { background: var(--error-fondo); border-color: var(--error); color: var(--error); }
.aviso--info { background: var(--info-fondo); border-color: #7d9fd6; color: var(--marino); }
.aviso--barra { max-width: 960px; margin: .6rem auto; border-radius: 12px; }
.aviso > :last-child { margin-bottom: 0; }
.etiqueta { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 800; padding: .15rem .65rem; border-radius: 999px; border: 2px solid var(--linea-fuerte); background: #fff; color: var(--tinta); white-space: nowrap; }
.etiqueta--ok { border-color: var(--ok); color: var(--ok); background: var(--ok-fondo); }
.etiqueta--pendiente { border-color: #b97d0d; color: var(--atencion); background: var(--atencion-fondo); }
.etiqueta--oficial { border-color: var(--marino); color: var(--marino); background: var(--info-fondo); }
.etiqueta--creativo { border-color: var(--naranja-texto); color: var(--naranja-texto); background: #fff3e8; }

/* listas de tarjetas y detalles */
.fila-perfil { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.fila-perfil h2 { margin-bottom: .2rem; }
.meta { color: var(--tinta-2); font-size: .95rem; }
.tabla-datos { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tabla-datos th, .tabla-datos td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla-datos th { width: 38%; color: var(--tinta-2); font-weight: 700; }
.copiable { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; flex-wrap: wrap; }
.copiable__texto { flex: 1 1 16rem; white-space: pre-wrap; padding: .6rem .8rem; background: #fff; border: 2px solid var(--linea); border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
.contador { font-size: .9rem; color: var(--tinta-2); margin-top: .2rem; display: block; }
.contador--excede { color: var(--error); font-weight: 700; }
.chip-lista { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; margin: 0 0 1em; }
.chip-lista li { margin: 0; padding: .25rem .7rem; background: #fff; border: 1px solid var(--linea-fuerte); border-radius: 999px; font-size: .95rem; }

/* diálogo */
.dialogo { border: 0; border-radius: 18px; padding: 0; max-width: min(560px, calc(100vw - 2rem)); width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--tinta); }
.dialogo::backdrop { background: rgba(0, 20, 50, .6); }
.dialogo__form { padding: 1.3rem; max-height: min(80vh, 640px); overflow: auto; }
.dialogo__titulo { margin-bottom: .6rem; }
.dialogo__acciones { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1rem; }

/* semana */
.dia { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--linea); }
.dia strong { color: var(--marino); }
@media (max-width: 520px) { .dia { grid-template-columns: 1fr; gap: .2rem; } }

/* impresión */
.imprimible { background: #fff; }
.imprimible .bloque-imp { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem; margin-bottom: 1rem; }
.imprimible .tarea-imp { border-top: 1px solid var(--linea); padding-top: .8rem; margin-top: .8rem; }
.imprimible .tarea-imp h3 { margin-top: 0; }
.solo-impresion { display: none; }
@page { margin: 16mm 14mm; }
@media print {
  .cabecera, .pie, .saltar, .no-imprimir, #avisoAlmacen { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.45; }
  #app { max-width: none; padding: 0; }
  .solo-impresion { display: block; }
  .imprimible .bloque-imp { border: 0; border-top: 2px solid #000; border-radius: 0; padding: .6rem 0 0; margin-bottom: 1.2rem; box-shadow: none; }
  .imprimible .tarea-imp { break-inside: avoid-page; page-break-inside: avoid; border-top: 1px solid #999; }
  .imprimible h2 { break-after: avoid; page-break-after: avoid; }
  .imprimible h3 { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .tarjeta { box-shadow: none; border: 1px solid #999; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
