/* ==========================================================================
   Cuas Veterinaria — Base styles
   Requiere: /brand/tokens.css cargado antes que este archivo.
   ========================================================================== */

/* ---------- Typography base ---------- */
html, body {
  /* overflow-x:hidden absorbs decorative absolute-positioned accents
     (e.g. .accent, .separator) that intentionally extend past the viewport.
     Real layout overflow is still surfaced by the QA element-overflow check
     for non-decorative (non-aria-hidden) elements. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Primary CTA button ---------- */
/* .btn-cuas: purple pill, pink liquid-fill on hover.
   Espera dentro: .btn-label, opcional .btn-icon (lucide), opcional .btn-wave o .btn-blob
   para efectos de hover definidos por el flow. Sin esos elementos el botón es
   completamente funcional con un hover de color simple. */
.btn-cuas {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 32px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--cuas-purple);
  border: 2px solid var(--cuas-purple-ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  text-align: center;
  transition: background-color 200ms var(--ease-out), transform 140ms var(--ease-out);
  will-change: transform;
}

/* No :hover background change here. Per-flow HTMLs typically supply their own
   hover effect (e.g. a .btn-wave SVG that slides up). Forcing a background
   change here conflicts with those animations and produces a color jump. */

.btn-cuas:active {
  transform: scale(0.98);
}

.btn-cuas:focus-visible {
  outline: 3px solid var(--cuas-purple-soft);
  outline-offset: 3px;
}

/* Label and icon stay above any animated layer */
.btn-cuas > .btn-label,
.btn-cuas > .btn-icon {
  position: relative;
  z-index: 2;
  transition: transform 300ms var(--ease-out);
  will-change: transform;
}

/* ---------- Section wrapper ---------- */
.section {
  padding-block: var(--block-pad);
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (max-width: 700px) {
  .container {
    padding-inline: 20px;
  }
}

/* ---------- Flex helpers ---------- */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* ---------- Typography utilities ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-display-xl);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--cuas-purple-ink);
  margin: 0;
}

.text-muted {
  color: var(--fg-3);
  font-size: var(--t-body-sm);
}

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--t-caption);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--cuas-purple);
}
