/* =========================================================
   Kopish Pet Shop — Miniweb informativa (V1.2)
   Paleta y tipografías: Manual de marca V6
   ========================================================= */

/* ---------- Tipografías (alojadas localmente, licencia OFL) ---------- */
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito";  font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito";  font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito";  font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

/* ---------- Variables de marca ---------- */
:root {
  --amarillo: #FFC83D;
  --naranja:  #FF8A3D;
  --marron:   #4A2E1F;
  --crema:    #FFF6E8;
  --blanco:   #FFFFFF;

  --marron-70: rgba(74, 46, 31, .72);
  --marron-12: rgba(74, 46, 31, .12);
  --marron-06: rgba(74, 46, 31, .06);

  --f-titulo: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-texto:  "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 20px;
  --sombra: 0 10px 30px -12px rgba(74, 46, 31, .28);
  --sombra-s: 0 4px 14px -6px rgba(74, 46, 31, .22);
  --header-h: 108px;               /* móvil: marca + fila de navegación */
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (min-width: 720px) { :root { --header-h: 60px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--safe-t) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--marron);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255, 200, 61, .35);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a, summary, button { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 7.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 5.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--marron-70); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--marron); color: var(--crema); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 8px; }

/* ---------- Cabecera ---------- */
/* En iPhone la navegación va arriba: una barra fija abajo choca con la barra de
   Safari (el primer toque solo despliega la barra del navegador). */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px;
  padding: var(--safe-t) 16px 6px;
  transition: box-shadow .25s ease;
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 246, 232, .97);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--marron-12), 0 6px 18px -12px rgba(74,46,31,.35); }
.brand { display: flex; align-items: center; gap: 10px; height: 56px; text-decoration: none; font-family: var(--f-titulo); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; width: 100%; justify-content: space-between; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: .92rem;
  min-height: 44px; padding: 0 12px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.nav a:hover { background: var(--marron-06); }
.nav a:active { background: var(--marron-12); }
.nav a.is-active { background: var(--amarillo); }
@media (max-width: 359px) { .nav a { padding: 0 8px; font-size: .86rem; } }
@media (min-width: 720px) {
  .topbar { flex-wrap: nowrap; padding: var(--safe-t) 28px 0; height: calc(60px + var(--safe-t)); }
  .nav { width: auto; justify-content: flex-end; }
  .nav a { min-height: 40px; }
}

/* ---------- Inicio (hero) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255, 200, 61, .55) 0%, rgba(255, 200, 61, 0) 62%),
    var(--crema);
  padding: 24px 0 72px;
  overflow: hidden;
}
.hero__inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.hero__logo { width: min(66vw, 36vh, 300px); aspect-ratio: 1; }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(74, 46, 31, .25)); }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: var(--blanco); font-weight: 700; font-size: .92rem; box-shadow: var(--sombra-s); }
.lead { font-size: 1.1rem; color: var(--marron-70); max-width: 32ch; margin: 0 auto; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; fill: var(--blanco); pointer-events: none; }

@media (min-width: 900px) {
  .hero { padding: 48px 0 104px; }
  .hero__inner { grid-template-columns: 340px 1fr; text-align: left; gap: 64px; justify-items: start; align-items: center; max-width: 980px; }
  .hero__logo { width: 340px; }
  .lead { margin-left: 0; font-size: 1.2rem; }
}

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section--cream { background: var(--crema); }
.section__head { text-align: center; margin-bottom: 28px; }
.section__head p:last-child { margin-bottom: 0; }
.kicker {
  display: inline-block; margin: 0 0 8px;
  font-family: var(--f-titulo); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--marron); background: var(--amarillo); padding: 4px 12px; border-radius: 999px;
}
.pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pills li { background: var(--crema); padding: 8px 16px; border-radius: 999px; font-weight: 700; border: 1px solid var(--marron-12); }

/* ---------- Nosotros ---------- */
.about { max-width: 860px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.about__photo {
  width: 156px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--amarillo); box-shadow: var(--sombra); background: var(--crema);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
  .about { grid-template-columns: 200px 1fr; gap: 44px; align-items: center; justify-items: start; text-align: left; }
  .about__photo { width: 200px; }
  .about__text h2 { margin-left: 0; }
  .about .pills { justify-content: flex-start; }
}

/* ---------- Catálogo de productos ---------- */
.catalog__desc { max-width: 56ch; margin-left: auto; margin-right: auto; }
.catalog { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 959px) { .catalog { grid-template-columns: 1fr 1fr; } }

.pcard {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra-s); border: 1px solid var(--marron-06);
  display: grid; grid-template-columns: 100px 1fr; grid-template-rows: 1fr auto;
}
.pcard__media {
  grid-row: 1; grid-column: 1;
  position: relative; display: grid; place-items: center;
  padding: 12px 8px;
  background: var(--c, var(--amarillo));
}
.pcard__media--b { background: var(--c, var(--naranja)); }
.pcard__media.has-img { background: var(--crema); padding: 8px; }
.pcard__media img { width: 100%; height: 100%; max-height: 180px; object-fit: contain; }
/* Huella proporcional al peso: tamaño 1 (muy pequeños) a 5 (muy grandes) */
.pcard__paw { width: calc(20px + var(--s, 3) * 8px); height: auto; fill: var(--marron); opacity: .9; }
.pcard__body { grid-row: 1; grid-column: 2; padding: 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pcard__cat { margin: 0 0 2px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--marron-70); }
.pcard__title { margin: 0 0 4px; font-size: 1.12rem; }
.pcard__peso { margin: 0 0 2px; font-weight: 700; font-size: .98rem; }
.pcard__detail { margin: 0; color: var(--marron-70); font-size: .92rem; line-height: 1.45; }
.pcard__reg { margin: 2px 0 0; color: var(--marron-70); font-size: .76rem; }

/* Fila de acción: ocupa todo el ancho de la tarjeta */
.pcard__action { grid-row: 2; grid-column: 1 / -1; padding: 12px 16px 16px; border-top: 1px dashed var(--marron-12); }
.pcard__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 46px; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  background: var(--marron); color: var(--crema);
  font-family: var(--f-titulo); font-weight: 600; font-size: .84rem; line-height: 1.3;
  transition: transform .15s ease, box-shadow .2s ease;
}
.pcard__cta:hover { box-shadow: var(--sombra); }
.pcard__cta:active { transform: scale(.97); }
.pcard__cta svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--amarillo); stroke-width: 2; stroke-linejoin: round; }
/* Estado informativo (WhatsApp desactivado): texto, no botón */
.pcard__info { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--marron-70); font-size: .86rem; font-weight: 700; line-height: 1.3; text-align: center; }
.pcard__info svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

@media (min-width: 960px) {
  .catalog { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .pcard { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .pcard__media { grid-row: 1; grid-column: 1; aspect-ratio: 1 / .66; padding: 12px; }
  .pcard__media img { max-height: none; }
  .pcard__paw { width: calc(22px + var(--s, 3) * 10px); }
  .pcard__body { grid-row: 2; grid-column: 1; justify-content: flex-start; padding: 16px 16px 14px; }
  .pcard__action { grid-row: 3; padding: 12px 10px 14px; }
  .pcard__cat { font-size: .7rem; letter-spacing: .04em; }
  .pcard__title { font-size: 1.02rem; white-space: nowrap; }
  .pcard__peso { font-size: .92rem; }
  .pcard__detail { font-size: .86rem; }
  .pcard__cta { font-size: .8rem; padding: 9px 10px; }
  .pcard__cta svg { display: none; }   /* en 5 columnas el texto necesita ese espacio */
  .pcard__info { font-size: .8rem; }
}

.catalog__aviso { max-width: 72ch; margin: 18px auto 0; text-align: center; font-size: .8rem; line-height: 1.5; color: var(--marron-70); }
.catalog__noscript { text-align: center; }

.extras {
  margin: 28px auto 0; max-width: 720px;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px; background: var(--blanco); border: 1px solid var(--marron-06);
}
.extras h3 { margin: 0 0 2px; font-size: 1.02rem; }
.extras p { margin: 0; color: var(--marron-70); font-size: .95rem; line-height: 1.45; }
.extras__icons { display: flex; flex: 0 0 auto; }
.extras__icons span {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amarillo); border: 2px solid var(--blanco); margin-left: -8px;
}
.extras__icons span:first-child { margin-left: 0; }
.extras__icons span:nth-child(2) { background: var(--naranja); }
.extras__icons svg { width: 20px; height: 20px; fill: none; stroke: var(--marron); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.extras__icons span:first-child svg { fill: var(--marron); stroke: none; }
@media (max-width: 420px) {
  .extras { flex-direction: column; text-align: center; gap: 10px; }
}

.extras__link {
  color: var(--marron); font-weight: 800; text-decoration: none;
  background-image: linear-gradient(var(--amarillo), var(--amarillo));
  background-size: 100% 6px; background-position: 0 88%; background-repeat: no-repeat;
}
.extras__link:active { background-size: 100% 100%; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--crema); border-radius: 16px; border: 1px solid var(--marron-06); overflow: hidden; }
.faq summary {
  display: block; list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-family: var(--f-titulo); font-weight: 600; font-size: 1.02rem; min-height: 44px;
  -webkit-user-select: none; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:active { background: var(--marron-06); }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--amarillo)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A2E1F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .25s ease; pointer-events: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--marron-70); }

/* ---------- Contacto ---------- */
.links { display: grid; gap: 12px; }
.link {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 14px 18px; min-height: 72px; border-radius: 18px;
  background: var(--blanco); border: 2px solid transparent;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
a.link:hover { border-color: var(--amarillo); box-shadow: var(--sombra-s); }
a.link:active { transform: scale(.985); border-color: var(--amarillo); }
.link__icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; background: var(--marron); display: grid; place-items: center; }
.link__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--amarillo); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--amarillo); }
.link__icon svg .fill { fill: currentColor; stroke: none; }
.link__text { display: grid; line-height: 1.3; flex: 1; }
.link__text strong { font-family: var(--f-titulo); font-weight: 600; font-size: 1.05rem; }
.link__text small { color: var(--marron-70); font-size: .95rem; }
.link__arrow { font-size: 1.3rem; font-weight: 700; }

/* WhatsApp informativo (sin enlace) mientras no esté activado */
.link--info { background: transparent; border: 2px dashed var(--marron-12); cursor: default; }
/* WhatsApp activo: destacado */
.link--wa.is-active { background: var(--amarillo); }
.link--wa.is-active .link__text small { color: var(--marron); }

.place { text-align: center; margin: 26px 0 0; font-weight: 700; }

/* ---------- Pie ---------- */
.footer { background: var(--marron); color: var(--crema); text-align: center; padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer img { width: 64px; height: 64px; margin: 0 auto 12px; }
.footer__slogan { font-family: var(--f-titulo); font-weight: 600; font-size: 1.1rem; color: var(--amarillo); margin: 0 0 6px; }
.footer__small { font-size: .88rem; opacity: .85; margin: 0; }

/* ---------- Animación suave de aparición ---------- */
.anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.anim .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
