/* VÉRTICE · mobile usability · 8 November 2026 · ES / EN */
:root { --vx-contact-offset: 0px; }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 2px solid #b89a6a !important;
  outline-offset: 4px;
}
.vx-swipe { touch-action: pan-y pinch-zoom; }
.vx-expand {
  position:absolute; top:12px; right:12px; z-index:5;
  width:44px; height:44px; padding:0; display:grid; place-items:center;
  border:1px solid #8a7a68; border-radius:2px; background:#0d0d0d; color:#f7f4ef;
  font:28px/1 var(--fuente-cuerpo); cursor:pointer;
}
.vx-card-counter { display:none; }
.vx-modal-open, .vx-modal-open body { overflow:hidden; }
.vx-viewer {
  position:fixed; inset:0; width:100%; height:100%; height:100dvh;
  max-width:none; max-height:none; margin:0; padding:0; border:0;
  background:#0d0d0d; color:#f7f4ef;
}
.vx-viewer[open] { display:grid; grid-template-rows: minmax(0,1fr) 76px; padding-top:calc(70px + env(safe-area-inset-top)); padding-bottom:env(safe-area-inset-bottom); }
.vx-viewer::backdrop { background:#0d0d0d; }
.vx-viewer button {
  width:48px; height:48px; padding:0; border:1px solid #8a7a68; background:#0d0d0d;
  color:#f7f4ef; font:30px/1 var(--fuente-cuerpo); cursor:pointer;
}
.vx-viewer-close { position:absolute; top:calc(10px + env(safe-area-inset-top)); right:max(16px,env(safe-area-inset-right)); }
.vx-viewer-zoom { position:absolute; top:calc(10px + env(safe-area-inset-top)); left:max(16px,env(safe-area-inset-left)); }
.vx-viewer-stage { display:flex; align-items:center; justify-content:center; min-height:0; overflow:auto; overscroll-behavior:contain; }
.vx-viewer-stage img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.vx-viewer-stage.vx-zoomed { display:block; touch-action:pan-x pan-y pinch-zoom; }
.vx-zoomed img { width:200%; max-width:none; max-height:none; }
.vx-viewer-controls { display:flex; align-items:center; justify-content:center; gap:28px; }
.vx-viewer-controls span { min-width:72px; text-align:center; font-size:16px; }
/* Controls stay visible with keyboard focus as well as on touchscreens. */
.bd-gal-main:focus-within .bd-gal-arrow, .bc-gallery:focus-within .bc-nav { opacity:1; pointer-events:auto; }
:is(.bd-gal-counter,.bd2-galeria-contador,.act-counter) { color:#f7f4ef !important; background:#0d0d0d; padding:4px 8px; }
.whatsapp-btn { bottom:calc(20px + var(--vx-contact-offset) + env(safe-area-inset-bottom)) !important; }
html #ck-inner p { color:#bdb8b0 !important; }
html #ck-r { color:#f7f4ef !important; }
@media (max-width:1100px) {
  /* Body and input text remain readable on phones and tablets. */
  p, li, dd, blockquote, :is(input,select,textarea):not([type=checkbox]):not([type=radio]) { font-size:max(16px,1rem) !important; }
  :is(button,[role=button],summary), a:not(p a):not(li a):not(.barco-card) { min-height:44px; }
  button, [role=button] { min-width:44px; }
  input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea { min-height:44px; max-width:100%; }
  label:has(input[type=checkbox]), label:has(input[type=radio]) { min-height:44px; }
  :is(.ec-fil-opcion,.fl-opcion) { min-height:44px; }
  :is(.bd2-lb-cerrar,.menu-close-btn,.bc-nav,.bd2-galeria-flecha) { min-width:44px; min-height:44px; }
  :is(.bd-gal-arrow,.bc-nav) { opacity:1 !important; pointer-events:auto; }
  .sidebar-nav-panel { min-height:0; overscroll-behavior:contain; padding-bottom:calc(32px + env(safe-area-inset-bottom)); }
  .sidebar-top { position:sticky; top:0; z-index:6; background:#030303; min-height:52px; flex-shrink:0; }
  .sidebar-links a { min-height:44px; }
  .sidebar-footer-contacto a, footer a { display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere; }
  html #ck-inner { flex-wrap:wrap; }
  html #ck-inner p { flex:1 1 100%; font-size:16px !important; line-height:1.5 !important; }
  #ck-a,html #ck-r { min-height:44px; min-width:44px; }
  body:has(.whatsapp-btn) footer { padding-bottom:92px; }
  .vx-editing .whatsapp-btn { visibility:hidden; pointer-events:none; }
  main, section, article, aside, form, fieldset { min-width:0; }
  h1,h2,h3,p,li { overflow-wrap:break-word; }
  img,video { max-width:100%; }
}
@media (max-width:1100px) {
  /* A dedicated rail below each boat photo keeps arrows off the image. */
  .bd-gallery,.bd2-galeria-grid { overflow:visible !important; aspect-ratio:auto !important; grid-template-columns:1fr !important; }
  .bd-gal-side,.bd2-thumbs { display:none !important; }
  .bd-gal-main,.bd2-img-principal { aspect-ratio:7/6; overflow:hidden; }
  .bd-gal-main-img,.bd2-img-principal>img { height:calc(100% - 64px) !important; bottom:auto !important; }
  .bd-gal-main,.bd2-img-principal { background:#0d0d0d; }
  .bd-gal-main .bd-gal-arrow,.bd2-img-principal .bd2-galeria-flecha {
    top:auto !important; bottom:10px !important; transform:none !important; width:44px; height:44px;
    opacity:1 !important; pointer-events:auto; background:#0d0d0d; border-color:#8a7a68;
  }
  .bd-gal-main .prev,.bd2-galeria-flecha-prev { left:16px !important; }
  .bd-gal-main .next,.bd2-galeria-flecha-next { right:16px !important; }
  .bd-gal-counter,.bd2-galeria-contador {
    bottom:18px !important; left:50% !important; transform:translateX(-50%); font-size:16px !important;
    line-height:20px; letter-spacing:.08em; white-space:nowrap;
  }
  .bc-dots { display:none !important; }
  .vx-card-counter { display:block; position:absolute; left:50%; top:16px; transform:translateX(-50%); z-index:4; padding:3px 8px; color:#f7f4ef; background:#0d0d0d; font-size:14px; }
  .bc-nav { width:44px !important; height:44px !important; }
  .act-hero { margin-bottom:64px; overflow:visible !important; }
  .act-hero-slides,.act-hero-overlay { overflow:hidden; }
  .act-hero>.act-arrow { top:auto !important; bottom:-54px !important; transform:none !important; background:#0d0d0d; border-color:#8a7a68; }
  .act-hero>.act-counter { bottom:-45px !important; right:auto !important; left:50%; transform:translateX(-50%); font-size:16px !important; white-space:nowrap; }
  .act-hero-info { max-width:calc(100% - 48px); }
  .act-thumbs { display:none !important; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto !important; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
@media (max-width:1100px) {
  li > a { display:inline-flex; align-items:center; min-height:44px; }
  form label:not(:has(input)), input::placeholder, textarea::placeholder { font-size:16px !important; }
  input::placeholder, textarea::placeholder { color:#a0a0a0 !important; opacity:1; }
  /* Keep surrounding card links from swallowing the gallery controls. */
  .bc-gallery .vx-expand { z-index:5; }
}
@media (max-width:1100px) {
  a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"] { display:inline-flex; align-items:center; min-height:44px; }
}
/* Essential labels and contact details keep contrast on the dark surfaces. */
:root { --texto-dim:#929292; }
:is(.sidebar-footer-contacto a,.form-group label,.filtro-reset-btn,.filtro-chevron-svg,.art-hero-meta span) { color:#bdb8b0; }
:is(.sidebar-marca,.sidebar-footer-info,.hero-content p.subtitle,.srv-hero-scroll span) { color:#bdb8b0; }

@media (max-width:1100px) {
  .bc-gallery { aspect-ratio:7/6 !important; background:#0d0d0d; }
  .bc-gallery .bc-slide, .bc-img-wrap.bc-gallery::after { bottom:64px; }
  .bc-gallery .bc-img-nombre { bottom:80px; }
  .bc-gallery .bc-nav { top:auto; bottom:10px; transform:none; border:1px solid #8a7a68; background:#0d0d0d; }
  .bc-gallery .vx-card-counter { top:auto; bottom:18px; font-size:16px; line-height:20px; padding:4px 8px; }
  .bc-gallery .bc-base { color:#f7f4ef; }
}
