/* Panel de ppts, a lo Apple y Tesla: barra translúcida, titulares grandes en dos tonos, tarjetas blancas sin bordes,
   botones en píldora y el azul como único color; lo último, en una banda negra a todo lo ancho con botones de Tesla.
   Sigue el tema del sistema (claro u oscuro). */
@font-face { font-family: 'Inter'; src: url('/comun/fuentes/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --fondo: #f5f5f7; --blanco: #ffffff; --superficie-2: #fbfbfd; --gris-boton: #e8e8ed; --gris-boton-2: #dcdce1;
  --texto: #1d1d1f; --texto-2: #6e6e73; --texto-3: #86868b; --linea: #d2d2d7; --linea-suave: rgba(0, 0, 0, .07);
  --azul: #0071e3; --azul-2: #0077ed; --enlace: #0066cc; --naranja: #b64400; --rojo: #e30000; --verde: #03a10e;
  --nav: rgba(250, 250, 252, .8); --velo: rgba(0, 0, 0, .4);
  --sombra: 2px 4px 12px rgba(0, 0, 0, .08); --sombra-2: 2px 4px 16px rgba(0, 0, 0, .16); --sombra-alta: 0 24px 70px rgba(0, 0, 0, .22);
  --tesla: #3e6ae1; --tesla-2: #3457b1;
  --sans: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --curva: cubic-bezier(0, 0, .5, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #000000; --blanco: #1d1d1f; --superficie-2: #161617; --gris-boton: #333336; --gris-boton-2: #424245;
    --texto: #f5f5f7; --texto-2: #a1a1a6; --texto-3: #86868b; --linea: #424245; --linea-suave: rgba(255, 255, 255, .08);
    --enlace: #2997ff; --naranja: #ff791b; --rojo: #ff453a; --verde: #30d158;
    --nav: rgba(22, 22, 23, .8); --velo: rgba(0, 0, 0, .6);
    --sombra: 0 0 0 1px rgba(255, 255, 255, .06); --sombra-2: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .6);
    --sombra-alta: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 15px/1.47 var(--sans); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
[hidden] { display: none !important; }
.contenedor { width: min(1200px, 100% - 44px); margin: 0 auto; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.relleno { fill: currentColor; stroke: none; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--gris-boton);
  color: var(--texto-2); font: 500 11px/1 var(--sans); }

/* ───────── Botones: píldoras de Apple, rectángulos de Tesla y enlaces con «›» ───────── */
.pildora { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 18px; border: 0; border-radius: 980px;
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, transform .1s; }
.pildora:active { transform: scale(.98); }
.pildora.azul { background: var(--azul); color: #fff; }
.pildora.azul:hover { background: var(--azul-2); }
.pildora.gris { background: var(--gris-boton); color: var(--texto); }
.pildora.gris:hover { background: var(--gris-boton-2); }
.pildora.pequena { min-height: 28px; padding: 0 13px; font-size: 12px; }
.pildora.ancha { width: 100%; min-height: 48px; font-size: 16px; border-radius: 12px; }
.pildora .ico { width: 16px; height: 16px; }
.enlace { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--enlace); font-size: 14px; }
.enlace:hover { text-decoration: underline; }
.enlace.flecha::after { content: '›'; font-size: 1.25em; line-height: 1; translate: 0 -.04em; }
.enlace .ico { width: 16px; height: 16px; }
.boton-tesla { display: inline-flex; align-items: center; justify-content: center; width: 264px; height: 40px; border-radius: 4px; font-size: 14px;
  font-weight: 500; letter-spacing: 0; background: rgba(244, 244, 244, .85); color: #171a20; backdrop-filter: blur(8px); transition: background .25s; }
.boton-tesla:hover { background: #fff; }
.boton-tesla.primario { background: var(--tesla); color: #fff; }
.boton-tesla.primario:hover { background: var(--tesla-2); }
.icono-boton { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--texto-2); }
.icono-boton:hover { background: var(--gris-boton); color: var(--texto); }
input, select { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--linea); background: var(--blanco); outline: none; font-size: 15px;
  transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0, 125, 250, .2); }
input::placeholder { color: var(--texto-3); }
input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ───────── Barra de arriba ───────── */
.nav { position: sticky; top: 0; z-index: 30; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linea-suave); }
.nav-dentro { display: flex; align-items: center; gap: 20px; width: min(1200px, 100% - 44px); height: 48px; margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.marca img { width: 24px; height: 24px; border-radius: 6px; }
.nav-enlaces { display: flex; gap: 6px; margin: 0 auto; }
.nav-enlaces a { padding: 6px 12px; border-radius: 980px; color: var(--texto); opacity: .8; font-size: 12.5px; transition: opacity .2s, background .2s; }
.nav-enlaces a:hover { opacity: 1; }
.nav-enlaces a.activa { opacity: 1; background: var(--gris-boton); font-weight: 500; }
.nav-derecha { display: flex; align-items: center; gap: 12px; }
.nav-icono { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--texto); opacity: .8; }
.nav-icono:hover { opacity: 1; }
.nav-icono .ico { width: 17px; height: 17px; }
.nav-cuenta { padding: 0; border: 0; background: none; border-radius: 50%; }
.avatar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  background: var(--color-avatar, var(--gris-boton)); color: #fff; font-weight: 600; font-size: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.mini { width: 18px; height: 18px; font-size: 9px; }
.avatar.grande { width: 56px; height: 56px; font-size: 22px; }
.cuenta-menu { position: absolute; right: max(22px, (100% - 1200px) / 2); top: 54px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 250px; padding: 22px 18px 18px; border-radius: 18px; background: var(--nav); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--sombra-alta); animation: aparecer .2s var(--curva); }
.cuenta-menu b { margin-top: 10px; font-size: 17px; font-weight: 600; }
.cuenta-menu small { margin-bottom: 14px; color: var(--texto-2); }
.cuenta-menu .pildora { width: 100%; }

/* ───────── Lo último: banda de Tesla ───────── */
.destacada { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 56px 22px 46px; background: #000; color: #fff;
  overflow: hidden; }
.destacada::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 55%, rgba(80, 110, 230, .18), transparent 70%); pointer-events: none; }
.destacada-texto { position: relative; text-align: center; }
.destacada h1 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.destacada p { margin: 6px 0 0; color: rgba(255, 255, 255, .7); font-size: 14px; letter-spacing: 0; }
.pantalla { position: relative; width: min(980px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px -20px rgba(70, 100, 230, .35), 0 30px 60px -30px rgba(0, 0, 0, .9);
  animation: aparecer .6s var(--curva) both; }
.pantalla iframe, .miniatura iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.destacada-botones { position: relative; display: flex; gap: 24px; }

/* ───────── Secciones con titular en dos tonos ───────── */
.seccion { padding: 64px 0 72px; }
.seccion.clara { background: var(--blanco); padding-bottom: 80px; }
@media (prefers-color-scheme: dark) { .seccion.clara { background: var(--superficie-2); } }
.seccion-cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.seccion-cabecera h2 { margin: 0; max-width: 760px; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.seccion-cabecera h2 span { color: var(--texto-3); }
.herramientas { display: flex; align-items: center; gap: 10px; }
.buscador { position: relative; display: flex; align-items: center; }
.buscador .ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--texto-3); pointer-events: none; }
.buscador input { width: 240px; height: 36px; padding: 0 14px 0 36px; border: 0; border-radius: 980px; background: var(--gris-boton); font-size: 14px; }
.buscador input:focus { background: var(--blanco); box-shadow: 0 0 0 4px rgba(0, 125, 250, .2), 0 0 0 1px var(--azul); }
.segmentado { display: flex; padding: 2px; border-radius: 980px; background: var(--gris-boton); }
.segmentado button { display: grid; place-items: center; width: 36px; height: 32px; border: 0; border-radius: 980px; background: none; color: var(--texto-2); }
.segmentado button[aria-pressed="true"] { background: var(--blanco); color: var(--texto); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.segmentado .ico { width: 16px; height: 16px; }

/* ───────── Tarjetas de presentación ───────── */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.tarjeta { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--blanco); box-shadow: var(--sombra);
  transition: transform .3s var(--curva), box-shadow .3s var(--curva); animation: aparecer .45s var(--curva) both; animation-delay: calc(var(--i, 0) * 40ms); }
.tarjeta:hover { transform: scale(1.012); box-shadow: var(--sombra-2); }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } }
.miniatura { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px 18px 0 0; background: #000; cursor: pointer; }
.insignia { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 980px; background: rgba(255, 255, 255, .86); color: #1d1d1f;
  backdrop-filter: blur(10px); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.cuerpo { position: relative; display: flex; flex-direction: column; padding: 18px 22px 22px; }
.antetitulo { margin: 0 0 4px; color: var(--naranja); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.cuerpo b { display: block; padding-right: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--texto-2); font-size: 13px; }
.meta > span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acciones-fila { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.mas { position: absolute; right: 14px; top: 14px; }
.menu { position: absolute; right: 12px; top: 52px; z-index: 20; min-width: 230px; padding: 6px; border-radius: 14px; background: var(--nav);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--sombra-alta); animation: aparecer .16s var(--curva); }
.menu button { display: flex; align-items: center; width: 100%; gap: 10px; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none;
  text-align: left; font-size: 14px; }
.menu button .ico { width: 16px; height: 16px; color: var(--texto-2); }
.menu button:hover { background: var(--azul); color: #fff; }
.menu button:hover .ico { color: #fff; }
.menu hr { margin: 5px 10px; border: 0; border-top: 1px solid var(--linea-suave); }
.menu button.peligro, .menu button.peligro .ico { color: var(--rojo); }
.menu button.peligro:hover { background: var(--rojo); color: #fff; }
.menu button.peligro:hover .ico { color: #fff; }

/* Lista: filas dentro de un solo bloque blanco, como Ajustes */
.rejilla.lista { display: flex; flex-direction: column; gap: 0; border-radius: 18px; background: var(--blanco); box-shadow: var(--sombra); }
.rejilla.lista .tarjeta { flex-direction: row; align-items: center; border-radius: 0; background: none; box-shadow: none; }
.rejilla.lista .tarjeta:hover { transform: none; background: var(--superficie-2); }
.rejilla.lista .tarjeta + .tarjeta { border-top: 1px solid var(--linea-suave); }
.rejilla.lista .tarjeta:first-child { border-radius: 18px 18px 0 0; } .rejilla.lista .tarjeta:last-child { border-radius: 0 0 18px 18px; }
.rejilla.lista .tarjeta:only-child { border-radius: 18px; }
.rejilla.lista .miniatura { width: 128px; flex: none; margin: 12px 0 12px 16px; border-radius: 8px; }
.rejilla.lista .insignia { display: none; }
.rejilla.lista .cuerpo { flex: 1; flex-direction: row; align-items: center; gap: 16px; padding: 12px 64px 12px 18px; min-width: 0; }
.rejilla.lista .cuerpo > div:first-child { flex: 1; min-width: 0; }
.rejilla.lista .cuerpo b { font-size: 16px; padding: 0; }
.rejilla.lista .acciones-fila { margin: 0; }
.rejilla.lista .mas { top: 50%; translate: 0 -50%; }
.rejilla.lista .menu { top: 70%; }

.vacio { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 70px 20px; border-radius: 18px; background: var(--blanco);
  box-shadow: var(--sombra); text-align: center; color: var(--texto-2); font-size: 17px; }
.vacio p { margin: 0; max-width: 460px; }

/* ───────── Carrusel de plantillas ───────── */
.flechas { display: flex; gap: 10px; }
.flechas button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--gris-boton); color: var(--texto); }
.flechas button:hover { background: var(--gris-boton-2); }
.carrusel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(22px, (100% - 1200px) / 2);
  padding: 6px max(22px, (100% - 1200px) / 2) 30px; scrollbar-width: none; }
.carrusel::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 330px; scroll-snap-align: start; display: flex; flex-direction: column; border: 0; padding: 0; border-radius: 18px; background: var(--fondo);
  text-align: left; overflow: hidden; transition: transform .3s var(--curva), box-shadow .3s var(--curva); }
@media (prefers-color-scheme: dark) { .tile { background: var(--blanco); } }
.tile:hover { transform: scale(1.015); box-shadow: var(--sombra-2); }
.tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile-cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.tile-cuerpo b { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.tile-cuerpo small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--texto-2); font-size: 14px; line-height: 1.4; }
.tile-cuerpo .enlace { margin-top: 6px; }

/* ───────── Pie ───────── */
.pie { padding: 22px 0 30px; border-top: 1px solid var(--linea-suave); color: var(--texto-3); font-size: 12px; }
.pie p { margin: 0 0 10px; }
.pie-linea { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; border-top: 1px solid var(--linea-suave); }
.pie a { color: var(--enlace); }

/* ───────── Hojas (diálogos) ───────── */
.hoja { position: relative; width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px; background: var(--blanco); color: var(--texto);
  box-shadow: var(--sombra-alta); }
.hoja[open] { animation: hoja .3s var(--curva); }
@keyframes hoja { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.hoja::backdrop { background: var(--velo); backdrop-filter: blur(6px); }
.hoja > form { display: flex; flex-direction: column; gap: 16px; padding: 30px; }
.hoja h2 { margin: 0 40px 4px 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.hoja h2 span { color: var(--texto-3); }
.cerrar-hoja { position: absolute; right: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0;
  border-radius: 50%; background: var(--gris-boton); color: var(--texto-2); }
.cerrar-hoja:hover { background: var(--gris-boton-2); color: var(--texto); }
.cerrar-hoja .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.hoja-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.hoja-pie:has(> :only-child) { justify-content: flex-end; }
.campo { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.campo input { font-weight: 400; }
.etiqueta { margin: 8px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.etiqueta span { color: var(--texto-3); }

/* Nueva: la plantilla elegida en grande a la izquierda y las opciones a la derecha */
.hoja-nueva { width: min(1120px, calc(100vw - 32px)); height: min(740px, calc(100vh - 40px)); overflow: hidden; }
.hoja-nueva > form.nueva { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; height: 100%; padding: 0; }
.nueva-vista { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 48px; background: var(--fondo); border-radius: 22px 0 0 22px; }
.nueva-vista h2 { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.nueva-texto { margin: 0 0 22px; color: var(--texto-2); font-size: 15px; min-height: 3em; }
.nueva-vista img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.nueva-opciones { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 70px 30px 26px; }
.opciones-plantilla { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; margin: 0 -6px; padding: 4px 6px; }
.opcion { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--linea); border-radius: 14px; background: none;
  text-align: left; transition: border-color .2s, box-shadow .2s; }
.opcion:hover { border-color: var(--texto-3); }
.opcion img { width: 92px; flex: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #000; }
.opcion span { display: flex; flex-direction: column; min-width: 0; }
.opcion b { font-size: 15px; font-weight: 600; }
.opcion small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-2); font-size: 12.5px; }
.opcion.elegida { border-color: var(--azul); box-shadow: 0 0 0 1px var(--azul); }
.nueva-pie { padding-top: 6px; }

.invitar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.invitar .pildora { min-height: 44px; }
.personas { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: var(--fondo); }
.personas li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.personas li + li { border-top: 1px solid var(--linea-suave); }
.personas li span.quien { flex: 1; font-weight: 500; } .personas li small { color: var(--texto-3); }
.personas select { height: 32px; padding: 0 10px; font-size: 13px; }
.versiones { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; border-radius: 14px; background: var(--fondo); }
.versiones li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.versiones li + li { border-top: 1px solid var(--linea-suave); }
.versiones li div { flex: 1; min-width: 0; } .versiones li small { display: block; color: var(--texto-3); font-size: 12.5px; }
.versiones li.actual b::after { content: 'Actual'; margin-left: 8px; padding: 2px 8px; border-radius: 980px; background: var(--azul); color: #fff; font-size: 11px; font-weight: 600; }
.aviso-pequeno { margin: 0; color: var(--rojo); font-size: 14px; }

/* ───────── Aviso flotante ───────── */
.aviso { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 50; padding: 12px 20px; border-radius: 980px; background: rgba(29, 29, 31, .92);
  color: #f5f5f7; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; animation: aparecer .25s var(--curva); }
.aviso.error { background: var(--rojo); color: #fff; }

/* ───────── Página de entrar: titular de Apple y la presentación en una pantalla ───────── */
.pagina-entrar { min-height: 100vh; display: flex; flex-direction: column; }
.entrar { flex: 1; }
.entrar-hero { display: flex; flex-direction: column; align-items: center; padding: 72px 22px 30px; text-align: center; }
.entrar-hero h1 { margin: 0; font-size: clamp(56px, 9vw, 96px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.entrar-lema { margin: 14px 0 30px; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.entrar-lema span { color: var(--texto-3); }
.opciones { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(340px, 100%); }
.boton-sso { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 980px; background: var(--texto);
  color: var(--fondo); font-size: 17px; font-weight: 500; transition: opacity .2s, transform .1s; }
.boton-sso:hover { opacity: .88; }
.boton-sso:active { transform: scale(.98); }
.boton-sso svg { width: 22px; height: 22px; }
.separador { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; color: var(--texto-3); font-size: 12px; }
.separador::before, .separador::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.entrar-local { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.entrar-local .boton { height: 44px; border: 0; border-radius: 980px; background: var(--gris-boton); font-weight: 500; }
.entrar-local small { color: var(--texto-3); font-size: 12px; text-align: center; }
.entrar-hero .error { margin: 0 0 16px; color: var(--rojo); }
.entrar-hero .aviso-config { margin: 0; color: var(--texto-2); }
.entrar-nota { margin: 18px 0 0; color: var(--texto-3); font-size: 13px; }
.vitrina { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 22px 70px; }
.pantalla-grande { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; border-radius: 22px; border: 10px solid #1d1d1f; background: #000;
  box-shadow: 0 0 0 1px rgba(127, 127, 127, .25), 0 50px 100px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.pantalla-grande img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.pantalla-grande img.activa { opacity: 1; }
.vitrina-nombre { margin: 0; color: var(--texto-2); font-size: 14px; }
.puntos { display: flex; gap: 8px; }
.puntos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--linea); }
.puntos button.activa { background: var(--texto); }
.ventajas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: min(1000px, 100% - 44px); margin: 0 auto 80px; }
.ventajas div { padding: 28px; border-radius: 18px; background: var(--blanco); box-shadow: var(--sombra); }
.ventajas b { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.ventajas p { margin: 0; color: var(--texto-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ───────── Móvil ───────── */
@media (max-width: 860px) {
  /* Las secciones bajan a una segunda fila (un fixed dentro de .nav quedaría atrapado por su backdrop-filter) */
  .nav-dentro { flex-wrap: wrap; gap: 0 12px; height: auto; padding-top: 10px; }
  .nav-enlaces { order: 3; width: 100%; justify-content: space-between; gap: 4px; margin: 6px 0 8px; overflow-x: auto; scrollbar-width: none; }
  .nav-enlaces a { flex: none; font-size: 13px; }
  .nav-derecha { margin-left: auto; }
  .destacada { padding: 34px 16px 30px; gap: 20px; }
  .destacada h1 { font-size: 28px; }
  .destacada-botones { flex-direction: column; gap: 12px; width: 100%; }
  .boton-tesla { width: 100%; }
  .seccion { padding: 40px 0 48px; }
  .seccion-cabecera { flex-direction: column; align-items: stretch; margin-bottom: 22px; }
  .seccion-cabecera h2 { font-size: 30px; }
  .herramientas .buscador { flex: 1; } .buscador input { width: 100%; }
  .flechas { display: none; }
  .rejilla { grid-template-columns: 1fr; gap: 18px; }
  .rejilla.lista .acciones-fila { display: none; }
  .tile { width: 78vw; }
  .pie-linea { flex-direction: column; gap: 6px; }
  .hoja-nueva { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; overflow: auto; }
  .hoja-nueva > form.nueva { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .nueva-vista { padding: 64px 20px 20px; border-radius: 0; }
  .nueva-vista h2 { font-size: 30px; }
  .nueva-opciones { padding: 20px; }
  .opciones-plantilla { overflow: visible; }
  .ventajas { grid-template-columns: 1fr; }
  .entrar-hero { padding-top: 48px; }
}
