/* ============================================
   MONTE ANIMAL — Escuela y Guardería Canina
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300;400;500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --cream: #FAF2E4;
  --cream-soft: #F3E9D7;
  --paper: #FFFCF6;
  --terracota: #B27D50;
  --terracota-deep: #93623A;
  --moss: #4B5842;
  --moss-deep: #38422F;
  --charcoal: #3A2E22;
  --gold: #D9A857;
  --line: rgba(58, 46, 34, 0.14);

  --font-display: 'Funnel Display', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --radius: 18px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota-deep);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--charcoal);
}

/* ---------- Skip link / focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--terracota);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 242, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracota);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

nav.main-nav a:hover::after { transform: scaleX(1); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--moss);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-whatsapp:hover { background: var(--moss-deep); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: 0.2s ease;
}
.menu-toggle span::before { content: ''; position: absolute; top: -7px; }
.menu-toggle span::after { content: ''; position: absolute; top: 7px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 18px; display: block; }

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracota-deep);
}

.hero p.lede {
  margin: 22px 0 32px;
  font-size: 17.5px;
  color: rgba(58,46,34,0.78);
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--charcoal);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-outline:hover { background: var(--charcoal); color: var(--cream); }

.hero-art {
  position: relative;
}

.hero-art .frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(58,46,34,0.35);
  transform: rotate(1.5deg);
}

.hero-art .frame img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -28px;
  background: var(--terracota);
  color: var(--paper);
  padding: 16px 20px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.35;
  max-width: 190px;
  transform: rotate(-3deg);
  box-shadow: 0 16px 30px -10px rgba(147,98,58,0.5);
}

.hero-badge strong { display: block; font-size: 15px; }

/* ============ SECTION GENERIC ============ */
section { padding: 88px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head .eyebrow { display: block; margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
}

/* ============ SOBRE NOSOTROS ============ */
.about {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-art {
  position: relative;
}

.about-art img {
  border-radius: 24px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-art::before {
  content: '';
  position: absolute;
  inset: -14px -14px auto auto;
  width: 100%;
  height: 100%;
  border: 2px solid var(--terracota);
  border-radius: 24px;
  z-index: -1;
}

.about-text p {
  font-size: 16.5px;
  color: rgba(58,46,34,0.82);
  margin: 0 0 18px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text .lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--moss-deep);
  margin-bottom: 22px;
}

/* ============ SENDERO / SERVICIOS ============ */
.sendero {
  position: relative;
}

.trail {
  position: relative;
  margin-top: 10px;
}

.trail::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 27px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--terracota) 0 10px, transparent 10px 20px);
  background-size: 2px 20px;
}

.stop {
  position: relative;
  padding-left: 78px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr;
}

.stop:last-child { margin-bottom: 0; }

.stop-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--terracota);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--terracota-deep);
  z-index: 1;
}

.stop-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}

.stop-card .stop-img {
  border-radius: 14px;
  overflow: hidden;
}

.stop-card .stop-img img {
  aspect-ratio: 5/4;
  object-fit: cover;
}

.stop-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.stop-card p {
  font-size: 15px;
  color: rgba(58,46,34,0.78);
  margin: 0 0 14px;
}

.stop-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--moss-deep);
}

.stop-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

/* alternate layout */
.stop:nth-child(even) .stop-card { grid-template-columns: 1fr 1.3fr; }
.stop:nth-child(even) .stop-img { order: 2; }

/* ============ GALERIA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 12px;
}

.gallery-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid a:hover img { transform: scale(1.06); }

.gallery-grid .big { grid-column: span 2; grid-row: span 2; }

/* ============ INSTAGRAM / CONTACTO ============ */
.contact {
  background: var(--moss-deep);
  color: var(--cream-soft);
  border-radius: 32px;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact .eyebrow { color: var(--gold); }

.contact h2 {
  color: var(--paper);
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 16px 0 18px;
}

.contact p {
  max-width: 480px;
  margin: 0 auto 30px;
  color: rgba(250,242,228,0.78);
  font-size: 16px;
}

.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--cream);
  color: var(--moss-deep) !important;
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease;
}
.btn-cream:hover { transform: translateY(-2px); }

.btn-ghost-cream {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid rgba(250,242,228,0.5);
  color: var(--cream) !important;
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}
.btn-ghost-cream:hover { background: rgba(250,242,228,0.12); }

/* ============ FOOTER ============ */
footer {
  padding: 40px 0 28px;
  text-align: center;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer .foot-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

footer p {
  font-size: 13px;
  color: rgba(58,46,34,0.6);
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }

  body.nav-open nav.main-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }

  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-badge { left: 12px; bottom: -18px; }
  .hero-copy p.lede { max-width: 100%; }

  .about .wrap { grid-template-columns: 1fr; gap: 36px; }
  .about-art { max-width: 320px; margin: 0 auto; }

  .stop { padding-left: 0; }
  .trail::before { display: none; }
  .stop-marker { position: static; margin-bottom: 14px; }
  .stop-card, .stop:nth-child(even) .stop-card {
    grid-template-columns: 1fr;
  }
  .stop:nth-child(even) .stop-img { order: 0; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .big { grid-column: span 2; grid-row: span 1; }

  .contact { padding: 48px 26px; border-radius: 22px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 64px; }
  section { padding: 64px 0; }
}
