/* =============================================================
   La Perru Gros — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f1e7;   /* crema cálido */
  --bg-2:      #efe6d5;   /* crema sombra */
  --paper:     #fffdf8;
  --ink:       #221d16;   /* casi negro cálido, nunca #000 */
  --ink-soft:  #4a4238;
  --ink-mute:  #7c7266;
  --accent:    #c9694a;   /* terracota / óxido */
  --accent-dk: #a9502f;
  --accent-2:  #5c7a5a;   /* verde salvia */
  --accent-2-dk: #46603f;
  --highlight: #e0a339;   /* mostaza suave */
  --line:      rgba(34,29,22,0.12);
  --line-soft: rgba(34,29,22,0.07);
  --shadow-halo: rgba(201,105,74,0.28);

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", "Manrope", -apple-system, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: .9rem;
}

.section { padding: 4.5rem 0; position: relative; }
@media (min-width: 960px) { .section { padding: 7rem 0; } }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--ink-mute); font-size: 1.05rem; margin-top: .8rem; }

.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;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 10px 24px -8px var(--shadow-halo);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 16px 32px -8px var(--shadow-halo); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dk); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.2rem; font-size: .85rem; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.card:hover, .card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px -20px var(--shadow-halo), 0 8px 16px -8px rgba(34,29,22,.12);
  border-color: rgba(201,105,74,.35);
}

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-soft);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(246,241,231,.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.nav-brand { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.nav-brand .paw { color: var(--accent); font-size: 1.1rem; }
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.lang-switch { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  padding: .4rem .8rem; font-size: .78rem; font-weight: 700; color: var(--ink-mute);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.lang-switch button.is-active { background: var(--ink); color: var(--paper); }
.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
  background: var(--bg); padding: 2rem 1.25rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 1.5rem; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(34,29,22,.12) 0%, rgba(34,29,22,.05) 35%, rgba(246,241,231,.55) 78%, var(--bg) 100%),
              linear-gradient(90deg, rgba(34,29,22,.35) 0%, rgba(34,29,22,0) 55%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 3rem 3.5rem; width: 100%; }
.hero-content { max-width: 640px; color: var(--paper); }
.hero-content .kicker { color: var(--highlight); }
.hero-content h1 { color: var(--paper); text-shadow: 0 2px 18px rgba(34,29,22,.35); }
.hero-sub { font-size: 1.1rem; color: rgba(255,253,248,.92); margin-top: 1.1rem; max-width: 46ch; text-shadow: 0 1px 10px rgba(34,29,22,.3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* --- Trust strip --- */
.trust {
  padding: 2.2rem 0;
  background: var(--paper);
  border-block: 1px solid var(--line-soft);
}
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-2); color: var(--accent-dk);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.trust-text { font-size: .88rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.svc-card { display: flex; flex-direction: column; }
.svc-media { aspect-ratio: 4/3; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.svc-price { font-family: var(--serif); font-weight: 600; color: var(--accent-dk); font-size: 1.15rem; white-space: nowrap; }
.svc-desc { color: var(--ink-mute); font-size: .92rem; flex: 1; }
.svc-foot { margin-top: .4rem; }
.services-demo-note { margin-top: 2rem; font-size: .82rem; color: var(--ink-mute); text-align: center; }

/* --- About --- */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(34,29,22,.35); }
.about-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-text p { margin-top: 1rem; color: var(--ink-soft); }
.about-text p:first-of-type { margin-top: 0; }

/* --- Testimonials --- */
.testimonials-note {
  font-size: .85rem; color: var(--ink-mute); background: var(--bg-2);
  border-radius: var(--radius-sm); padding: .8rem 1.1rem; margin-bottom: 2rem;
  display: inline-block;
}
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; max-width: 920px; margin-inline: auto; }
.testi-card { padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.testi-stars { color: var(--highlight); font-size: 1rem; letter-spacing: .12em; }
.testi-text { color: var(--ink-soft); font-size: .96rem; }
.testi-name { font-weight: 700; font-size: .88rem; }
.testi-dog { font-size: .82rem; color: var(--ink-mute); }

/* --- FAQ --- */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; text-align: left; font-weight: 700; font-size: 1rem;
}
.faq-q .plus { flex-shrink: 0; font-size: 1.3rem; color: var(--accent); transition: transform .35s var(--ease-out); }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out), padding .4s var(--ease-out); padding: 0 1.4rem; }
.faq-item.is-open .faq-a { max-height: 320px; padding: 0 1.4rem 1.2rem; }
.faq-a p { color: var(--ink-mute); font-size: .94rem; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.contact-info-item { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.contact-info-item .ic { color: var(--accent); font-size: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-field label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  font: inherit; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,105,74,.15); outline: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .78rem; color: var(--ink-mute); margin-top: 1rem; }
.form-success {
  display: none; align-items: center; gap: .6rem; padding: 1rem 1.2rem;
  border-radius: var(--radius-sm); background: rgba(92,122,90,.14); color: var(--accent-2-dk);
  font-weight: 700; margin-top: 1rem;
}
.form-success.is-visible { display: flex; }

/* --- Location --- */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.hours-box { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; }
.hours-box h3 { margin-bottom: .8rem; }
.hours-box pre { font: inherit; white-space: pre-line; color: var(--ink-soft); font-size: .94rem; line-height: 1.7; }

/* --- Footer --- */
.footer { background: var(--ink); color: rgba(255,253,248,.86); padding: 3.5rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--paper); }
.footer-col h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,253,248,.55); margin-bottom: .9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .92rem; transition: color .3s var(--ease-out); }
.footer-col a:hover { color: var(--highlight); }
.footer-social { display: flex; gap: .8rem; margin-top: .5rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,253,248,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,253,248,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .78rem; color: rgba(255,253,248,.55);
}

/* =============================================================
   7. Effects
   ============================================================= */
.paw-trail { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
.paw-mark {
  position: absolute; font-size: 15px; color: var(--accent);
  opacity: 0; transform: translate(-50%,-50%) scale(.6) rotate(0deg);
  animation: pawFade 1.4s var(--ease-out) forwards;
}
@keyframes pawFade {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.5) rotate(var(--rot,0deg)); }
  15% { opacity: .55; transform: translate(-50%,-50%) scale(1) rotate(var(--rot,0deg)); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1) rotate(var(--rot,0deg)); }
}

.count-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); margin-right: .4rem; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .location-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .about { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { padding-block: 4rem 5rem; }
}

@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-content { max-width: 680px; }
}

@media (min-width: 1600px) {
  .container { max-width: 1440px; }
}

/* =============================================================
   9. Reduced-motion (only INTRUSIVE effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .paw-trail { display: none; }
  .hero-media img { animation: none !important; }
  /* Do NOT disable: card hover-lift, reveals, nav underline, faq accordion */
}
