/* Tipografías servidas desde el propio sitio. Licencia SIL OFL 1.1 */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fuentes/fira-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fuentes/fira-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fuentes/fira-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fuentes/work-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fuentes/work-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fuentes/work-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fuentes/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fuentes/montserrat-600.woff2") format("woff2"); }
/* PersiCas · estilos base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
/* Correos y textos largos: nunca empujan el ancho de la página */
body a[href^="mailto:"] { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
h1, h2, h3, p, li, dd, td, th, figcaption { overflow-wrap: break-word; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.25rem; background: #fff; color: #111827; border-radius: 0; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }

/* Logotipo (recreación vectorial del logo de marca) */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--logo-ink, #fff); }
.logo__mark { width: 2.6rem; height: 2.35rem; flex: none; }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-family: "Montserrat", system-ui, sans-serif; font-weight: 600; font-size: 1.55rem; letter-spacing: -.01em; }
.logo__name span { color: var(--logo-accent, #38BDF8); }
.logo__tag { font-family: "Montserrat", system-ui, sans-serif; font-weight: 500; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; margin-top: .35rem; opacity: .85; white-space: nowrap; }


/* Contacto directo. En escritorio, WhatsApp flotante; por debajo de 1100 px, barra fija con teléfono, correo y WhatsApp.
   La barra reserva su altura en el body para no tapar contenido. */
.dock { position: fixed; z-index: 60; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.dock__item { display: none; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; }
.dock__wa {
  display: inline-flex; height: 3.5rem; min-width: 3.5rem; padding: 0 .875rem;
  background: #25D366; color: #0B2E17; border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; font-size: 1rem;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .18);
}
.dock__wa .ico { width: 1.75rem; height: 1.75rem; }
.dock__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s cubic-bezier(.16, 1, .3, 1), margin .3s cubic-bezier(.16, 1, .3, 1); }
.dock__wa:hover .dock__label, .dock__wa:focus-visible .dock__label { max-width: 7rem; margin-right: .35rem; }
.dock__wa:focus-visible { outline: 3px solid #0B2E17; outline-offset: 3px; }
@media (max-width: 1099.98px) {
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
  .dock { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.3fr 1fr 1.25fr; background: #111827; border-top: 1px solid rgba(255, 255, 255, .16); padding-bottom: env(safe-area-inset-bottom); }
  .dock__item { display: flex; min-height: 3.5rem; padding: 0 .5rem; color: #fff; font-family: "Fira Sans", system-ui, sans-serif; font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dock__item + .dock__item { border-left: 1px solid rgba(255, 255, 255, .16); }
  .dock__item .ico { width: 1.25rem; height: 1.25rem; }
  .dock__wa { height: auto; min-width: 0; color: #0B2E17; font-weight: 600; border-radius: 0; box-shadow: none; font-family: "Fira Sans", system-ui, sans-serif; font-size: .95rem; }
  .dock__wa .ico { width: 1.4rem; height: 1.4rem; }
  .dock__label { max-width: none; overflow: visible; }
  .dock__wa:hover .dock__label, .dock__wa:focus-visible .dock__label { margin-right: 0; }
  .dock__item:focus-visible { outline: 3px solid #38BDF8; outline-offset: -3px; }
  .dock__wa:focus-visible { outline-color: #0B2E17; outline-offset: -3px; }
}

/* Comparador */
/* Sin JavaScript: las dos fotos completas, una junto a otra */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.compare figure { position: relative; }
.compare img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare__line { display: none; }
@media (max-width: 520px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Con JavaScript: una sobre otra y control deslizante */
.js .compare { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; --pos: 50%; }
.js .compare figure { position: absolute; inset: 0; }
.js .compare img { height: 100%; aspect-ratio: auto; }
.js .compare__top img { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.js .compare__line { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.js .compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.js .compare input[type="range"]:focus-visible ~ .compare__line::after { outline: 3px solid #2B8CF0; outline-offset: 3px; }
.compare__line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 6px 16px -4px rgba(0,0,0,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2436' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E"); background-size: 1.4rem; background-repeat: no-repeat; background-position: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Pantallas estrechas: si una palabra larga no cabe, se parte con guion en vez de cortarse a mitad */
@media (max-width: 480px) { h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }

@media (max-width: 1099.98px) { html { scroll-padding-bottom: 4.5rem; } }
