/* Ronda de notas del 13-11-2026 (176 a 197). */

/* Nota 183: en la carrocería no van las miniaturas de las fotos. */
.miniaturas.fuera { display: none; }

/* Nota 176: botón para volver siempre a la vista, arriba de la presentación de la cotización. */
.presentacion .pr-cerrar { display: inline-flex !important; align-items: center; gap: 8px; position: sticky; top: 10px; z-index: 6; margin: 0 0 14px; }
.presentacion .pr-cerrar .ico { width: 18px; height: 18px; flex: none; position: relative; z-index: 1; }

/* Nota 181: ruletas de medidas sobre el camión en 3D, abajo a la derecha. */
.medidas-visor { position: absolute; right: 12px; bottom: 12px; z-index: 4; width: min(360px, 46%); padding: 10px 12px 8px;
  border-radius: var(--r-panel, 14px); background: rgba(10, 13, 18, .62); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #f2f4f7; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.medidas-visor[hidden] { display: none; }
.medidas-visor .mv-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.medidas-visor .mv-cab b { font: italic 700 15px/1.2 var(--titulo, Montserrat, sans-serif); }
.medidas-visor .mv-precio { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.medidas-visor .ru-nombre { color: #f2f4f7; font-size: 13px; }
.medidas-visor .ru-tambor { height: 132px; }
.medidas-visor .ru-lista li { color: rgba(242, 244, 247, .8); font-size: 15px; }
.medidas-visor .ru-lista li.centro { color: var(--sobre-acento, #fff); }
.medidas-visor .ru-rango { color: rgba(242, 244, 247, .6); font-size: 11px; }
.medidas-visor .burbuja-grande { margin-top: 6px; color: var(--grafito, #1b1d21); }
@media (max-height: 560px), (max-width: 760px) {
  /* Pruebas 13-11: en pantallas pequeñas el cuadro se achica (sin el rango ni el renglón del precio aparte). */
  .medidas-visor { width: min(250px, 50%); padding: 4px 6px 2px; right: 6px; bottom: 6px; }
  .medidas-visor .mv-cab { margin: 0; }
  .medidas-visor .mv-cab b { font-size: 12px; }
  .medidas-visor .mv-precio { font-size: 12px; }
  .medidas-visor .ru-tambor { height: 76px; }
  .medidas-visor .ru-nombre { font-size: 11px; }
  .medidas-visor .ru-lista li { font-size: 13px; }
  .medidas-visor .ru-rango { display: none; }
}

/* Nota 185: botón de galería en las tarjetas de carrocería. */
.op .op-galeria { position: relative; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .06); color: var(--grafito, #1b1d21); cursor: pointer; }
.op .op-galeria:hover { background: var(--acento, #d71f30); color: var(--sobre-acento, #fff); }
.op .op-galeria:focus-visible { outline: 2px solid var(--grafito, #1b1d21); outline-offset: 2px; }
.op .op-galeria .ico { width: 20px; height: 20px; }
.op.solo-titulo:has(.op-galeria) { grid-template-columns: 68px minmax(0, 1fr) auto auto; }

/* Nota 184: barra de «cómo va el pedido» arriba de la columna, con el camión sin fondo. */
.pedido { display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0 4px; }
.pedido .pd-camion { flex: none; width: 92px; height: 54px; display: grid; place-items: center; }
.pedido .pd-camion img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
/* Pruebas 13-11: un borde que se desvanece avisa que hay más pasos a los lados. */
.pedido .pd-pasos { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
.pedido .pd-pasos { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pedido .pd-pasos::-webkit-scrollbar { display: none; }
.pedido .pd-pasos li { flex: none; }
.pedido button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 5px 12px 5px 10px; border: 0;
  border-left: 3px solid var(--acento, #d71f30); border-radius: 4px; background: rgba(0, 0, 0, .04); color: inherit; cursor: pointer; text-align: left; }
.pedido button small { font-size: 11px; font-weight: 600; color: var(--grafito-3, #6b6f76); }
.pedido button b { font-size: 13px; font-weight: 700; white-space: nowrap; }
.pedido button:hover, .pedido button[aria-current] { background: rgba(var(--acento-rgb, 215, 31, 48), .1); }
.pedido button:focus-visible { outline: 2px solid var(--grafito, #1b1d21); outline-offset: 2px; }

/* Nota 179: lo que trae el camión de serie. */
.de-serie .ds-lista { display: grid; gap: 6px; margin: 4px 0 8px; padding: 0 4px 0 18px; }
.de-serie .ds-lista li { font-size: 14px; line-height: 1.35; }
.de-serie .ds-lista li b { font-weight: 700; }
.de-serie .ds-lista li span { display: block; color: var(--grafito-3, #6b6f76); font-size: 13px; }

/* Nota 176: ventana de cotizar (nombre y celular del cliente). */
.cotizar-form { display: grid; gap: 12px; margin-top: 8px; }
.cotizar-form .cz-campo { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.cotizar-form .cz-campo input { min-height: 48px; padding: 0 14px; border: 1px solid rgba(0, 0, 0, .18); border-radius: var(--r-control, 8px); font: 600 17px "Nunito Sans", sans-serif; background: #fff; color: #1b1d21; }
.cotizar-form .cz-campo input:focus { outline: 2px solid var(--acento, #d71f30); outline-offset: 1px; }
.cotizar-form .cz-error { margin: 0; color: var(--rojo, #c0121f); font-weight: 700; font-size: 14px; }
.cotizar-form .cz-qr summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.cotizar-form .cz-qr .pr-qr { display: grid; place-items: center; padding: 8px; }
.cotizar-form .cz-qr p { font-size: 13px; margin: 4px 0 0; }
.cotizar-form .botones { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cotizar-form .botones .b-sec { display: inline-flex; align-items: center; gap: 6px; }
.cotizar-form .botones .ico { width: 18px; height: 18px; }

/* Nota 199 (13-11): las ruletas sin marco ni panel. Solo el texto sobre el 3D y cada ruleta como un botón de vidrio,
   grande para usar con el dedo en la tablet. */
.medidas-visor { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.medidas-visor .mv-cab { padding: 0 4px 4px; text-shadow: 0 1px 3px rgba(0, 0, 0, .65), 0 0 12px rgba(0, 0, 0, .35); }
.medidas-visor .mv-cab b { font-size: 16px; letter-spacing: .01em; }
.medidas-visor .mv-precio { font-size: 15px; }
.medidas-visor .ruletas { gap: 8px; }
.medidas-visor .ru-nombre, .medidas-visor .ru-rango { text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.medidas-visor .ru-tambor { border-radius: 16px; min-width: 76px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .1));
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 10px 24px -12px rgba(0, 0, 0, .55); }
.medidas-visor .ru-lista li { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.medidas-visor .ru-franja { left: 6px; right: 6px; }
@media (hover: hover) { .medidas-visor .ru-tambor:hover { border-color: rgba(255, 255, 255, .45); } }

/* Nota 198 (13-11): galería en collage; al tocar una foto, grande a un lado y el collage en tira al costado. */
.gfotos { position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 12px 16px 16px;
  background: rgba(10, 12, 16, .96); color: #f2f4f7; opacity: 0; transition: opacity .25s ease; }
.gfotos.ver { opacity: 1; }
.ga-cab { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.ga-cab b { font: italic 700 18px/1.2 var(--titulo, Montserrat, sans-serif); }
.ga-cuenta { color: rgba(242, 244, 247, .65); font-size: 14px; font-variant-numeric: tabular-nums; }
.ga-todas { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; background: rgba(255, 255, 255, .08); color: inherit; font: 700 14px "Nunito Sans", sans-serif; cursor: pointer; }
.ga-todas[hidden] { display: none; }
.ga-cerrar { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer; }
.ga-todas:not([hidden]) + .ga-cerrar { margin-left: 0; }
.gfotos .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ga-todas .ico { width: 18px; height: 18px; }
.ga-cuerpo { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: 0fr minmax(0, 1fr); gap: 0; min-height: 0; transition: grid-template-columns .35s ease, gap .35s ease; }
.ga-grande { position: relative; margin: 0; min-width: 0; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.ga-grande img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.ga-paso { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  background: rgba(10, 12, 16, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; cursor: pointer; }
.ga-ant { left: 10px; } .ga-sig { right: 10px; }
/* Collage: columnas de fotos de distintos altos. */
.ga-tira { min-height: 0; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; align-content: start; scrollbar-width: thin; }
.ga-foto { display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #1a1d22; cursor: zoom-in; }
.ga-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .2s ease; }
@media (hover: hover) { .ga-foto:hover img { transform: scale(1.03); } }
.ga-foto:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Una foto: grande a la izquierda y el collage encogido en una tira de dos columnas a la derecha. */
.gfotos.una .ga-cuerpo { grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.gfotos.una .ga-tira { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gfotos.una .ga-foto { cursor: pointer; }
.gfotos.una .ga-foto img { opacity: .55; }
.gfotos.una .ga-foto[aria-current] { border-color: var(--acento, #d71f30); }
.gfotos.una .ga-foto[aria-current] img, .gfotos.una .ga-foto:hover img { opacity: 1; }
.gfotos:not(.una) .ga-grande { visibility: hidden; }
/* Tablet vertical o celular: la tira va abajo, en una fila que se desliza. */
@media (max-width: 820px) and (orientation: portrait), (max-width: 600px) {
  .gfotos.una .ga-cuerpo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 96px; }
  .gfotos.una .ga-tira { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; }
  .gfotos.una .ga-foto { flex: none; width: auto; height: 100%; }
    .ga-tira { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .gfotos, .ga-cuerpo, .ga-foto img { transition: none; } }

/* Pruebas 13-11: el «Volver» de la cotización en una sola línea, con la flecha al lado. */
.presentacion .pr-cerrar { flex-direction: row; white-space: nowrap; width: auto; max-width: max-content; }

/* Nota 204 (13-11): en «Equipamiento del camión» el camión se ve un poco más pequeño, con sus puntos. */
.vista .foto-caja { transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.visor.camion-chico .vista .foto-caja { scale: .84; }
@media (prefers-reduced-motion: reduce) { .vista .foto-caja { transition: none; } }

/* Nota 201 (13-11): las versiones dentro de la línea escogida, en dos mitades que se abren desde el centro. */
.versiones-split { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -2px 0 6px; perspective: 900px; }
.vs-mitad { position: relative; display: grid; gap: 2px; align-content: start; min-height: 96px; padding: 12px 14px; border-radius: var(--r-control, 8px); cursor: pointer;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.vs-mitad input { position: absolute; opacity: 0; pointer-events: none; }
.vs-mitad small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.vs-mitad b { font: italic 700 16px/1.2 var(--titulo, Montserrat, sans-serif); }
.vs-mitad .vs-datos { font-size: 12.5px; line-height: 1.35; opacity: .8; }
.vs-mitad .vs-precio { margin-top: 4px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.vs-mitad:has(:checked) { background: linear-gradient(160deg, var(--acento, #d71f30), color-mix(in srgb, var(--acento, #d71f30) 70%, #000)); border-color: transparent; color: var(--sobre-acento, #fff); }
.vs-mitad:has(:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
@media (hover: hover) { .vs-mitad:not(:has(:checked)):hover { border-color: rgba(255, 255, 255, .4); } }
.vs-grieta { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; translate: -1px 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, #fff 30%, #fff 70%, transparent); filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px var(--acento, #d71f30)); }
/* La tarjeta se parte: primero una sola pieza con una grieta de luz, luego cada mitad sale a su lado. */
.versiones-split.abrir .vs-izq { animation: vs-izq .75s cubic-bezier(.2, .8, .2, 1) both; }
.versiones-split.abrir .vs-der { animation: vs-der .75s cubic-bezier(.2, .8, .2, 1) both; }
.versiones-split.abrir .vs-grieta { animation: vs-grieta .75s ease-out both; }
@keyframes vs-izq { 0% { transform: translateX(calc(50% + 4px)) rotateY(0) scale(.96); opacity: 0; } 35% { transform: translateX(calc(50% + 4px)) scale(1); opacity: 1; } 70% { transform: translateX(-6px) rotateY(8deg); } 100% { transform: none; opacity: 1; } }
@keyframes vs-der { 0% { transform: translateX(calc(-50% - 4px)) rotateY(0) scale(.96); opacity: 0; } 35% { transform: translateX(calc(-50% - 4px)) scale(1); opacity: 1; } 70% { transform: translateX(6px) rotateY(-8deg); } 100% { transform: none; opacity: 1; } }
@keyframes vs-grieta { 0%, 25% { opacity: 0; scale: 1 0; } 40% { opacity: 1; scale: 1 1; } 100% { opacity: 0; scale: 1 1; } }
@media (prefers-reduced-motion: reduce) { .versiones-split.abrir .vs-mitad, .versiones-split.abrir .vs-grieta { animation: none; } }
body:not(.oscuro) .vs-mitad:not(:has(:checked)) { background: rgba(0, 0, 0, .035); border-color: rgba(0, 0, 0, .14); box-shadow: none; }

/* Notas 205 y 206 (13-11): tipos de carrocería en mosaico (dos por fila, sin huecos), cada uno con el holograma de solo
   la carrocería sobre un fondo oscuro y el nombre como botón inclinado. */
.tipos-holo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* La última sola ocupa toda la fila (sin hueco al lado). */
.tipos-holo > .tipo-holo:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tipos-holo > .tipo-holo:last-child:nth-child(odd) .th-holo { aspect-ratio: 32 / 9; }
@media (max-width: 340px) { .tipos-holo { grid-template-columns: 1fr; } }
.tipo-holo { position: relative; display: grid; grid-template-rows: auto auto; overflow: hidden; cursor: pointer; border-radius: 12px; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 20%, #12304f 0%, #0a1726 55%, #070d15 100%); color: #eef4fb;
  border: 1px solid rgba(120, 190, 255, .18); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .7); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tipo-holo.oculta { display: none; }
.tipo-holo input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-holo::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(120, 200, 255, .06) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(120, 200, 255, .06) 0 1px, transparent 1px 22px); }
.th-holo { position: relative; display: block; aspect-ratio: 16 / 10; }
.th-holo img { position: absolute; top: 10px; left: 12px; width: calc(100% - 24px); height: calc(100% - 10px); object-fit: contain; filter: drop-shadow(0 0 10px rgba(80, 170, 255, .35)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.th-holo.cargando { background: linear-gradient(100deg, transparent 30%, rgba(120, 190, 255, .12) 50%, transparent 70%) 0 0 / 200% 100%; animation: th-brillo 1.4s linear infinite; }
@keyframes th-brillo { to { background-position: -200% 0; } }
.th-nombre { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px 10px; padding: 10px 14px; min-height: 44px;
  border-radius: 8px; transform: skewX(-10deg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s ease, border-color .2s ease; }
.th-nombre > * { transform: skewX(10deg); }
.th-nombre b { font: italic 700 14.5px/1.2 var(--titulo, Montserrat, sans-serif); }
.th-check { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s ease; }
.tipo-holo:has(:checked) { border-color: var(--acento, #d71f30); box-shadow: 0 0 0 1px var(--acento, #d71f30), 0 14px 30px -14px rgba(0, 0, 0, .8); }
.tipo-holo:has(:checked) .th-nombre { background: var(--acento, #d71f30); border-color: transparent; color: var(--sobre-acento, #fff); }
.tipo-holo:has(:checked) .th-check { opacity: 1; }
.tipo-holo:has(:focus-visible) { outline: 2px solid var(--grafito, #1b1d21); outline-offset: 2px; }
@media (hover: hover) { .tipo-holo:hover { transform: translateY(-2px); border-color: rgba(120, 190, 255, .4); } .tipo-holo:hover .th-holo img { transform: scale(1.04); } }
.tipo-holo .th-galeria { position: absolute; top: 8px; right: 8px; margin: 0; width: 44px; height: 44px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tipo-holo .th-galeria .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (prefers-reduced-motion: reduce) { .th-holo.cargando { animation: none; } .tipo-holo, .th-holo img { transition: none; } }
.tipo-holo .th-galeria { display: grid; place-items: center; border-radius: 50%; cursor: pointer; z-index: 2; }
@media (hover: hover) { .tipo-holo .th-galeria:hover { background: var(--acento, #d71f30); border-color: transparent; } }

/* Pruebas 13-11: al volver a una tarjeta de la columna, que no quede debajo del título fijo de la sección. */
.opciones .op-linea, .opciones .versiones-split, .opciones .tipo-holo { scroll-margin-top: 150px; scroll-margin-bottom: 110px; }

/* Pruebas 13-11: en columnas angostas (tablet) el nombre va más pequeño, en una o dos líneas. */
.tipos-holo { container-type: inline-size; }
@container (max-width: 380px) { .th-nombre { margin: 0 6px 6px; padding: 7px 9px; min-height: 40px; } .th-nombre b { font-size: 12px; } .tipo-holo .th-galeria { width: 40px; height: 40px; top: 6px; right: 6px; } }
