/* =====================================================
   Presupuestos Chapa y Pintura — Sistema de diseño v3
   Sidebar colapsable + Material-ish, responsive
   ===================================================== */
:root {
  --navy:        #16325c;
  --navy-dark:   #0f2444;
  --navy-700:    #1e457c;
  --accent:      #f2a53a;
  --primary:     #1d4e89;
  --primary-600: #17406f;
  --ai:          #6f42c1;
  --ink:         #1f2937;
  --muted:       #6b7a90;
  --line:        #e6ebf2;
  --bg:          #f4f6fa;
  --sidebar-w:   256px;
  --topbar-h:    58px;
  --radius:      14px;
  --shadow-sm:   0 1px 3px rgba(16,35,61,.08);
  --shadow-md:   0 4px 16px rgba(16,35,61,.10);
  --shadow-lg:   0 12px 32px rgba(16,35,61,.16);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem; -webkit-font-smoothing: antialiased;
}

/* ============ SIDEBAR ============ */
.app-sidebar {
  position: fixed; top: 0; left: 0; z-index: 1045;
  width: var(--sidebar-w); height: 100vh;
  background: linear-gradient(180deg, var(--navy-dark), var(--navy));
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 2px 0 12px rgba(0,0,0,.10);
}
.sidebar-brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.15rem 1.25rem; color: #fff; font-size: 1.15rem; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand i { color: var(--accent); font-size: 1.4rem; }
.brand-accent { color: var(--accent); }

.sidebar-nav { flex: 1; padding: .75rem .6rem; overflow-y: auto; }
.sidebar-section {
  color: rgba(255,255,255,.4); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; padding: 1rem .75rem .4rem;
}
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: .8rem;
  color: rgba(255,255,255,.78); padding: .7rem .8rem; border-radius: 10px;
  font-weight: 500; margin-bottom: .15rem; transition: background .15s, color .15s;
}
.sidebar-nav .nav-link i { font-size: 1.15rem; width: 1.4rem; text-align: center; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav .nav-link.active {
  background: rgba(242,165,58,.16); color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-user {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: #fff; font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: rgba(255,255,255,.5); font-size: .75rem; }
.btn-logout {
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; transition: background .15s;
}
.btn-logout:hover { background: rgba(255,80,80,.5); }

.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(15,36,68,.5); z-index: 1044;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}

/* ============ WRAPPER ============ */
.app-wrapper { margin-left: var(--sidebar-w); min-height: 100vh; transition: margin-left .28s; }
.app-topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--topbar-h);
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .75rem; padding: 0 1rem;
}
.btn-menu {
  background: none; border: none; font-size: 1.5rem; color: var(--navy);
  cursor: pointer; padding: .1rem .3rem; display: none; line-height: 1;
}
.topbar-title { font-weight: 700; font-size: 1.05rem; flex: 1; color: var(--navy); }
.app-main { padding: 1.5rem; max-width: 1320px; margin: 0 auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .app-wrapper { margin-left: 0; }
  .btn-menu { display: block; }
  .app-main { padding: 1rem; }
}

/* ============ CARDS ============ */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; border-radius: var(--radius) var(--radius) 0 0 !important; padding: .9rem 1.1rem; }
.card-body { padding: 1.1rem; }

/* Encabezado de sección con número de paso */
.section-head { display: flex; align-items: center; gap: .6rem; }
.step-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 9px; flex-shrink: 0;
  background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700;
}

/* ============ PATENTE ============ */
.plate-badge {
  display: inline-block; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-weight: 700; letter-spacing: 1.5px; font-size: .92em;
  background: linear-gradient(180deg,#fff,#eef1f6); border: 2px solid var(--navy); border-radius: 6px;
  padding: 3px 12px; color: var(--navy); box-shadow: var(--shadow-sm);
}

/* ============ BOTONES ============ */
.btn { border-radius: 9px; font-weight: 500; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-600); border-color: var(--primary-600); }
.btn-ai { background: var(--ai); color: #fff; }
.btn-ai:hover, .btn-ai:focus { background: #5c37a6; color: #fff; }
.text-ai { color: var(--ai); }

/* ============ STAT CARDS ============ */
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%;
  transition: transform .12s, box-shadow .12s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: .35rem; }
.stat-card .stat-sub   { font-size: .78rem; color: #9aa8bd; margin-top: .15rem; }
.stat-card.stat-total  { background: linear-gradient(135deg, var(--navy-dark), var(--navy-700)); border: none; }
.stat-card.stat-total .stat-value { color: var(--accent); }
.stat-card.stat-total .stat-label, .stat-card.stat-total .stat-sub { color: #cfd9e8; }

/* ============ DROPZONE ============ */
.dropzone {
  border: 2px dashed #bcc9db; border-radius: 12px; padding: 1.5rem; text-align: center;
  color: var(--muted); cursor: pointer; transition: all .15s; background: #f8fafc;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  border-color: var(--primary); background: #eef4fb; outline: none;
}
.dropzone i { font-size: 1.8rem; color: var(--primary); }

/* ============ GRILLA DE FOTOS ============ */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #e9edf3; box-shadow: var(--shadow-sm); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item .photo-delete {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; padding: 0;
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.photo-item:hover .photo-delete, .photo-item:focus-within .photo-delete { opacity: 1; }

/* ============ DAÑOS: tarjetas (no tabla apretada) ============ */
.damage-list { display: flex; flex-direction: column; gap: .75rem; }
.damage-card {
  display: grid; grid-template-columns: 84px 1fr auto; gap: .9rem; align-items: start;
  border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: #fff;
  transition: box-shadow .15s;
}
.damage-card:hover { box-shadow: var(--shadow-md); }
.damage-photo {
  width: 84px; height: 84px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line); background: #f0f3f7;
}
.damage-photo-empty {
  width: 84px; height: 84px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #f0f3f7; color: #b3bfd0; font-size: 1.4rem; border: 1px dashed #cfd8e4;
}
.damage-main { min-width: 0; }
.damage-piece { font-weight: 600; font-size: .98rem; }
.damage-zone { color: var(--muted); font-size: .8rem; margin-bottom: .3rem; }
.damage-desc { color: #52627a; font-size: .85rem; line-height: 1.4; }
.damage-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.damage-chip {
  font-size: .72rem; font-weight: 600; padding: .18rem .5rem; border-radius: 20px;
  background: #eef2f7; color: #4a5a72;
}
.damage-chip i { opacity: .7; }
.damage-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.damage-actions { display: flex; gap: .3rem; }

/* badges de acción */
.badge.action-reparar    { background: #e2edff; color: #0a58ca; }
.badge.action-reemplazar { background: #ffe3e3; color: #c2333f; }
.badge.action-pintar     { background: #fff2cf; color: #96690a; }
.badge.action-revisar    { background: #e4e6ea; color: #414b5a; }
.badge { font-weight: 600; padding: .4em .7em; border-radius: 7px; }

/* ============ PANEL DE CÁLCULO ============ */
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; }
.calc-row + .calc-row { border-top: 1px solid var(--line); }
.calc-label { color: #445068; }
.calc-label small { color: var(--muted); }
.calc-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.total-final {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-700));
  color: #fff; border-radius: 12px; padding: .85rem 1.1rem; margin-top: .75rem;
  display: flex; justify-content: space-between; align-items: center;
}
.total-final .amount { color: var(--accent); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ INFO VEHÍCULO (definición limpia) ============ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem 1.5rem; }
.info-item .info-k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.info-item .info-v { font-size: .95rem; font-weight: 500; }

/* ============ TABLA (dashboard) ============ */
.table { margin: 0; }
.table > thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); border-bottom: 2px solid var(--line); padding: .7rem .75rem; }
.table > tbody td { padding: .75rem; vertical-align: middle; border-color: var(--line); }
.table-hover > tbody > tr:hover > * { background: #f4f8fd; }

/* Cards de presupuesto en móvil (dashboard) */
.budget-cards { display: none; }
@media (max-width: 767.98px) {
  .budget-table-wrap { display: none; }
  .budget-cards { display: flex; flex-direction: column; gap: .7rem; }
}
.budget-card {
  border: 1px solid var(--line); border-radius: 12px; padding: .85rem; background: #fff;
  display: block; color: inherit; text-decoration: none; box-shadow: var(--shadow-sm);
}
.budget-card:hover { box-shadow: var(--shadow-md); color: inherit; }
.budget-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.budget-card-code { font-weight: 700; color: var(--navy); }
.budget-card-row { display: flex; justify-content: space-between; font-size: .85rem; margin-top: .2rem; }
.budget-card-row .k { color: var(--muted); }

/* ============ LOGIN (estilo inspirado en el sitio principal) ============ */
.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  position: relative;
  /* Fondo azul muy oscuro con degradado, al tono del sitio principal. */
  background:
    radial-gradient(1200px 600px at 70% 20%, rgba(37,99,235,.18), transparent 60%),
    linear-gradient(160deg, #0a1424 0%, #0d1f3a 45%, #0a1424 100%);
  overflow: hidden;
}
/* Foto de taller de fondo, atenuada, si está disponible. */
.auth-body::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--auth-bg-image, none);
  background-size: cover; background-position: center;
  opacity: .34; filter: grayscale(.1) contrast(1.08);
  pointer-events: none;
}
/* Franja diagonal de luz, como el sitio principal. */
.auth-body::after {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 70%; height: 160%;
  background: linear-gradient(105deg, transparent 38%, rgba(37,99,235,.16) 50%, transparent 62%);
  transform: rotate(8deg); pointer-events: none;
}
.auth-card { width: 100%; max-width: 410px; position: relative; z-index: 1; }

/* Barras diagonales características de la marca (///). */
.auth-bars { display: inline-flex; gap: 5px; margin-bottom: 1rem; }
.auth-bars span {
  display: block; width: 8px; height: 26px; border-radius: 2px;
  background: var(--auth-accent, #2563eb); transform: skewX(-18deg);
}
.auth-bars span:nth-child(2) { opacity: .75; }
.auth-bars span:nth-child(3) { opacity: .5; }

.auth-title {
  font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; line-height: 1.05; font-size: 1.55rem; margin-bottom: .35rem;
}
.auth-title .accent { color: var(--auth-accent, #2563eb); }
.auth-subtitle { color: rgba(255,255,255,.6); font-size: .9rem; }

.auth-logo {
  width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 1rem;
  background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  box-shadow: var(--shadow-lg);
}

/* Tarjeta del formulario: oscura translúcida, sobre el fondo. */
.auth-card .card {
  background: rgba(17, 30, 54, .72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 16px;
}
.auth-card .card .form-label { color: rgba(255,255,255,.85); font-weight: 600; font-size: .85rem; }
.auth-card .card .input-group-text {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.6);
}
.auth-card .card .form-control {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff;
}
.auth-card .card .form-control:focus {
  background: rgba(255,255,255,.10); color: #fff;
  border-color: var(--auth-accent, #2563eb);
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.25);
}
.auth-card .card .form-control::placeholder { color: rgba(255,255,255,.35); }
.auth-btn {
  background: var(--auth-accent, #2563eb); border: none; color: #fff;
  text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
}
.auth-btn:hover { filter: brightness(1.08); color: #fff; }

/* ============ MODAL / AGENTES ============ */
.ai-card { border-left: 4px solid var(--ai) !important; }
.font-monospace { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .85rem; }

/* selector de foto en modal */
.photo-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-picker .photo-pick { position: relative; cursor: pointer; margin: 0; }
.photo-picker .photo-pick input { position: absolute; opacity: 0; pointer-events: none; }
.photo-picker .photo-pick img, .photo-picker .photo-pick .photo-pick-none {
  width: 82px; height: 62px; object-fit: cover; border-radius: 9px;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: .68rem; color: var(--muted); background: #f5f7fa; transition: all .12s;
}
.photo-picker .photo-pick input:checked + img,
.photo-picker .photo-pick input:checked + .photo-pick-none {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,137,.2);
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ============ SETTINGS: pestañas y vista previa de tema ============ */
.settings-tabs .nav-link { color: var(--muted); font-weight: 600; border-radius: 9px; }
.settings-tabs .nav-link.active { background: var(--primary); color: #fff; }
.theme-preview {
  display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 64px;
}
.theme-preview-side {
  display: flex; align-items: center; gap: .5rem; padding: 0 1rem; color: #fff; font-weight: 600; min-width: 120px;
}
.theme-preview-body {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; flex-wrap: wrap; background: #fff; flex: 1;
}
.form-control-color { width: 3rem; flex: 0 0 auto; }

/* ============ LÍNEA DE TIEMPO ============ */
.status-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.status-timeline .tl-item {
  position: relative; padding: 0 0 1.4rem 2.1rem; min-height: 2.2rem;
}
/* línea vertical que conecta los puntos */
.status-timeline .tl-item::before {
  content: ''; position: absolute; left: 0.5rem; top: 1.1rem; bottom: -0.3rem;
  width: 2px; background: var(--line);
}
.status-timeline .tl-item:last-child::before { display: none; }
/* punto: anillo hueco con centro blanco */
.tl-dot {
  position: absolute; left: 0; top: 0.15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--muted); box-sizing: border-box;
}
.tl-meta { font-size: .78rem; color: var(--muted); margin-bottom: .1rem; }
.tl-title { font-weight: 700; color: var(--ink); line-height: 1.2; }
.tl-desc { color: #52627a; font-size: .88rem; margin-top: .1rem; }

/* Caja de observación general */
.observation-box {
  background: #fbf7ee; border: 1px solid #f0e2c4; border-left: 3px solid var(--accent);
  border-radius: 10px; padding: .7rem .9rem; color: #5c4a2a; font-size: .9rem;
}
.observation-box .info-k { color: #96690a; }

/* Resultado de consulta VIN */
.vin-card {
  background: #eef4fb; border: 1px solid #d3e3f5; border-radius: 10px; padding: .7rem .9rem; font-size: .88rem;
}
.vin-card .vin-k { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.vin-card .vin-v { font-weight: 600; }

/* ============================================================
   Instalación como aplicación (PWA)
   Barra discreta al pie y ayuda para iPhone.
   ============================================================ */
#cyp-instalar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1080;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
  /* Respeta la zona segura del iPhone (barra inferior). */
  margin-bottom: env(safe-area-inset-bottom, 0);
}
#cyp-instalar .cyp-instalar-txt { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
#cyp-instalar .cyp-instalar-txt span { font-size: .82rem; color: #52606d; }
#cyp-instalar .cyp-instalar-si {
  flex: 0 0 auto; border: 0; border-radius: 8px; padding: 10px 16px;
  background: var(--brand, #0d2b4e); color: #fff; font-weight: 600; cursor: pointer;
  /* Mínimo táctil recomendado. */
  min-height: 44px;
}
#cyp-instalar .cyp-instalar-no {
  flex: 0 0 auto; border: 0; background: transparent; color: #7b8794;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
@media (min-width: 576px) {
  #cyp-instalar { left: auto; right: 16px; bottom: 16px; max-width: 420px; }
}

#cyp-ayuda-ios {
  position: fixed; inset: 0; z-index: 1090;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
#cyp-ayuda-ios .cyp-ayuda-caja {
  background: #fff; border-radius: 16px; padding: 24px; max-width: 420px; width: 100%;
  margin-bottom: env(safe-area-inset-bottom, 0);
}
#cyp-ayuda-ios h2 { font-size: 1.1rem; margin: 0 0 12px; }
#cyp-ayuda-ios ol { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
#cyp-ayuda-ios .cyp-ayuda-nota { font-size: .85rem; color: #52606d; margin: 0 0 16px; }
#cyp-ayuda-ios .cyp-ayuda-cerrar {
  width: 100%; border: 0; border-radius: 10px; padding: 12px;
  background: var(--brand, #0d2b4e); color: #fff; font-weight: 600; cursor: pointer;
  min-height: 44px;
}
@media (min-width: 576px) {
  #cyp-ayuda-ios { align-items: center; }
}

/* ============================================================
   Visor de fotos (para no salir de la aplicación instalada)
   ============================================================ */
.visor-fotos {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
  /* Respeta las zonas seguras del teléfono (notch y barra inferior). */
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.visor-fotos .visor-img {
  max-width: 94vw; max-height: 82vh;
  object-fit: contain; border-radius: 6px;
}
.visor-fotos .visor-barra {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
}
.visor-fotos .visor-pos { color: #fff; font-size: .95rem; font-weight: 600; }
.visor-fotos .visor-acciones { display: flex; gap: 6px; margin-left: auto; }
.visor-fotos .visor-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;              /* mínimo táctil */
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 1.1rem; cursor: pointer; text-decoration: none;
}
.visor-fotos .visor-btn:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.visor-fotos .visor-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 1.3rem; cursor: pointer;
}
.visor-fotos .visor-nav:hover { background: rgba(255, 255, 255, .28); }
.visor-fotos .visor-ant { left: 10px; }
.visor-fotos .visor-sig { right: 10px; }
@media (max-width: 575.98px) {
  /* En el teléfono se pasa de foto deslizando: las flechas estorban menos chicas. */
  .visor-fotos .visor-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .visor-fotos .visor-img { max-height: 76vh; }
}
