:root {
  --fondo: #FBF6EF;
  --papel: #FFFFFF;
  --crema: #F6EDE2;
  --linea: #EADFD2;
  --linea-2: #F0E7DC;
  --linea-input: #D9C9B6;
  --tinta: #1F1712;
  --tinta-2: #3B2D24;
  --suave: #5C4A3D;
  --tenue: #7A6658;
  --acento: #D9692E;
  --ok: #17663D;
  --ok-fondo: #E3F2E8;
  --aviso: #7A4300;
  --aviso-fondo: #FFF1D6;
  --info: #1E3F7A;
  --info-fondo: #EAF0FB;
  --peligro: #A3271B;
  --titulo: 'Bricolage Grotesque', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 22px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2563C9; outline-offset: 2px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.suave { font-weight: 500; color: var(--tenue); }

/* ---------- estructura ---------- */
.app { max-width: 1320px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 40px; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.marca { display: flex; align-items: center; gap: 10px; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: var(--tinta); color: var(--fondo); display: flex; align-items: center; justify-content: center; flex: none; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.05; }
.marca-txt strong { font-family: var(--titulo); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.marca-txt small { font-size: 11px; font-weight: 500; color: var(--tenue); }
.chip-yo { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); font-weight: 600; font-size: 14px; }

.tablero { display: flex; flex-direction: column; gap: 28px; margin-top: 18px; }
.lado { display: contents; }
.hero { order: 1; }
.sec-equipo { order: 2; }
.cal-y-dia { order: 3; display: flex; flex-direction: column; gap: 28px; }
.sec-proximas { order: 4; }
.sec-personas { order: 5; }
.pie { text-align: center; font-size: 12px; color: var(--tenue); margin: 32px 0 0; }

.bloque { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bloque-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; }
.link { border: 0; background: none; padding: 10px 0; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.ceja { font-size: 12px; font-weight: 600; color: var(--tenue); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-primario { background: var(--tinta); color: var(--fondo); font-weight: 700; }
.btn-primario:hover { background: #3B2D24; }
.btn-borde { background: var(--papel); border-color: var(--linea-input); }
.btn-borde:hover { border-color: var(--tinta); }
.btn-punteado { background: transparent; border: 2px dashed var(--linea-input); color: var(--tinta-2); height: 52px; }
.btn-peligro { background: var(--peligro); color: #fff; font-weight: 700; }
.btn-peligro-borde { background: var(--papel); border-color: #E5B9B1; color: var(--peligro); }
.btn-grande { height: 54px; padding: 0 24px; border-radius: 16px; font-size: 16px; }
.btn-crece { flex: 1; }
.btn-chico { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); font-size: 13px; font-weight: 600; }
.btn-chico-alto { height: 44px; font-size: 14px; }
.btn-icono { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--crema); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn-icono:hover { background: #EADCCB; }
.girando svg { animation: girar 0.7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--acento); border-radius: 28px; padding: 22px 20px 20px; margin-top: 46px; display: flex; flex-direction: column; }
.hero-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.hola { margin: 0; font-size: 14px; font-weight: 600; max-width: 55%; }
.hero h1 { font-size: 31px; line-height: 1.02; letter-spacing: -0.03em; max-width: 58%; }
.hero-sub { margin: 0; font-size: 14px; line-height: 1.4; max-width: 58%; }
.hero-acciones { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.hero-acciones .btn { width: 100%; }
.hoy-estado { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.hero-foto { position: absolute; right: -12px; top: -60px; width: 46%; max-width: 210px; pointer-events: none; }
.hero-foto img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(60, 25, 5, 0.35)); }

/* ---------- equipo ---------- */
.equipo-lista { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; }
.equipo-card { flex: 0 0 158px; scroll-snap-align: start; text-align: left; background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.equipo-card:hover { border-color: var(--tinta); }
.equipo-card .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.equipo-card strong { font-size: 15px; }
.equipo-card .detalle { font-size: 12px; color: var(--tenue); }
.equipo-card .estado { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.icono-obj { width: 44px; height: 44px; border-radius: 12px; background: var(--crema); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.icono-obj img { width: 100%; height: 100%; object-fit: cover; }
.icono-obj.chico { width: 22px; height: 22px; border-radius: 6px; background: transparent; }
.dueno { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--suave); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--crema); color: var(--tinta-2); }
.libre { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); }
.libre::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: #1E8A4C; }
.ocupado { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.punto { width: 8px; height: 8px; border-radius: 999px; flex: none; display: inline-block; }
.prox { color: var(--tenue); }
.equipo-agregar { flex: 0 0 120px; border: 2px dashed var(--linea-input); border-radius: 20px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--suave); min-height: 150px; }

/* ---------- avatares ---------- */
.av { border-radius: 999px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; object-fit: cover; }
.av-18 { width: 18px; height: 18px; font-size: 10px; }
.av-28 { width: 28px; height: 28px; font-size: 12px; }
.av-32 { width: 32px; height: 32px; font-size: 14px; }
.av-36 { width: 36px; height: 36px; font-size: 15px; }
.av-40 { width: 40px; height: 40px; font-size: 16px; }
.av-48 { width: 48px; height: 48px; font-size: 18px; }
.av-76 { width: 76px; height: 76px; font-size: 28px; }

.personas { display: flex; flex-wrap: wrap; gap: 14px; }
.persona { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; }
.persona span:last-child { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.persona-agregar { width: 48px; height: 48px; border-radius: 999px; border: 2px dashed var(--linea-input); display: flex; align-items: center; justify-content: center; color: var(--suave); }

/* ---------- calendario ---------- */
.calendario { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-cab h2 { text-transform: capitalize; font-size: 20px; white-space: nowrap; }
.cal-nav { display: flex; align-items: center; gap: 4px; flex: none; }
@media (max-width: 420px) {
  .cal-cab h2 { font-size: 18px; }
  .cal-nav { gap: 2px; }
  .cal-nav .btn-icono { width: 34px; height: 34px; }
  .cal-nav .btn-chico { height: 34px; padding: 0 10px; }
}
.filtros { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; }
.filtro { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); font-size: 13px; font-weight: 600; }
.filtro[aria-pressed="true"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.filtro-editar { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; border-color: #B9A794; color: var(--suave); }
#tags-lista .fila:hover { background: none; }
.cal-dias-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 12px; font-weight: 600; color: var(--tenue); }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 32px repeat(3, 6px) 10px; row-gap: 3px; border-top: 1px solid var(--linea-2); padding: 4px 0 2px; }
.dia { grid-row: 1; justify-self: center; align-self: center; width: 30px; height: 30px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; font-weight: 600; padding: 0; }
.dia:hover { background: var(--crema); }
.dia.fuera { color: #9C8B7D; }
.dia.hoy { box-shadow: inset 0 0 0 2px var(--tinta); }
.dia.sel, .dia.sel:hover { background: var(--tinta); color: #fff; }
.barra-res { height: 6px; border: 0; padding: 0; min-width: 0; }
.mas { grid-row: 5; justify-self: center; font-size: 10px; font-weight: 700; color: var(--tenue); line-height: 10px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--suave); }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.muestra-coordinar { width: 18px; height: 6px; border-radius: 999px 0 0 999px; background: linear-gradient(90deg, #7A6658 0 50%, transparent 50%), repeating-linear-gradient(90deg, #7A6658 0 3px, transparent 3px 5px); }

/* ---------- día y reservas ---------- */
.dia-cab { align-items: flex-end; }
.dia-cab .btn { height: 44px; border-radius: 999px; border-color: var(--tinta); flex: none; }
.dia-lista { display: flex; flex-direction: column; gap: 10px; }
.vacio { padding: 18px; text-align: center; color: var(--suave); font-size: 14px; border: 2px dashed var(--linea); border-radius: 20px; }
.reserva { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.reserva-cab { display: flex; align-items: center; gap: 10px; }
.reserva-cab .quien { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.reserva-cab .quien strong { font-size: 15px; }
.reserva-cab .quien span { font-size: 12px; color: var(--tenue); }
.cosas { display: flex; flex-wrap: wrap; gap: 6px; }
.cosa { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--crema); font-size: 13px; font-weight: 600; }
.cosa small { font-weight: 500; color: var(--tenue); font-size: 12px; }
.datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; color: var(--tinta-2); }
.datos span { display: flex; align-items: center; gap: 6px; }
.datos .coordinar { color: var(--aviso); font-weight: 600; }
.insignias { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.insignia { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.insignia.pago { background: var(--ok-fondo); color: var(--ok); }
.reserva .nota { margin: 0; font-size: 13px; color: var(--suave); line-height: 1.45; white-space: pre-line; }

.lista-filas { display: flex; flex-direction: column; overflow: hidden; }
.fila { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--linea-2); background: none; text-align: left; width: 100%; }
.fila:last-child { border-bottom: 0; }
.fila:hover { background: #FDFAF6; }
.fecha-chip { width: 44px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; flex: none; }
.fecha-chip strong { font-family: var(--titulo); font-size: 20px; }
.fecha-chip span { font-size: 11px; color: var(--tenue); }
.fila .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fila .txt strong { font-size: 14px; }
.fila .txt span { font-size: 12px; color: var(--tenue); }

/* ---------- diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--tinta); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(43, 31, 24, 0.62); }
.hoja { width: 100%; height: 100%; margin: 0; }
.hoja[open] { display: flex; align-items: flex-end; justify-content: center; }
.hoja-cuerpo { position: relative; width: 100%; max-width: 520px; max-height: calc(100% - 56px); overflow-y: auto; background: var(--fondo); border-radius: 28px 28px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; animation: subir 0.22s ease-out; }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.hoja-tobi { position: absolute; right: 12px; top: 6px; width: 92px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.hoja-titulo { display: flex; flex-direction: column; gap: 4px; padding-right: 96px; }
.hoja-titulo h2 { font-size: 28px; letter-spacing: -0.03em; }
.hoja-titulo p { margin: 0; color: var(--suave); font-size: 14px; }
#dlg-objeto .hoja-titulo, #dlg-persona .hoja-titulo { padding-right: 0; }

.modal { width: 100%; height: 100%; margin: 0; }
.modal[open] { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-cuerpo { position: relative; width: 100%; max-width: 380px; background: var(--fondo); border-radius: 28px; padding: 136px 20px 20px; margin-top: 70px; display: flex; flex-direction: column; gap: 14px; animation: subir 0.22s ease-out; }
.modal-cuerpo h2 { text-align: center; font-size: 28px; letter-spacing: -0.03em; }
.modal-tobi { position: absolute; left: 50%; top: -76px; width: 200px; height: 200px; margin-left: -100px; }
.modal-tobi span { position: absolute; inset: 6px 0 0; border-radius: 999px; background: var(--acento); }
.modal-tobi span.circulo { background: #E8A33D; }
.modal-tobi span.gris { background: #C9B8A6; }
.modal-tobi img { position: absolute; left: -2px; top: -14px; width: 210px; max-width: none; height: auto; filter: drop-shadow(0 10px 12px rgba(40, 15, 0, 0.35)); }
.centro { text-align: center; margin: 0; color: var(--tinta-2); }
.resumen { padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--tinta-2); }
.resumen .cab { display: flex; align-items: center; gap: 10px; color: var(--tinta); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label, .etiqueta { font-size: 13px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--linea-input); background: var(--papel); font-size: 16px; color: var(--tinta);
}
textarea { padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--tinta); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 201, 0.25); }
.dos-col, .otro-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.otro-campos { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.ayuda { margin: 0; font-size: 12px; color: var(--suave); }
.error-form { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FBE4E1; color: var(--peligro); font-size: 14px; font-weight: 600; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.acciones.columna { flex-direction: column; }
.acciones .btn { height: 52px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); font-size: 14px; font-weight: 600; }
.chip.sin-av { padding: 0 14px; }
.chip[aria-pressed="true"] { border: 2px solid var(--tinta); }
.objetos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.obj-opcion { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--linea); background: var(--papel); text-align: left; }
.obj-opcion .nombre { display: flex; width: 100%; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 700; }
.obj-opcion small { font-size: 12px; opacity: 0.8; }
.obj-opcion[aria-pressed="true"] { background: var(--tinta); color: #fff; border: 2px solid var(--tinta); }
.aviso-correo { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--info-fondo); color: var(--info); font-size: 13px; }
.aviso-correo svg { flex: none; margin-top: 1px; }

.switch-fila, .check-fila { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; position: relative; }
.switch-fila input, .check-fila input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; background: #CDBEAE; transition: background 0.15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: left 0.15s; }
input:checked + .switch { background: var(--tinta); }
input:checked + .switch::after { left: 23px; }
input:focus-visible + .switch, input:focus-visible + .check { outline: 3px solid #2563C9; outline-offset: 2px; }
.check-fila { justify-content: flex-start; gap: 12px; font-weight: 700; }
.check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #B9A794; background: var(--papel); flex: none; display: flex; align-items: center; justify-content: center; }
input:checked + .check { background: var(--tinta); border-color: var(--tinta); }
input:checked + .check::after { content: ''; width: 12px; height: 7px; border: 3px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -2px); }
.caja-pago { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--papel); border: 1px solid var(--linea); }
.input-precio { display: flex; align-items: center; min-height: 48px; border-radius: 14px; border: 1px solid var(--linea-input); background: var(--papel); overflow: hidden; }
.input-precio span { padding: 0 6px 0 14px; font-weight: 700; color: var(--suave); }
.input-precio span:last-child { padding: 0 14px; font-weight: 500; font-size: 13px; color: var(--tenue); }
.input-precio input { border: 0; min-height: 46px; padding: 0 6px; box-shadow: none !important; }
.nota-coordinar { margin: 0; font-size: 13px; color: var(--aviso); }

.quien-cab { display: flex; align-items: flex-end; gap: 14px; }
.quien-cab h2 { font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.quien-cab p { margin: 6px 0 0; color: var(--tinta-2); }
.quien-foto { position: relative; width: 124px; height: 124px; flex: none; }
.quien-foto span { position: absolute; left: 6px; bottom: 0; width: 112px; height: 112px; border-radius: 999px; background: var(--acento); }
.quien-foto img { position: absolute; left: 0; bottom: -4px; width: 132px; height: auto; max-width: none; filter: drop-shadow(0 8px 10px rgba(60, 25, 5, 0.3)); }
.quien-lista { display: flex; flex-direction: column; gap: 8px; }
.quien-opcion { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--linea); background: var(--papel); text-align: left; }
.quien-opcion:hover, .quien-opcion[aria-current="true"] { border: 2px solid var(--tinta); }
.quien-opcion .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.quien-opcion .txt strong { font-size: 16px; }
.quien-opcion .txt span { font-size: 12px; color: var(--tenue); }

.colores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.color { width: 36px; height: 36px; border-radius: 999px; border: 0; padding: 0; }
.color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--fondo), 0 0 0 5px var(--tinta); }
.color-otro { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px dashed #B9A794; font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
.color-otro input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.foto-perfil-fila { display: flex; align-items: center; gap: 16px; }
.foto-perfil-acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; }
.foto-perfil-acciones .link { padding: 4px 0; font-size: 13px; }
.oculto-archivo { position: absolute; width: 1px; height: 1px; opacity: 0; }
.btn:has(.oculto-archivo) { position: relative; cursor: pointer; }
.btn:has(.oculto-archivo:focus-visible) { outline: 3px solid #2563C9; outline-offset: 2px; }
.foto-equipo { height: 170px; border-radius: 16px; border: 2px dashed #B9A794; background: var(--crema); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--suave); }
.foto-equipo img { width: 100%; height: 100%; object-fit: cover; }
.fila-botones { display: flex; gap: 8px; flex-wrap: wrap; }
.fila-input { display: flex; gap: 8px; }
.fila-input input { flex: 1; min-width: 0; }
.fila-input .btn { height: 48px; }
.chip-tag { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 13px; font-weight: 600; }
.chip-tag button { width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sugerencias { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--suave); }
.sugerencias button { height: 34px; padding: 0 10px; border-radius: 999px; border: 1px dashed #B9A794; background: transparent; font-size: 12px; font-weight: 600; color: var(--tinta-2); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); z-index: 10; }

/* ---------- computador ---------- */
@media (min-width: 720px) {
  .hoja[open] { align-items: center; }
  .hoja-cuerpo { border-radius: 28px; max-height: calc(100% - 48px); padding-bottom: 24px; }
  .hero { padding: 32px 36px; }
  .hero h1 { font-size: 46px; }
  .hola, .hero-sub { font-size: 16px; }
  .hero-acciones { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .hero-acciones .btn { width: auto; }
  .hero-foto { max-width: 330px; top: -70px; right: -10px; }
  .hoy-estado { font-size: 14px; }
}

@media (min-width: 1040px) {
  .app { padding: 20px 24px 48px; }
  .marca-txt strong { font-size: 24px; }
  .marca-txt small { font-size: 12px; }
  .logo { width: 40px; height: 40px; }
  .tablero { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); grid-template-areas: "lado hero" "lado caldia"; align-items: start; gap: 24px 28px; }
  .lado { grid-area: lado; display: flex; flex-direction: column; gap: 28px; }
  .hero { grid-area: hero; margin-top: 60px; min-height: 260px; justify-content: center; padding-right: 360px; }
  .hero h1 { font-size: 54px; max-width: none; }
  .hola, .hero-sub { max-width: 440px; }
  .hero-foto { max-width: 370px; width: 370px; top: auto; bottom: -44px; right: -8px; }
  .cal-y-dia { grid-area: caldia; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
  .calendario { flex: 1 1 480px; max-width: 600px; }
  .sec-dia { flex: 1 1 260px; }
  .equipo-lista { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 8px; }
  .equipo-card { flex: none; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 14px; border-radius: 18px; }
  .equipo-card .info { flex: 1; }
  .equipo-card .estado { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding-left: 56px; }
  .equipo-agregar { flex: none; min-height: 52px; flex-direction: row; }
}
