/* =========================================================
   Estilos propios (complementan a Tailwind).
   Marca: Azo Sans · #015352 · #079FA7 · #A2E2D4 · #EAD8EF
   ========================================================= */

/* ---------- Base ---------- */
/* Red de seguridad movil primero: nada puede abrir scroll horizontal. Se usa
   "clip" y no "hidden" a proposito, porque "hidden" crearia un contenedor de
   scroll y dejaria de funcionar la cabecera sticky. Es una red, no una excusa:
   lo que se desborde hay que corregirlo en su sitio. */
html, body { overflow-x: clip; }
html { -webkit-tap-highlight-color: transparent; }
body { font-family: "Azo Sans", Arial, Helvetica, sans-serif; }
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }
::selection { background: rgb(var(--c-accent) / .6); color: rgb(var(--c-primary)); }
.text-balance { text-wrap: balance; }

/* Enlaces del menú */
.nav-link {
  padding: .55rem .8rem; border-radius: .6rem;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #374151; transition: color .2s, background .2s;
}
.dark .nav-link { color: #e5e7eb; }
.nav-link:hover, .nav-link.is-active { color: rgb(var(--c-primary)); }
.dark .nav-link:hover, .dark .nav-link.is-active { color: rgb(var(--c-accent)); }
.nav-link.is-active { position: relative; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: rgb(var(--c-secondary)); border-radius: 2px;
}
#site-header .mega { z-index: 60; }
#site-header .group\/dd { position: static; }

/* Títulos de sección con línea (estilo referencia) */
.section-title { position: relative; display: inline-block; padding-bottom: .9rem; }
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 72px; height: 3px; margin-left: -36px;
  background: linear-gradient(90deg, rgb(var(--c-primary)), rgb(var(--c-secondary)));
  border-radius: 3px;
}
.section-title.is-left::after { left: 0; margin-left: 0; }

/* ---------- Animaciones de aparición (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
/* Movil primero: la entrada se desplaza en vertical. Un desplazamiento lateral
   asoma fuera de la pantalla y abre barra de scroll horizontal, y en movil eso
   ademas ensancha el viewport de los elementos fijos. Desde 768 px sobra ancho y
   se recupera el movimiento lateral. */
.reveal.from-left,
.reveal.from-right { transform: translateY(24px); }
@media (min-width: 768px) {
  .reveal.from-left  { transform: translateX(-32px); }
  .reveal.from-right { transform: translateX(32px); }
}
.reveal.zoom       { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: #0b1f1f; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-slide .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 8s ease-out;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > *:nth-child(1) { transition-delay: .3s; }
.hero-slide.is-active .hero-content > *:nth-child(2) { transition-delay: .45s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { transition-delay: .6s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { transition-delay: .75s; }
.hero-slide.is-active .hero-content > *:nth-child(5) { transition-delay: .9s; }
.hero-dot { width: 10px; height: 10px; border-radius: 9999px; background: rgb(255 255 255 / .5); transition: all .3s; }
.hero-dot.is-active { width: 30px; background: rgb(var(--c-accent)); }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: rgb(var(--c-accent)); width: 0; z-index: 10; }
.hero-slider.is-playing .hero-progress { animation: hero-progress var(--hero-interval, 10s) linear forwards; }
.hero-slider.is-paused .hero-progress { animation-play-state: paused; }
.hero-slider.is-paused .hero-slide.is-active .hero-bg { transform: scale(1.01); transition: transform .6s ease-out; }
.hero-toggle { cursor: pointer; }
@keyframes hero-progress { from { width: 0 } to { width: 100% } }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 52px; height: 72px; display: none; align-items: center; justify-content: center;
  background: rgb(255 255 255 / .18); color: #fff; backdrop-filter: blur(6px);
  transition: background .2s;
}
.hero-arrow:hover { background: rgb(var(--c-primary) / .85); }
.hero-arrow.is-prev { left: 0; border-radius: 0 12px 12px 0; }
.hero-arrow.is-next { right: 0; border-radius: 12px 0 0 12px; }
@media (min-width: 768px) { .hero-arrow { display: flex; } }

/* ---------- Tarjetas de servicio con efecto de iluminación ---------- */
.svc-card { position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.svc-card:hover { transform: translateY(-6px); }
.svc-card .svc-img { position: relative; overflow: hidden; }
.svc-card .svc-img img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-card .svc-img::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgb(255 255 255 / .05) 30%, rgb(255 255 255 / .55) 50%, rgb(255 255 255 / .05) 70%, transparent 100%);
  transform: skewX(-18deg); pointer-events: none; opacity: 0;
}
.svc-card.is-shining .svc-img::after, .svc-card:hover .svc-img::after { animation: shine 1.3s cubic-bezier(.4,0,.2,1) forwards; opacity: 1; }
@keyframes shine { from { left: -60%; } to { left: 130%; } }
.svc-card .svc-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 0 rgb(var(--c-accent) / 0); transition: box-shadow .6s;
}
.svc-card.is-shining .svc-img::before { box-shadow: inset 0 0 40px 4px rgb(var(--c-accent) / .45); }

/* ---------- Antes / Después (capa superpuesta con clip-path) ---------- */
.ba-slider { position: relative; aspect-ratio: 4 / 3; background: #0f172a; cursor: ew-resize; overflow: hidden; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* La capa "antes" está encima y se recorta por la derecha: nunca se deforma */
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0); will-change: clip-path; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .15), 0 0 14px rgb(0 0 0 / .4); pointer-events: none; z-index: 2; }
.ba-handle {
  position: absolute; top: 50%; left: var(--ba-pos, 50%); transform: translate(-50%, -50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  background: #fff; color: rgb(var(--c-primary));
  box-shadow: 0 6px 20px rgb(0 0 0 / .35), 0 0 0 5px rgb(255 255 255 / .35);
  cursor: ew-resize; touch-action: none; transition: box-shadow .2s;
}
.ba-handle:focus-visible { outline: 3px solid rgb(var(--c-secondary)); outline-offset: 2px; }
.ba-slider.is-dragging .ba-handle { box-shadow: 0 6px 24px rgb(0 0 0 / .45), 0 0 0 9px rgb(255 255 255 / .25); }
.ba-tag { position: absolute; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 9999px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag-before { left: 14px; }
.ba-tag-after  { right: 14px; }
.ba-range { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ba-slider.is-auto .ba-before { transition: clip-path 1.6s ease-in-out; }
.ba-slider.is-auto .ba-line, .ba-slider.is-auto .ba-handle { transition: left 1.6s ease-in-out; }

/* ---------- Galería de casos ---------- */
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 1rem; color: #fff; font-size: 13px; background: linear-gradient(to top, rgb(0 0 0 / .75), transparent); opacity: 0; transform: translateY(8px); transition: all .35s; }
.gallery-item:hover .gallery-cap, .gallery-item:focus-within .gallery-cap { opacity: 1; transform: none; }
.gallery-item .gallery-zoom { position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .9); color: rgb(var(--c-primary)); opacity: 0; transform: scale(.8); transition: all .3s; }
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgb(3 7 18 / .92); backdrop-filter: blur(6px); }
#lightbox.is-open { display: flex; }
#lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / .6); animation: modal-in .3s ease; }
#lightbox .lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .12); color: #fff; transition: background .2s; }
#lightbox .lb-btn:hover { background: rgb(255 255 255 / .28); }
#lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
#lightbox .lb-close { top: 1rem; right: 1rem; }
#lightbox .lb-cap { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); max-width: 80vw; text-align: center; color: #e5e7eb; font-size: 14px; }

/* ---------- Carrusel de formación ---------- */
/* min-width:0 es imprescindible: dentro de una celda de grid, sin el, la celda
   se dimensiona al contenido del carrusel (todas las fichas en fila) y arrastra
   el ancho de la pagina entera. */
.fm-carousel { --per-view: 1; --gap: 1rem; position: relative; overflow: hidden; min-width: 0; max-width: 100%; }
@media (min-width: 640px)  { .fm-carousel { --per-view: 2; } }
@media (min-width: 900px)  { .fm-carousel { --per-view: 3; } }
@media (min-width: 1200px) { .fm-carousel { --per-view: 5; } }
.fm-track { display: flex; gap: var(--gap); will-change: transform; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.fm-track.no-anim { transition: none; }
.fm-item { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); min-width: 0; }
.fm-card { transition: transform .35s, box-shadow .35s; }

/* Carrusel del equipo: menos fichas a la vez, porque son más altas */
.fm-carousel.is-team { --per-view: 1; --gap: 1.75rem; }
@media (min-width: 640px) { .fm-carousel.is-team { --per-view: 2; } }

.fm-card:hover { transform: translateY(-4px); }

/* ---------- Equipo ---------- */
.team-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.team-card:hover img { transform: scale(1.05); }

/* ---------- Testimonios ---------- */
.quote-mark { font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: rgb(var(--c-accent)); opacity: .6; }

/* ---------- WhatsApp flotante ---------- */
.wa-pulse { animation: wa-ping 1.9s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Modal de video ---------- */
/* El modal esta oculto y anclado a la pantalla por la hoja propia, sin depender de las
   clases "hidden" y "fixed inset-0" del CDN: si ese script tarda, el bloque del modal
   aparecia suelto dentro de la pagina. */
[data-video-modal] {
  display: none;
  position: fixed;
  inset: 0;
  height: 100vh;   /* respaldo para navegadores antiguos */
  height: 100dvh;  /* alto REAL visible: en movil descuenta la barra del navegador, que
                      aparece y desaparece al desplazar. Con "inset: 0" a secas el modal
                      se centraria en el alto maximo y quedaria bajo, medio tapado. */
}
[data-video-modal].is-open { display: flex; align-items: center; justify-content: center; }
/* El velo oscuro se define aqui, NO con clases de utilidad. Las de Tailwind las genera
   el CDN en el navegador: si tarda en cargar o falla, el modal aparecia sobre la pagina
   sin velo, con el fondo a la vista. Esto lo trae la hoja de estilos propia, que es un
   <link> normal, asi que el velo esta puesto desde el primer pintado, siempre. */
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(3 7 18 / .88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
/* Por lo mismo, el fondo de la caja: si el CDN no ha llegado, el modal se lee igual. */
.video-modal-box { background: #fff; }
.dark .video-modal-box { background: #111827; }
.video-modal-box { animation: modal-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
/* Con el modal abierto el fondo no se mueve. Se bloquea en html Y en body: en movil
   bloquear solo el body no siempre basta. No se usa position:fixed a proposito, porque
   el widget de Google Translate escribe "position: relative" en linea sobre el body y
   ganaria la partida. */
html.modal-open,
body.modal-open { overflow: hidden; }
/* El overlay se ata al ancho de la pantalla, no al del documento. Si algun dia algo
   vuelve a desbordarse a lo ancho, el modal no lo arrastra consigo. */
[data-video-modal] { width: 100vw; max-width: 100vw; }
/* Video vertical (9:16, tipo Reel): la caja se estrecha y el marco se mide por el alto,
   no por el ancho. Asi el video llena su marco en vez de quedar diminuto entre dos
   franjas negras, y sigue cabiendo junto al titulo y los botones. */
.video-modal-box.is-vertical { max-width: 24rem; }
.video-modal-box.is-vertical [data-video-frame] {
  aspect-ratio: 9 / 16;
  height: 52dvh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .video-modal-box.is-vertical [data-video-frame] { height: 66dvh; }
}

/* ---------- Decoración ---------- */
.bg-grid {
  background-image: linear-gradient(rgb(var(--c-primary) / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--c-primary) / .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.bg-brand-gradient { background: linear-gradient(135deg, rgb(var(--c-primary)) 0%, rgb(var(--c-secondary)) 100%); }
.bg-soft { background: linear-gradient(180deg, rgb(var(--c-accent) / .18), rgb(var(--c-accent2) / .18)); }
.dark .bg-soft { background: linear-gradient(180deg, rgb(var(--c-primary) / .18), rgb(var(--c-secondary) / .08)); }
.signature { opacity: .9; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .25)); }
.float-slow { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.counter { font-variant-numeric: tabular-nums; }

/* Barra de nivel (dolor) */
.level-bar { display: flex; gap: 3px; }
.level-bar span { flex: 1; height: 8px; border-radius: 4px; background: rgb(var(--c-primary) / .12); }
.level-bar span.on { background: linear-gradient(90deg, rgb(var(--c-secondary)), rgb(var(--c-primary))); }

/* Contenido de servicio */
.svc-prose p { margin-bottom: 1rem; line-height: 1.75; }
.svc-prose h3 { font-weight: 700; font-size: 1.25rem; margin: 2rem 0 .75rem; color: rgb(var(--c-primary)); }
.dark .svc-prose h3 { color: rgb(var(--c-accent)); }

/* ---------- Cabecera tipo slider (servicios / blog) ---------- */
.media-hero .hero-slide { position: absolute; }
.media-hero .hero-slide.is-active { position: relative; }
.media-hero .hero-bg { object-position: center; }

/* ---------- Lightbox: video ---------- */
#lightbox .lb-stage { position: relative; width: min(92vw, 1400px); display: flex; align-items: center; justify-content: center; }
#lightbox .lb-stage img { width: auto; }
#lightbox .lb-video { width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
#lightbox .lb-video iframe { width: 100%; height: 100%; border: 0; }
#lightbox .lb-stage img[hidden], #lightbox .lb-video[hidden] { display: none; }

/* Antes/después a ancho completo: proporción 4:3 en móvil, 16:10 en escritorio */
.ba-full .ba-slider { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .ba-full .ba-slider { aspect-ratio: 16 / 10; } }


/* =========================================================
   Preguntas frecuentes: acordeón con apertura animada
   ========================================================= */
.faq-item {
  position: relative;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 0 0 1px rgb(0 0 0 / .05);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.dark .faq-item { background: rgb(17 24 39); box-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 0 0 1px rgb(255 255 255 / .06); }
.faq-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: rgb(var(--c-secondary)); transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.faq-item:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / .08), 0 0 0 1px rgb(0 0 0 / .05); }
.dark .faq-item:hover { box-shadow: 0 10px 30px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .08); }
.faq-item.is-open { box-shadow: 0 14px 40px rgb(0 0 0 / .1), 0 0 0 1px rgb(var(--c-secondary) / .35); }
.dark .faq-item.is-open { box-shadow: 0 14px 40px rgb(0 0 0 / .55), 0 0 0 1px rgb(var(--c-secondary) / .45); }
.faq-item.is-open::before { transform: scaleY(1); }

.faq-trigger {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: 1.15rem 1.35rem; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: none; border: 0;
}
.faq-trigger:focus-visible { outline: 2px solid rgb(var(--c-secondary)); outline-offset: -3px; }

.faq-num {
  flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  color: rgb(var(--c-secondary)); opacity: .75; padding-top: .15rem;
}
.faq-q { flex: 1; font-weight: 700; line-height: 1.45; color: rgb(17 24 39); }
.dark .faq-q { color: #fff; }
.faq-item.is-open .faq-q { color: rgb(var(--c-primary)); }
.dark .faq-item.is-open .faq-q { color: rgb(var(--c-accent)); }

.faq-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: rgb(var(--c-primary) / .1); color: rgb(var(--c-primary));
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), background-color .3s ease, color .3s ease;
}
.dark .faq-icon { color: rgb(var(--c-accent)); }
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: rgb(var(--c-primary)); color: #fff;
}

/* La animación de altura usa grid: 0fr -> 1fr, sin medir píxeles */
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1); }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-answer {
  padding: 0 1.35rem 1.35rem 3.6rem;
  color: rgb(75 85 99); line-height: 1.75;
  opacity: 0; transform: translateY(-.4rem);
  transition: opacity .3s ease .06s, transform .3s ease .06s;
}
.dark .faq-answer { color: rgb(209 213 219); }
.faq-item.is-open .faq-answer { opacity: 1; transform: none; }
.faq-answer p + p { margin-top: .75rem; }

@media (max-width: 640px) {
  .faq-trigger { padding: 1rem 1.05rem; gap: .75rem; }
  .faq-answer { padding: 0 1.05rem 1.15rem 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item::before, .faq-body, .faq-answer, .faq-icon { transition: none; }
}

/* =========================================================
   Artículos del blog: tipografía de lectura
   ========================================================= */
.post-prose > * + * { margin-top: 2.25rem; }
.post-prose p { line-height: 1.8; }
.post-prose.is-justified p { text-align: justify; text-justify: inter-word; hyphens: auto; }
.post-prose.is-justified .not-justified, .post-prose.is-justified .not-justified p { text-align: left; hyphens: manual; }
.post-prose a { color: rgb(var(--c-primary)); text-decoration: underline; text-underline-offset: 3px; }
.dark .post-prose a { color: rgb(var(--c-accent)); }
.post-prose ul.not-justified { margin-top: 1.25rem; }

/* ---------- Botón flotante «volver arriba» (izquierda, se puede cerrar) ---------- */
.btt-wrap { opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.btt-wrap.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.btt-close { opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .2s ease; }
.btt-wrap:hover .btt-close, .btt-wrap:focus-within .btt-close { opacity: 1; transform: none; }
@media (hover: none) { .btt-close { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .btt-wrap { transition: none; } }
