:root{--fondo:#d3e599;--oscuro:#596b37;--medio:#728d44;--claro:#a0b66b;--texto-claro:#d3e599;--rojo:#bb1c2a}
*{box-sizing:border-box}
html,body{margin:0;background:var(--fondo);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:700;color:var(--oscuro)}
.pantalla{max-width:480px;margin:0 auto;padding:16px 28px 40px}
.captura{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.captura-cuerpo{width:100%;max-width:480px;margin:0 auto;padding:16px 28px 28px}
.oveja{display:block;height:120px;margin:0 auto 6px}
.campo{display:block;width:100%;height:68px;margin:0 0 20px;padding:0 20px;border:0;border-radius:18px;background:#fff;
  font:inherit;font-size:19px;color:var(--oscuro)}
.campo::placeholder{color:#c6dc86;opacity:1}
.campo:focus,.cabecera:focus-visible,select:focus-visible{outline:3px solid var(--oscuro);outline-offset:2px}
.seccion{margin:0 0 20px}
.cabecera{display:flex;align-items:center;justify-content:space-between;width:100%;height:60px;padding:0 20px;border:0;border-radius:18px;
  font:inherit;font-size:19px;color:var(--texto-claro);text-align:left}
.cabecera.oscura{background:var(--oscuro);cursor:pointer}
.cabecera.media{background:var(--medio)}
.chev{width:22px;height:22px;border-right:5px solid var(--texto-claro);border-bottom:5px solid var(--texto-claro);
  transform:rotate(45deg) scale(.7);margin-top:-6px;transition:transform .15s}
[aria-expanded=true] .chev{transform:rotate(-135deg) scale(.7);margin-top:6px}
.opciones{margin-top:10px}
.opcion{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 48px);height:56px;margin:0 0 10px;padding:0 14px 0 20px;
  border:0;border-radius:18px;background:var(--claro);color:var(--oscuro);font:inherit;font-size:19px;cursor:pointer;text-align:left}
.caja{flex:none;width:46px;height:40px;border-radius:10px;background:#fff;display:grid;place-items:center}
.caja svg{width:28px;height:28px;fill:none;stroke:var(--claro);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.opcion[aria-checked=true] .caja svg{opacity:1}
.opcion[aria-checked=true]{background:#8da95a}
.desplegable{position:relative;display:block;width:calc(100% - 48px);margin:0 0 10px}
.desplegable select{appearance:none;-webkit-appearance:none;width:100%;height:56px;padding:0 50px 0 20px;border:0;border-radius:18px;
  background:var(--claro);color:var(--oscuro);font:inherit;font-size:19px}
.desplegable .chev{position:absolute;right:18px;top:20px;pointer-events:none;border-color:var(--fondo)}
#mensaje{min-height:24px;margin:8px 0 0;text-align:center;font-size:17px}
#mensaje.error{color:var(--rojo)}
.barra{display:flex;justify-content:center;gap:32px;margin-top:auto;padding:18px 0 calc(18px + env(safe-area-inset-bottom));background:var(--oscuro)}
.redondo{width:108px;height:108px;border:0;border-radius:50%;background:var(--medio);display:grid;place-items:center;cursor:pointer}
.redondo:active{background:#8da95a}
.redondo svg{width:54px;height:54px;fill:none;stroke:var(--texto-claro);stroke-width:3.6;stroke-linecap:round;stroke-linejoin:round}
.redondo:focus-visible{outline:3px solid var(--texto-claro);outline-offset:3px}
@media (max-width:380px){.redondo{width:88px;height:88px}.pantalla,.captura-cuerpo{padding:12px 18px 24px}.opcion,.desplegable{width:calc(100% - 24px)}}
.entrar{display:block;width:100%;height:60px;border:0;border-radius:18px;background:var(--oscuro);color:var(--texto-claro);font:inherit;font-size:19px;cursor:pointer}
#msg-login{min-height:24px;text-align:center;color:var(--rojo)}
.titulo{margin:28px 0 0;text-align:center;font-size:44px;line-height:1.05;color:var(--oscuro)}
.subtitulo{margin:4px 0 40px;text-align:center;font-size:26px;color:var(--medio)}
.lista-grupos{display:flex;flex-direction:column;align-items:center;gap:26px}
.grupo-btn{display:grid;place-items:center;width:min(260px,100%);height:120px;border-radius:26px;background:var(--g,var(--oscuro));
  color:var(--texto-claro);font-size:42px;text-decoration:none;-webkit-tap-highlight-color:transparent}
.grupo-btn:active{transform:scale(.97)}
.grupo-btn:focus-visible,.enlace:focus-visible{outline:3px solid var(--oscuro);outline-offset:3px}
.enlace{display:block;margin:44px auto 0;text-align:center;color:var(--medio);font-size:19px;text-decoration:none}
#grupo{max-width:none;padding:0 0 40px}
.cab-grupo{background:#364520}
.cab-in{display:flex;align-items:center;gap:14px;max-width:480px;margin:0 auto;padding:18px 18px 10px}
.atras{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%}
.atras svg{width:38px;height:38px;fill:none;stroke:var(--medio);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.atras:focus-visible,.pestanas button:focus-visible,.fila-btn:focus-visible{outline:3px solid var(--texto-claro);outline-offset:-3px}
.g-num{flex:none;margin:0;font-size:52px;line-height:1;color:var(--medio)}
.g-lideres{margin:0;font-size:17px;line-height:1.3;color:var(--medio);overflow:hidden}
.g-lideres span{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.pestanas{display:flex;max-width:480px;margin:0 auto;padding-left:15%}
.pestanas button{flex:1;height:50px;border:0;font:inherit;font-size:19px;cursor:pointer;color:var(--texto-claro);background:var(--medio)}
.pestanas button:nth-child(1){border-top-left-radius:22px}
.pestanas button:nth-child(2){background:var(--oscuro)}
.pestanas button[aria-selected=true]{background:var(--fondo);color:#364520}
.filas{list-style:none;max-width:480px;margin:0 auto;padding:26px 10px 0 0;display:flex;flex-direction:column;gap:18px}
.fila{display:flex;align-items:center;gap:8px}
.fila-oveja{flex:none;width:66px;height:66px;border-radius:50%;background:var(--medio);display:grid;place-items:center;overflow:hidden}
.fila-oveja img{width:62px;height:62px;object-fit:contain;margin-top:4px}
.fila-nombre{flex:1;min-width:0;height:56px;display:flex;align-items:center;padding:0 18px;border-radius:16px;background:#fff;color:#364520;font-size:18px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fila-btn{flex:none;width:56px;height:56px;border:0;border-radius:16px;background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.fila-btn svg{width:34px;height:34px}
.vacio{margin:30px 24px 0;text-align:center;color:var(--medio);font-size:19px;list-style:none}
.redondo{text-decoration:none}
.modal{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(32,43,20,.58);overflow-y:auto}
.oveja-tarjeta{position:relative;width:100%;max-width:420px;margin:auto;padding-bottom:38px;border-radius:34px;background:var(--fondo);overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.cab-oveja{height:74px;background:var(--oscuro)}
.cerrar{z-index:3;position:absolute;right:18px;top:12px;width:48px;height:48px;display:grid;place-items:center;border-radius:50%}
.cerrar svg{width:38px;height:38px;fill:none;stroke:var(--medio);stroke-width:3.6;stroke-linecap:round;stroke-linejoin:round}
.cerrar:focus-visible{outline:3px solid var(--texto-claro);outline-offset:1px}
.oveja-centro{pointer-events:none;text-align:center;margin-top:-54px;position:relative;line-height:0}
.oveja-centro img{height:122px}
.oveja-cuerpo{padding:3px 22px 0}
body.con-modal{overflow:hidden}
.tarjeta-nombre{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:5px 7px 5px 18px;border-radius:14px;background:#fff;
  font-size:18px;color:var(--oscuro)}
.cuadro{flex:none;width:38px;height:38px;border:0;border-radius:9px;display:grid;place-items:center;cursor:pointer;padding:0;text-decoration:none}
.cuadro.claro{background:var(--fondo)}
.cuadro.medio{background:var(--medio)}
.cuadro svg{width:26px;height:26px;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:3.2}
.cuadro.claro svg{fill:#fff;stroke:none}
.cuadro.medio svg{stroke:var(--texto-claro)}
.cuadro:focus-visible{outline:3px solid #364520;outline-offset:2px}
.tarjeta-visita{margin-top:12px;border-radius:14px;overflow:hidden;background:#fff}
.tv-cab{display:flex;align-items:center;justify-content:space-between;padding:4px 7px 4px 18px;min-height:46px;background:var(--oscuro);color:var(--texto-claro);font-size:20px;font-weight:400}
.tv-cuerpo{padding:10px 18px 14px;color:var(--oscuro);font-size:16px;font-weight:400;line-height:1.35}
.tv-fecha{display:block;margin-bottom:2px;font-size:24px;font-weight:700;color:#364520}
.tv-sin{color:var(--claro);font-size:18px;font-weight:700}
.dato{display:flex;align-items:center;min-height:50px;margin:0 0 13px;padding:0 18px;border-radius:16px;background:#fff;color:var(--oscuro);font-size:17px}
.dato.vacio-dato{color:var(--claro)}
.dato.medio{background:var(--medio);color:var(--texto-claro)}
.dato.claro{background:var(--claro);color:var(--oscuro)}
.dato.corto,.info-cuerpo .medio{width:calc(100% - 60px)}
.fila-cel{display:flex;align-items:flex-start;gap:12px}
.fila-cel .dato{flex:1;min-width:0}
.wa{flex:none;width:48px;height:48px;border-radius:50%;background:var(--medio);border:4px solid var(--oscuro);display:grid;place-items:center}
.wa svg{width:30px;height:30px;fill:none;stroke:var(--texto-claro);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.wa[hidden]{display:none}
.fila-nombre{text-decoration:none}
.cab-visita{display:flex;align-items:center;height:56px;padding:0 18px;background:var(--oscuro)}
.cab-visita h1{margin:0;font-size:21px;font-weight:400;color:var(--texto-claro)}
.visita-cuerpo{padding:20px 20px 22px}
.calendario{margin:0 0 20px;padding:18px 14px 12px;border-radius:20px;background:#fff;color:#1f2a14}
.cal-cab{display:flex;align-items:center;justify-content:space-between;padding:0 6px 14px;font-size:18px}
.cal-nav{display:flex;gap:14px}
.cal-nav button{width:36px;height:36px;border:0;border-radius:50%;background:none;font:inherit;font-size:28px;line-height:1;color:#1f2a14;cursor:pointer}
.cal-nav button:disabled{color:#d4d9cb;cursor:default}
.cal-dias,.cal-rejilla{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.cal-dias{padding-bottom:6px;border-bottom:1px solid #f0f2ec;font-size:13px}
.cal-rejilla{padding-top:6px;row-gap:2px}
.cal-rejilla button{height:40px;margin:0 auto;width:100%;max-width:40px;padding:0;border:0;border-radius:50%;background:none;font:inherit;font-size:17px;font-weight:500;color:#1f2a14;cursor:pointer}
.cal-rejilla button.fuera{color:#cfd5c6}
.cal-rejilla button:disabled{color:#dfe3d9;cursor:default}
.cal-rejilla button.hoy{box-shadow:inset 0 0 0 2px var(--claro)}
.cal-rejilla button[aria-pressed=true]{background:var(--oscuro);color:var(--texto-claro);box-shadow:none}
.cal-nav button:focus-visible,.cal-rejilla button:focus-visible{outline:3px solid var(--oscuro);outline-offset:1px}
.blanco{position:relative;display:block;margin:0 0 12px}
.blanco select{appearance:none;-webkit-appearance:none;width:100%;height:56px;padding:0 56px 0 24px;border:0;border-radius:18px;background:#fff;color:var(--oscuro);font:inherit;font-size:19px}
.blanco select:focus-visible{outline:3px solid var(--oscuro);outline-offset:2px}
.blanco svg{position:absolute;right:20px;top:17px;width:32px;height:22px;fill:none;stroke:var(--medio);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#v-msg{min-height:24px;margin:6px 0 0;text-align:center;font-size:17px;color:var(--rojo)}
.oveja-tarjeta.sin-pie{padding-bottom:0}
.cab-info{display:flex;justify-content:center;align-items:flex-end;height:104px;background:var(--oscuro)}
.cab-info img{height:82px}
.g-info{margin:8px 0 6px 44px;font-size:46px;line-height:1.1;color:var(--medio)}
.info-cuerpo{padding:0 36px 8px 44px}
.pie-visita{display:flex;justify-content:center;gap:22px;padding:18px 0;background:var(--oscuro)}
.pie-visita .redondo{width:78px;height:78px}
.pie-visita .redondo svg{width:40px;height:40px}
.buscar{position:relative;margin:0 0 20px}
.buscar-campo{display:block;width:100%;height:64px;padding:0 66px 0 20px;border:0;border-radius:18px;background:var(--claro);
  font:inherit;font-size:19px;color:#364520}
.buscar-campo::placeholder{color:var(--texto-claro);opacity:1}
.buscar-campo:focus-visible,.buscar-flecha:focus-visible{outline:3px solid var(--oscuro);outline-offset:2px}
.buscar-flecha{position:absolute;right:0;top:0;width:64px;height:64px;border:0;border-radius:18px;background:none;cursor:pointer;padding:0}
.buscar-flecha .chev{position:absolute;left:21px;top:20px;border-color:var(--fondo)}
.buscar-flecha[aria-expanded=true] .chev{transform:rotate(-135deg) scale(.7);margin-top:6px}
.resultados{position:absolute;z-index:6;left:0;right:0;top:calc(100% + 6px);max-height:300px;overflow-y:auto;margin:0;padding:6px;list-style:none;
  border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(32,43,20,.28);overscroll-behavior:contain}
.resultados li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:6px 14px;border-radius:12px;
  color:var(--oscuro);font-size:18px;cursor:pointer}
.resultados li.activo,.resultados li:hover{background:var(--fondo)}
.resultados li small{flex:none;font-size:14px;color:var(--medio)}
.resultados li.sin{color:var(--claro);cursor:default}
.resultados li.sin:hover{background:none}
.filas.tarjetas{padding:22px 10px 0;gap:16px}
.tarjeta-unidad{padding:12px 12px 14px;border-radius:26px;background:var(--medio);list-style:none}
.tu-cab{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:2px 0 4px 12px}
.tu-cab h2{margin:0;padding-top:4px;font-size:30px;line-height:1.15;color:var(--texto-claro)}
.tu-btn{flex:none;width:56px;height:56px;border:0;border-radius:15px;background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.tu-btn svg{width:36px;height:36px}
.tu-btn:focus-visible,.tu-nombre:focus-visible{outline:3px solid var(--texto-claro);outline-offset:2px}
.tu-filas{list-style:none;margin:8px 0 0;padding:0}
.tu-fila{display:flex;align-items:center;gap:6px;min-height:54px;margin:0 0 6px;padding-left:calc(var(--n,0) * 26px)}
.tu-fila img{flex:none;width:calc(54px - var(--n,0) * 5px);height:calc(54px - var(--n,0) * 5px);object-fit:contain}   /* padre 54, madre 49, hijos 44 */
.tu-nombre{flex:1;min-width:0;display:flex;align-items:center;height:54px;padding:0 18px;border-radius:16px;background:#fff;color:#364520;font-size:17px;
  text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[hidden]{display:none!important}
