/* IMAV landing · tokens de docs/DESIGN-TOKENS.md · móvil primero */

:root {
  /* Marca */
  --navy: #042656;
  --navy-50: #e6ecf5;
  --teal: #4e9a8b;      /* superficies y acentos; no para texto normal */
  --teal-700: #2f6f63;  /* texto teal sobre blanco (5.9:1) */
  --teal-100: #d6eae5;
  --teal-50: #eef6f4;

  /* shadcn */
  --background: #ffffff;
  --foreground: #2b2b2b;
  --card: #ffffff;
  --muted: #f6f8f8;
  --muted-foreground: #5c6670;
  --border: #dfe5e8;
  --ring: var(--teal);
  --radius: 0.625rem;

  /* Locales */
  --radius-card: 12px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .08);
  --container: 1140px;
  --gutter: 20px;
  --section-y: 56px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 Nunito, system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.25; color: var(--navy); }
h2 { font-size: 28px; margin-bottom: 24px; }
h3 { font-size: 20px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 10;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--teal-50); }
.section--muted { background: var(--muted); }

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
}

.link {
  display: inline-block; padding: 10px 0; /* área táctil ≥ 44px */
  color: var(--teal-700); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.link:hover { color: var(--navy); text-decoration-thickness: 2px; }

/* ---------- Encabezado ---------- */
.site-header { padding: 16px 0; }
.site-header__logo { width: auto; height: 44px; }

/* ---------- 1. Hero ---------- */
.hero { background: var(--teal); overflow: hidden; }
.hero__inner { display: grid; }
.hero__copy { padding: 40px 0 8px; }
/* Blanco sobre teal solo en 24px o más (DESIGN-TOKENS) */
.hero h1 { color: #fff; font-size: 32px; line-height: 1.2; }
.hero__lead { margin-top: 16px; color: #fff; font-size: 24px; line-height: 1.4; }
.hero__art { position: relative; width: 100%; max-width: 400px; margin: 24px auto 0; }
.hero__photo { position: relative; z-index: 1; }
.hero__particle { position: absolute; z-index: 0; }
.hero__particle--paw { width: 28px; top: 10%; left: 6%; }
.hero__particle--trail { width: 140px; top: 2%; right: 0; }
.hero__particle--yarn { width: 88px; bottom: 26%; left: -4%; }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .hero__art { animation: rise .6s ease-out both; }
  .hero__art { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- 2. Respaldo ---------- */
.backing__claims {
  padding: 48px 0 230px;
  background: #fff url("images/kittens-ragdoll-playing-with-toys-6N5D4DT.jpg") no-repeat 72% 100% / auto 260px;
}
.claims { display: grid; gap: 16px; max-width: 460px; }
.claim {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .92);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--navy); font-size: 22px; font-weight: 800; line-height: 1.3;
}
.claim img { flex: none; width: 44px; height: 44px; object-fit: contain; }

.backing__dogs { width: calc(100% - 2 * var(--gutter)); max-width: 620px; margin: 24px auto 0; }
.credentials {
  display: grid; gap: 10px; max-width: 760px; margin: 0 auto;
  padding: 24px 0 var(--section-y);
  text-align: center; color: var(--teal-700); font-weight: 600;
}

/* ---------- 3. Cómo funciona ---------- */
.steps { display: grid; gap: 16px; }
.step { display: flex; align-items: center; gap: 16px; }
.step__num {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 24px; font-weight: 800;
}

/* ---------- 4. Servicios ---------- */
.modalities { display: grid; gap: 16px; }
.modality { text-align: center; }
.modality img { width: 48px; margin: 0 auto 12px; }
.note { max-width: 760px; margin-top: 28px; }

/* ---------- 5 y 6. Listas con check ---------- */
.checklist { display: grid; gap: 14px; max-width: 760px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232f6f63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- 7. Equipo ---------- */
.profile { display: grid; gap: 24px; align-items: center; }
.profile__photo {
  width: 100%; max-width: 360px; margin: 0 auto;
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.profile__body { display: grid; gap: 14px; }
.profile__body h3 { font-size: 22px; }
.profile__signature { color: var(--teal-700); font-weight: 600; letter-spacing: .04em; }

/* ---------- 8. Preguntas frecuentes ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px;
  border-radius: var(--radius-card); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--teal-700); border-bottom: 2.5px solid var(--teal-700);
  transform: rotate(45deg) translateY(-3px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 20px 20px; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform .2s; }
}

/* ---------- 9. Contacto ---------- */
.contact { display: grid; }
.contact__hours { margin-top: 8px; color: var(--muted-foreground); }

/* ---------- Pie ---------- */
/* Fondo claro: blanco sobre teal a 16px no pasa AA (DESIGN-TOKENS). */
.site-footer { padding: 16px 0; background: var(--teal-100); color: var(--navy); font-size: 15px; font-weight: 600; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.link--footer { color: var(--navy); }

/* ================= ≥ 600px ================= */
@media (min-width: 600px) {
  .modalities { grid-template-columns: repeat(2, 1fr); }
}

/* ================= ≥ 900px ================= */
@media (min-width: 900px) {
  :root { --gutter: 24px; --section-y: 80px; }
  body { font-size: 18px; }
  h2 { font-size: 34px; margin-bottom: 32px; }

  .hero__inner { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 32px; min-height: 520px; }
  .hero__copy { align-self: center; padding: 64px 0; }
  .hero h1 { font-size: 46px; }
  .hero__lead { font-size: 26px; }
  .hero__art { max-width: 480px; margin: 32px 0 0 auto; }

  .backing__claims {
    display: flex; align-items: center; min-height: 440px; padding: 72px 0;
    /* Velo blanco a la izquierda para que los pompones no compitan con el texto */
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, .88) 0 38%, rgba(255, 255, 255, 0) 58%),
      url("images/kittens-ragdoll-playing-with-toys-6N5D4DT.jpg");
    background-size: 100% 100%, cover;
    background-position: 0 0, 70% center;
  }
  .backing__claims > .container { width: 100%; }
  .claim { padding: 0; background: none; box-shadow: none; font-size: 30px; }
  .claim img { width: 56px; height: 56px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { flex-direction: column; padding: 32px 24px; text-align: center; }

  .profile { grid-template-columns: 360px 1fr; gap: 48px; }
  .profile__body h3 { font-size: 26px; }
}

/* ================= ≥ 1100px ================= */
@media (min-width: 1100px) {
  .modalities { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .credentials { grid-template-columns: repeat(4, auto); justify-content: center; gap: 0; }
  .credentials li { padding: 0 20px; white-space: nowrap; }
  .credentials li + li { border-left: 2px solid var(--teal-100); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
