/* Abrakadabras — panel de administración. Claro, grande y con pocas cosas por pantalla. */
:root {
  --negro: #071029; --negro-3: #10204A; --tinta: #141824; --gris-7: #3B4254; --gris-6: #565E70; --gris-5: #6B7385; --gris-4: #9AA1B0;
  --gris-3: #CDD2DC; --gris-2: #E4E7ED; --gris-1: #F0F2F5; --fondo: #F4F5F8; --naranja: #E11D2E; --naranja-2: #FF3B4E; --naranja-osc: #B3122A; --azul: #2563EB; --azul-osc: #1D3FAF;
  --ambar: #FFB020; --verde: #16A34A; --wa: #25D366; --rojo: #E5484D; --radio: 18px;
  --sombra: 0 1px 2px rgba(16, 20, 30, .05), 0 6px 20px rgba(16, 20, 30, .05);
  --curva: cubic-bezier(.2, .8, .2, 1); --rebote: cubic-bezier(.34, 1.56, .64, 1);
  --fuente: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--fuente); font-size: 16px; line-height: 1.5; color: var(--tinta); background: var(--fondo); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--curva), background-color .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn--prim { background: var(--naranja); color: #fff; }
.btn--prim:hover { background: var(--naranja-osc); }
.btn--borde { background: #fff; border: 1.5px solid var(--gris-2); }
.btn--borde:hover { border-color: var(--gris-4); }
.btn--wa { background: var(--wa); color: #06331b; }
.btn--peligro { background: var(--rojo); color: #fff; }
.btn--rojo { color: var(--rojo); }
.btn--rojo:hover { border-color: var(--rojo); background: #FFF1F1; }
.btn--grande { height: 52px; padding: 0 24px; font-size: 1.05rem; }
.btn--chico { height: 38px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.btn--icono { padding: 0; width: 38px; }
.btn--bloque { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__escudo { width: 48px; height: 48px; flex: none; }
.logo__escudo img { width: 48px; height: auto; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__marca { font-family: 'Exo 2', var(--fuente); font-style: italic; font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; }
.logo__sub { font-size: .52rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.lateral .logo__marca { background: linear-gradient(180deg, #fff 0%, #eaf0fb 40%, #9fb0cf 55%, #f6f9ff 75%, #c7d2e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lateral .logo__sub { display: none; }
.logo--img img { height: 40px; width: auto; }

/* ── Estructura ── */
.lateral { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; background: var(--negro); color: #fff; display: flex; flex-direction: column; padding: 22px 16px; gap: 6px; z-index: 20; }
.lateral__logo { padding: 0 8px 18px; }
.lateral__nav { display: flex; flex-direction: column; gap: 4px; }
.lateral__nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; color: rgba(255, 255, 255, .72); font-weight: 500; transition: background-color .2s, color .2s; }
.lateral__nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lateral__nav a.es-activa { background: rgba(225, 29, 46, .16); color: #fff; }
.lateral__nav a.es-activa .ic { color: var(--naranja); }
.globo { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--naranja); color: #fff; font-size: .78rem; display: grid; place-items: center; }
.lateral__cargar { margin-top: 18px; height: 50px; border-radius: 14px; }
.lateral__pie { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.lateral__pie a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: rgba(255, 255, 255, .6); font-size: .92rem; }
.lateral__pie a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.principal { margin-left: 248px; padding: 26px 34px 120px; max-width: 1240px; }
.tope { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; min-height: 52px; }
.tope h1 { font-size: 2rem; font-weight: 800; }
.tope__acc { display: flex; gap: 8px; }
.abajo { display: none; }

.aviso { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 500; animation: entra .4s var(--rebote); }
.aviso--ok { background: #E6F7EC; color: #11793A; }
.aviso--error { background: #FDECEC; color: #B42318; }
.aviso--info { background: #EAF2FF; color: #1D4ED8; }
@keyframes entra { from { opacity: 0; transform: translateY(-8px); } }
.intro { color: var(--gris-6); max-width: 80ch; margin-bottom: 18px; }
.intro strong { color: var(--tinta); }
.ayuda { color: var(--gris-6); font-size: .93rem; margin: -6px 0 16px; }
.ayuda a { color: var(--naranja-osc); font-weight: 600; }

/* ── Inicio ── */
.hola h2 { font-size: 1.6rem; }
.hola p { color: var(--gris-6); }
.hola { margin-bottom: 18px; }
.atajos { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.atajo { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--sombra); transition: transform .3s var(--curva); }
.atajo:hover { transform: translateY(-4px); }
.atajo strong { font-size: 1.08rem; }
.atajo small { color: var(--gris-5); }
.atajo__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gris-1); margin-bottom: 8px; transition: transform .4s var(--rebote); }
.atajo:hover .atajo__ic { transform: rotate(-8deg) scale(1.08); }
.atajo--prim { background: linear-gradient(135deg, var(--naranja-2), var(--naranja) 60%, var(--naranja-osc)); color: #fff; }
.atajo--prim small { color: rgba(255, 255, 255, .85); }
.atajo--prim .atajo__ic { background: rgba(255, 255, 255, .2); }
.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.numero { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--sombra); }
.numero span { display: flex; align-items: center; gap: 8px; color: var(--gris-5); font-size: .9rem; }
.numero strong { font-size: 2rem; font-weight: 800; }
.columnas { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.caja { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--sombra); }
.caja__cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.caja__cab h2 { font-size: 1.2rem; }
.caja__cab a { color: var(--naranja-osc); font-weight: 600; font-size: .92rem; }
.caja__sub { font-size: 1rem; margin: 22px 0 10px; }
.caja__vacio { display: flex; align-items: center; gap: 8px; color: var(--gris-5); padding: 10px 0; }
.caja--form { margin-top: 22px; }
.caja--form h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 16px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #FFE6E9; color: var(--naranja-osc); font-weight: 700; flex: none; }
.consulta-mini { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--gris-1); }
.consulta-mini > div { flex: 1; min-width: 0; }
.consulta-mini small { display: block; color: var(--gris-5); font-size: .84rem; }
.consulta-mini p { color: var(--gris-7); font-size: .93rem; margin-top: 2px; }
.visto { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.visto:hover { background: var(--gris-1); }
.visto img, .visto__sin { width: 64px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--gris-1); display: grid; place-items: center; color: var(--gris-4); flex: none; }
.visto__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.visto__txt strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visto__barra, .barra-sector__pista { height: 6px; border-radius: 3px; background: var(--gris-1); overflow: hidden; }
.visto__barra i, .barra-sector__pista i { display: block; height: 100%; border-radius: 3px; background: var(--naranja); transform-origin: left; animation: crece 1s var(--curva) both; }
@keyframes crece { from { transform: scaleX(0); } }
.barra-sector { display: grid; grid-template-columns: 160px 1fr 30px; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; }
.barra-sector span:first-child { display: flex; align-items: center; gap: 8px; }
.barra-sector .ic { color: var(--c); }
.barra-sector__pista i { background: var(--c); }
.barra-sector b { text-align: right; }

/* ── Listas ── */
.buscar-panel label { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: #fff; border-radius: 16px; box-shadow: var(--sombra); margin-bottom: 14px; }
.buscar-panel input { flex: 1; border: 0; outline: 0; background: none; font-size: 1rem; }
.buscar-panel .ic { color: var(--gris-5); }
.filtros-panel { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.filtros-panel a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--gris-2); white-space: nowrap; font-weight: 500; font-size: .93rem; transition: all .2s; }
.filtros-panel a .ic { color: var(--c, var(--gris-5)); width: 18px; height: 18px; }
.filtros-panel a small { color: var(--gris-5); font-size: .78rem; }
.filtros-panel a.es-activo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.filtros-panel a.es-activo .ic, .filtros-panel a.es-activo small { color: rgba(255, 255, 255, .75); }
.filtros-panel--chico a { height: 34px; font-size: .86rem; }
.lista-veh { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fila-veh { display: flex; align-items: center; gap: 16px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: var(--sombra); transition: opacity .3s, transform .3s; }
.fila-veh.es-oculto { opacity: .6; }
.fila-veh.es-vendido .fila-veh__foto img { filter: grayscale(1); }
.fila-veh__foto { position: relative; width: 132px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--gris-1); flex: none; display: grid; place-items: center; color: var(--gris-4); }
.fila-veh__foto img { width: 100%; height: 100%; object-fit: cover; }
.fila-veh__foto em { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 7px; border-radius: 8px; }
.fila-veh__foto em .ic { width: 13px; height: 13px; }
.fila-veh__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fila-veh__txt strong { font-size: 1.08rem; }
.fila-veh__txt small { color: var(--gris-5); }
.fila-veh__precio { font-weight: 700; margin-top: 2px; }
.sector-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); padding: 2px 9px; border-radius: 999px; }
.sector-chip .ic { width: 15px; height: 15px; }
.fila-veh__acc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fila-veh__acc select { height: 38px; border: 1.5px solid var(--gris-2); border-radius: 10px; padding: 0 8px; background: #fff; font-weight: 500; }
.fila-veh__vistas { display: inline-flex; align-items: center; gap: 4px; color: var(--gris-5); font-size: .86rem; padding: 0 6px; }
.fila-veh__vistas .ic { width: 16px; height: 16px; }
.tog { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1.5px solid var(--gris-2); color: var(--gris-4); transition: all .25s var(--rebote); }
.tog:hover { border-color: var(--gris-4); }
.tog.es-on { color: var(--naranja); border-color: #FFC9D0; background: #FFF0F2; }
.tog[data-alternar="destacado"].es-on .ic { fill: currentColor; }
.tog.salta { transform: scale(1.15); }
.leyenda { display: flex; align-items: center; gap: 6px; color: var(--gris-5); font-size: .86rem; margin-top: 14px; flex-wrap: wrap; }
.leyenda .ic { width: 16px; height: 16px; }
.estado { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.estado--verde { background: #E6F7EC; color: #11793A; }
.estado--ambar { background: #FFF4DB; color: #8A5A00; }
.estado--gris { background: var(--gris-1); color: var(--gris-6); }
.estado--naranja { background: #FFE6E9; color: var(--naranja-osc); }
.vacio-panel { text-align: center; padding: 50px 20px; }
.vacio-panel > span { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 16px; display: grid; place-items: center; background: #FFE6E9; color: var(--naranja); }
.vacio-panel > span .ic { width: 40px; height: 40px; }
.vacio-panel h2 { margin-bottom: 18px; }

/* ── Elegir sector ── */
.elegir h2 { font-size: 1.6rem; }
.elegir > p { color: var(--gris-6); margin: 6px 0 22px; }
.elegir__grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.elegir__op { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: var(--sombra); border: 2px solid transparent; transition: transform .3s var(--curva), border-color .2s; animation: entra .5s var(--curva) both; animation-delay: calc(var(--i) * 45ms); }
.elegir__op:hover { transform: translateY(-5px); border-color: var(--c, var(--naranja)); }
.elegir__op > span { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--naranja)) 13%, #fff); color: var(--c, var(--naranja)); margin-bottom: 12px; transition: transform .4s var(--rebote); }
.elegir__op > span .ic { width: 34px; height: 34px; }
.elegir__op:hover > span { transform: scale(1.1) rotate(-6deg); }
.elegir__op strong { font-size: 1.15rem; }
.elegir__op small { color: var(--gris-5); }
.elegir__op--nuevo { background: transparent; border: 2px dashed var(--gris-3); box-shadow: none; }

/* ── Formularios ── */
.paso-form { background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--sombra); margin-bottom: 16px; }
.paso-form > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 16px; }
.paso-form > h2 > span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--tinta); color: #fff; font-size: 1rem; }
.paso-form > h2 > .ic { color: var(--naranja); }
.grilla-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 14px; }
.grilla-form:last-child { margin-bottom: 0; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span:first-child { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; }
.campo > span:first-child .ic { width: 18px; height: 18px; color: var(--gris-5); }
.campo small { color: var(--gris-5); font-size: .8rem; font-weight: 400; }
.campo--ancho { grid-column: 1 / -1; }
.campo--fin { justify-content: flex-end; }
.campo input[type=text], .campo input[type=email], .campo input[type=tel], .campo input[type=url], .campo input[type=number], .campo input[type=password], .campo select, .campo textarea {
  width: 100%; height: 48px; border: 1.5px solid var(--gris-2); border-radius: 12px; padding: 0 14px; background: var(--fondo); outline: 0; transition: border-color .2s, background-color .2s; }
.campo textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--naranja); background: #fff; }
.campo input[type=color] { width: 80px; height: 48px; border: 1.5px solid var(--gris-2); border-radius: 12px; padding: 4px; background: #fff; cursor: pointer; }
.campo input[type=file] { font-size: .9rem; }
.con-unidad { position: relative; display: flex; }
.con-unidad em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--gris-5); font-weight: 600; pointer-events: none; }
.con-unidad input { padding-right: 70px !important; }
.segmentos { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--gris-1); gap: 4px; flex-wrap: wrap; }
.segmentos input, .pastillas input, .iconos-elegir input { position: absolute; opacity: 0; pointer-events: none; }
.segmentos span { display: grid; place-items: center; min-width: 76px; height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 600; cursor: pointer; color: var(--gris-6); transition: all .25s var(--curva); }
.segmentos input:checked + span { background: #fff; color: var(--tinta); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.segmentos input:focus-visible + span { outline: 3px solid var(--naranja); }
.segmentos--chico span { min-width: 48px; padding: 0 10px; }
.precio-in { display: flex; gap: 8px; align-items: center; }
.precio-in input { flex: 1; font-size: 1.15rem !important; font-weight: 700; }
.pastillas { display: flex; flex-wrap: wrap; gap: 6px; }
.pastillas span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--gris-2); font-weight: 500; cursor: pointer; transition: all .2s var(--curva); background: #fff; }
.pastillas span:hover { border-color: var(--gris-4); }
.pastillas input:checked + span { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.pastillas input:focus-visible + span { outline: 3px solid var(--naranja); }
.pastillas__nada span { color: var(--gris-5); border-style: dashed; }
.pastillas__nada input:checked + span { background: var(--gris-1); border-color: var(--gris-3); color: var(--gris-6); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; margin-top: 6px; }
.check input { width: 18px; height: 18px; accent-color: var(--naranja); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__pista { width: 46px; height: 26px; border-radius: 13px; background: var(--gris-3); position: relative; flex: none; transition: background-color .25s; }
.switch__pista::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--rebote); }
.switch input:checked + .switch__pista { background: var(--verde); }
.switch input:checked + .switch__pista::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__pista { outline: 3px solid var(--naranja); outline-offset: 2px; }
.switch strong { display: block; }
.switch small { display: block; color: var(--gris-5); font-size: .84rem; }
.interruptores { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.interruptores .switch { align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--fondo); }

.sector-actual { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--sombra); margin-bottom: 16px; }
.sector-actual > span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; }
.sector-actual > span .ic { width: 28px; height: 28px; }
.sector-actual small { display: block; color: var(--gris-5); font-size: .8rem; }
.sector-actual strong { font-size: 1.15rem; }
.sector-actual a, .sector-actual select { margin-left: auto; }
.sector-actual a { color: var(--naranja-osc); font-weight: 600; }
.sector-actual select { height: 42px; border-radius: 10px; border: 1.5px solid var(--gris-2); padding: 0 10px; background: #fff; }

/* Fotos */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.foto { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--gris-1); cursor: grab; animation: entra .35s var(--rebote); touch-action: none; }
.foto img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.foto.arrastrando { opacity: .4; }
.foto.encima { outline: 3px dashed var(--naranja); outline-offset: 2px; }
.foto__x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.foto__x:hover { transform: scale(1.12); background: var(--rojo); }
.foto__x .ic { width: 16px; height: 16px; }
.foto__portada { position: absolute; left: 6px; bottom: 6px; display: none; padding: 3px 9px; border-radius: 8px; background: var(--naranja); color: #fff; font-size: .74rem; font-weight: 700; }
.foto:first-child .foto__portada { display: block; }
.foto--nueva::after { content: 'Nueva'; position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 8px; background: var(--verde); color: #fff; font-size: .72rem; font-weight: 700; }
.foto--procesando img { opacity: .4; }
.fotos__sumar { aspect-ratio: 4 / 3; border: 2px dashed var(--gris-3); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--gris-6); cursor: pointer; transition: border-color .2s, background-color .2s; text-align: center; padding: 10px; }
.fotos__sumar:hover, .fotos.soltar .fotos__sumar { border-color: var(--naranja); background: #FFF5F6; color: var(--naranja-osc); }
.fotos__sumar .ic { width: 32px; height: 32px; }
.fotos__sumar small { color: var(--gris-5); }
.fotos__sumar input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Barra de guardar, siempre a la vista */
.guardar { position: sticky; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .97); box-shadow: 0 10px 40px rgba(16, 20, 30, .14); margin-top: 6px; }
.guardar__msg { margin-right: auto; color: var(--gris-6); font-weight: 500; }
.guardar__msg.es-error { color: #B42318; }
.guardar__progreso { position: absolute; left: 14px; right: 14px; top: 0; height: 4px; border-radius: 4px; background: var(--gris-1); overflow: hidden; }
.guardar__progreso span { display: block; height: 100%; background: var(--naranja); width: 0; transition: width .2s; }

/* Sectores */
.sectores-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.sector-panel { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; transition: transform .35s var(--curva); }
.sector-panel.es-oculto { opacity: .65; }
.sector-panel__foto { position: relative; aspect-ratio: 16 / 9; background: var(--gris-1); display: grid; place-items: center; color: var(--gris-4); }
.sector-panel__foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.sector-panel__foto em { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 8px; background: rgba(0, 0, 0, .65); color: #fff; font-style: normal; font-size: .8rem; font-weight: 600; }
.sector-panel__ic { position: absolute; left: 12px; bottom: -20px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.sector-panel__txt { padding: 28px 16px 10px; display: flex; flex-direction: column; }
.sector-panel__txt strong { font-size: 1.15rem; }
.sector-panel__txt small { color: var(--gris-5); }
.sector-panel__acc { display: flex; gap: 6px; padding: 8px 16px 16px; margin-top: auto; }
.sector-panel__acc .btn--prim { margin-left: auto; }
.sector-panel__acc .btn--icono:first-child .ic { transform: rotate(0); }
.iconos-elegir { display: flex; flex-wrap: wrap; gap: 8px; }
.iconos-elegir span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--gris-2); cursor: pointer; transition: all .2s; }
.iconos-elegir span .ic { width: 30px; height: 30px; }
.iconos-elegir small { font-size: .74rem; color: var(--gris-6); text-align: center; }
.iconos-elegir input:checked + span { border-color: var(--naranja); background: #FFF0F2; color: var(--naranja-osc); }
.iconos-elegir input:focus-visible + span { outline: 3px solid var(--naranja); }
.formsec__arriba { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 16px; }
.foto-sector { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--gris-1); display: grid; place-items: end center; cursor: pointer; border: 3px solid var(--c); }
.foto-sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-sector__txt { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 12px; padding: 8px 14px; border-radius: 12px; background: rgba(11, 13, 18, .75); color: #fff; font-weight: 600; font-size: .9rem; }
.foto-sector input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.campos-lista { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.campo-fila { display: grid; grid-template-columns: 34px 1.2fr 1fr 1.6fr auto 40px; gap: 12px; align-items: end; padding: 14px; border-radius: 16px; background: var(--fondo); animation: entra .3s var(--curva); }
.campo-fila.se-borra { display: none; }
.campo-fila__mover { display: flex; flex-direction: column; gap: 4px; align-self: center; }
.campo-fila__mover button { width: 30px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--gris-5); background: #fff; }
.campo-fila__mover button .ic { width: 16px; height: 16px; transform: rotate(90deg); }
.campo-fila__mover button:hover { color: var(--tinta); }
.campo-fila__checks { display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
.campo-fila__checks .check { margin: 0; white-space: nowrap; }
.campo-fila__x { width: 40px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--gris-5); }
.campo-fila__x:hover { color: var(--rojo); background: #FFF1F1; }
.campo-fila .campo input, .campo-fila .campo select { background: #fff; }
.tipos-ayuda { margin: 16px 0 0; padding: 14px 18px 14px 34px; border-radius: 14px; background: var(--fondo); color: var(--gris-6); font-size: .88rem; }
.tipos-ayuda li + li { margin-top: 4px; }
.logo-actual { padding: 12px; border-radius: 12px; background: var(--negro); color: #fff; display: inline-flex; margin-bottom: 6px; align-self: flex-start; }
.botonera { display: flex; gap: 10px; flex-wrap: wrap; }

/* Consultas */
.consultas { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; margin-top: 10px; }
.consulta { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 12px; transition: opacity .3s, transform .3s; }
.consulta header { display: flex; align-items: center; gap: 12px; }
.consulta header > div { flex: 1; min-width: 0; }
.consulta header small { display: block; color: var(--gris-5); font-size: .84rem; }
.consulta__veh { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--fondo); font-weight: 600; }
.consulta__veh img { width: 60px; height: 44px; border-radius: 8px; object-fit: cover; }
.consulta__veh .ic { margin-left: auto; color: var(--gris-4); width: 18px; height: 18px; }
.consulta__datos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.consulta__datos div { background: var(--fondo); border-radius: 10px; padding: 8px 10px; }
.consulta__datos dt { font-size: .76rem; color: var(--gris-5); }
.consulta__datos dd { margin: 0; font-weight: 600; font-size: .93rem; }
.consulta__msg { color: var(--gris-7); white-space: normal; }
.consulta__contacto { display: flex; align-items: center; gap: 6px; color: var(--gris-6); font-size: .9rem; flex-wrap: wrap; }
.consulta__contacto .ic { width: 16px; height: 16px; }
.consulta footer { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.consulta__sep { flex: 1; }

/* Diálogo de confirmación */
.dialogo { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5, 7, 10, .5); padding: 20px; animation: aparece .2s; }
@keyframes aparece { from { opacity: 0; } }
.dialogo__caja { background: #fff; border-radius: 22px; padding: 24px; width: min(420px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: entra .3s var(--rebote); }
.dialogo__txt { font-size: 1.08rem; font-weight: 500; margin-bottom: 20px; }
.dialogo__acc { display: flex; gap: 8px; justify-content: flex-end; }
.tostada { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 99; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: entra .3s var(--rebote); display: flex; align-items: center; gap: 8px; }

/* Ingreso */
.ingreso { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(80% 90% at 100% 100%, rgba(225, 29, 46, .35), transparent 60%), linear-gradient(135deg, #0A1B52, var(--negro) 60%); position: relative; overflow: hidden; }
.ingreso__luz { position: absolute; width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(circle, rgba(225, 29, 46, .35), transparent 60%); animation: flota 14s ease-in-out infinite alternate; }
@keyframes flota { to { transform: translate3d(20vmax, 14vmax, 0); } }
.ingreso__caja { position: relative; width: min(420px, 100%); background: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: entra .6s var(--rebote); }
.ingreso__logo { color: var(--tinta); align-self: flex-start; }
.ingreso h1 { font-size: 1.6rem; margin-top: 8px; }
.ingreso__caja > p { color: var(--gris-6); margin-top: -8px; }
.ingreso__nota { color: var(--gris-5); font-size: .82rem; text-align: center; margin-top: -6px; }
.ingreso__o { display: flex; align-items: center; gap: 10px; color: var(--gris-5); font-size: .85rem; }
.ingreso__o::before, .ingreso__o::after { content: ''; flex: 1; height: 1px; background: var(--gris-2); }
.ingreso__volver { display: inline-flex; align-items: center; gap: 6px; justify-content: center; color: var(--gris-5); font-size: .9rem; }

/* ── Celular ── */
@media (max-width: 1100px) {
  .atajos { grid-template-columns: 1fr 1fr; }
  .columnas { grid-template-columns: 1fr; }
  .campo-fila { grid-template-columns: 34px 1fr 1fr 40px; }
  .campo-fila [data-solo], .campo-fila__checks { grid-column: 2 / 4; }
}
@media (max-width: 860px) {
  .lateral { display: none; }
  .principal { margin-left: 0; padding: 18px 14px 110px; }
  .tope h1 { font-size: 1.55rem; }
  .tope .btn span { display: none; }
  .abajo { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center; }
  .abajo a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; font-weight: 500; color: var(--gris-6); padding: 4px 8px; }
  .abajo .ic { width: 24px; height: 24px; }
  .abajo__mas { width: 54px; height: 54px; border-radius: 18px; background: var(--naranja); color: #fff !important; justify-content: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(225, 29, 46, .4); }
  .abajo__mas .ic { width: 28px; height: 28px; }
  .numeros { grid-template-columns: 1fr 1fr; }
  .fila-veh { flex-wrap: wrap; }
  .fila-veh__foto { width: 96px; }
  .fila-veh__acc { width: 100%; justify-content: flex-start; }
  .guardar { bottom: 82px; }
  .guardar .btn--grande { flex: 1; }
  .guardar__msg { width: 100%; }
  .guardar .btn--rojo span { display: none; }
  .formsec__arriba { grid-template-columns: 1fr; }
  .consultas { grid-template-columns: 1fr; }
  .paso-form { padding: 18px 16px; }
  .barra-sector { grid-template-columns: 120px 1fr 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Abrakadabras: áreas próximas, fotos de pedidos para publicar */
.sector-panel em.es-pronto { background: #FBBF24; color: #3a2400; }
.fotos-pedido { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.fotos-pedido a { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; display: block; background: var(--gris-1); }
.fotos-pedido img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--curva); }
.fotos-pedido a:hover img { transform: scale(1.08); }
.consulta--pedido { border-left: 4px solid var(--naranja); }
.btn--magia { background: linear-gradient(135deg, var(--naranja-2), var(--naranja) 50%, var(--azul)); color: #fff; }
.btn--magia:hover { opacity: .92; }
.consulta__hecho { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--verde); }
.consulta__hecho .ic { width: 18px; height: 18px; }
