/* ============================================================
   Paz House 8.2 F1
   Base global mobile-first.
   ============================================================ */
html {
  color-scheme: light;
  font-family: var(--ph-font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--ph-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: var(--ph-font-sans);
  font-size: var(--ph-fs-16);
  font-weight: 400;
  line-height: var(--ph-leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
}

img,
picture,
video,
canvas {
  display: block;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role='button'],
a,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ph-text);
  font-family: var(--ph-font-sans);
  font-weight: 700;
  line-height: var(--ph-leading-tight);
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(var(--ph-fs-28), 6vw, var(--ph-fs-40)); }
h2 { font-size: clamp(var(--ph-fs-22), 4vw, 2rem); }
h3 { font-size: clamp(var(--ph-fs-18), 3vw, var(--ph-fs-22)); }

p,
li,
dd,
dt {
  color: inherit;
}

small {
  font-size: var(--ph-fs-12);
}

.container {
  width: min(100%, var(--ph-container));
  margin-inline: auto;
  padding-inline: var(--ph-gutter);
}

.container--narrow {
  max-width: 880px;
}

::selection {
  background: rgba(255, 79, 168, .18);
  color: var(--ph-text);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(196, 31, 122, .38);
  outline-offset: 3px;
}

:where(button, input, select, textarea):disabled,
[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: .55;
}

.paz-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Texto solo para lectores de pantalla */
.ph-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']):not([type='file']),
  select,
  textarea {
    font-size: 16px;
  }
}

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