/*
Theme Name: ZOE Canina Peluquería
Theme URI: https://caninapeluqueria.cl
Author: ZOE Canina Peluquería
Description: Tema a medida para ZOE Canina Peluquería — portada de una página con novedades, servicios y precios, sucursales, trabajos realizados y contacto.
Version: 1.1.0
Text Domain: zoe-caninapeluqueria
*/

@font-face {
  font-family: 'Baloo2';
  src: url('assets/fonts/baloo2.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/mulish.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --brown: #6e4a34;
  --brown-deep: #4f3524;
  --brown-soft: #8a6349;
  --paper: #fbf7f1;
  --surface: #f1e8dc;
  --ink: #2e241c;
  --ink-soft: #6b5c4d;
  --line: rgba(46, 36, 28, 0.14);
  --on-brown: #fff7ee;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mulish', -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brown); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 1.15rem; }
@media (min-width: 720px) { .wrap { padding-inline: 2rem; } }

h1, h2, h3 {
  font-family: 'Baloo2', sans-serif;
  font-weight: 800;
  text-wrap: balance;
  margin: 0;
  color: var(--brown-deep);
}
h1 { font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 5vw, 2.15rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 1.06rem; color: var(--ink-soft); }
.eyebrow {
  font-family: 'Baloo2', sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brown);
  margin: 0 0 0.5rem;
}
.tabular { font-variant-numeric: tabular-nums; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 0.7rem; gap: 0.75rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 48px; width: auto; flex: none; }
.brand-word { font-family: 'Baloo2', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--brown-deep); letter-spacing: 0.01em; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.5rem; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.nav-links a:hover { color: var(--brown); }
@media (min-width: 860px) { .nav-links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Baloo2', sans-serif; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brown); color: var(--on-brown); }
.btn-primary:hover { background: var(--brown-deep); }
.btn-outline { background: transparent; color: var(--brown-deep); border-color: var(--brown); }
.btn-outline:hover { background: var(--surface); }
.btn-invert { background: var(--on-brown); color: var(--brown-deep); align-self: flex-start; margin-top: 0.3rem; }
.btn-invert:hover { background: color-mix(in srgb, var(--on-brown) 88%, var(--brown)); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* hero — full-bleed photo crossfade behind the copy + novedad card */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 680px); display: flex; align-items: center; padding-block: 3rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: heroFade 24s ease-in-out infinite;
}
.hero-bg-layer:nth-child(1) { animation-delay: 0s; }
.hero-bg-layer:nth-child(2) { animation-delay: 8s; }
.hero-bg-layer:nth-child(3) { animation-delay: 16s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.06); }
  7% { opacity: 1; transform: scale(1.06); }
  30% { opacity: 1; transform: scale(1.16); }
  37% { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; }
}
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(35,22,12,.35), rgba(35,22,12,.82)); }
.hero-grid { position: relative; z-index: 2; }
.hero .eyebrow { color: #ecd9c4; }
.hero h1 { color: #fff; font-weight: 500; }
.hero .lede { color: rgba(255,255,255,.9); }
.hero-copy { display: flex; flex-direction: column; gap: 1rem; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.4rem; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; } }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .hero-promo { margin-bottom: 0; order: 2; min-height: 320px; }
}

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 1rem; }
.ticker-track { display: flex; gap: 3.5rem; white-space: nowrap; width: max-content; animation: marqueeScroll 26s linear infinite; }
.ticker-track span { font-family: 'Baloo2', sans-serif; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brown); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero novedad card — a translucent plate over the photo by default */
.hero-promo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--paper) 40%, var(--line));
  box-shadow: 0 24px 48px -24px rgba(35,22,12,.4);
  color: var(--ink); margin-bottom: 1.5rem; min-height: 260px;
}
.promo-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.promo-scrim { display: none; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,14,8,0.15), rgba(20,14,8,0.7)); }
.hero-promo.has-photo { background: transparent; backdrop-filter: none; border-color: transparent; }
.hero-promo.has-photo .promo-scrim { display: block; }
.promo-content {
  position: relative; z-index: 2; height: 100%; padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.85rem;
}
.promo-tag {
  align-self: flex-start; font-family: 'Baloo2', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: color-mix(in srgb, var(--brown) 14%, transparent); color: var(--brown-deep);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.promo-title { color: var(--brown-deep); font-size: clamp(1.4rem, 4vw, 1.8rem); }
.promo-text { color: var(--ink-soft); font-size: 0.98rem; max-width: 40ch; }
.hero-promo.has-photo .promo-tag { background: color-mix(in srgb, var(--on-brown) 20%, transparent); color: var(--on-brown); }
.hero-promo.has-photo .promo-title { color: var(--on-brown); }
.hero-promo.has-photo .promo-text { color: color-mix(in srgb, var(--on-brown) 85%, transparent); }
.placeholder-label { font-size: 0.82rem; font-weight: 700; max-width: 26ch; }

/* generic sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band-surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.75rem; max-width: 60ch; }

/* así trabajamos (video vertical de servicios) */
.proceso-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .proceso-grid { grid-template-columns: 1fr 1fr; } }
.proceso-video { display: flex; justify-content: center; }
.proceso-video video {
  width: min(300px, 80vw); aspect-ratio: 9/16; object-fit: cover; display: block;
  border-radius: var(--radius-lg); box-shadow: 0 24px 48px -24px rgba(35,22,12,.4);
}

/* experiencia */
.exp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.75rem 0; }
.exp-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem 0.75rem; text-align: center; }
.exp-stat strong { display: block; font-family: 'Baloo2', sans-serif; font-size: 1.5rem; color: var(--brown); font-variant-numeric: tabular-nums; }
.exp-stat span { font-size: 0.78rem; color: var(--ink-soft); }

/* services */
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; margin-bottom: 1.25rem; }
.service-grid { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-grid .price-card { margin-bottom: 0; }
.price-card-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.price-card-head svg { width: 26px; height: 26px; color: var(--brown); flex: none; }
.price-rows { list-style: none; margin: 0; padding: 0; }
.price-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.price-row:last-child { border-bottom: none; }
.price-row .w { color: var(--ink-soft); }
.price-row .p { font-weight: 800; color: var(--brown-deep); }
.price-single { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; margin-bottom: 1.25rem; }
.care-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.care-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.price-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--surface); border-left: 3px solid var(--brown); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.9rem 1.1rem; }

/* sucursales */
.branches { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .branches { grid-template-columns: repeat(3, 1fr); } }
.branch-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; box-shadow: 0 16px 32px -24px rgba(35,22,12,.3); }
.branch-photo { aspect-ratio: 4/3; background: var(--surface); position: relative; overflow: hidden; }
.branch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.branch-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.branch-addr { font-size: 0.92rem; color: var(--ink-soft); }
.branch-hours { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; }
.branch-hours strong { color: var(--ink); font-weight: 700; }
.branch-body .btn { margin-top: 0.6rem; }

/* trabajos */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery-item {
  aspect-ratio: 1; border-radius: var(--radius-md); background: var(--surface);
  overflow: hidden; box-shadow: 0 12px 26px -18px rgba(35,22,12,.3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item.is-video { grid-column: 1 / -1; aspect-ratio: auto; }
.gallery-item.is-video video { width: 100%; height: 420px; object-fit: contain; background: var(--surface); display: block; }
.gallery-cta { margin-top: 1.5rem; text-align: center; }

/* contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.external-form-slot {
  min-height: 120px; border-radius: var(--radius-lg); background: var(--paper);
  border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; margin-bottom: 1rem; color: var(--ink-soft);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); }
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-links a { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.contact-links a:hover { color: var(--brown); }
.contact-links svg { width: 20px; height: 20px; color: var(--brown); flex: none; }

/* footer */
footer.site { background: var(--brown-deep); color: var(--on-brown); padding-block: 2.5rem 1.5rem; }
.footer-top { display: flex; flex-direction: column; gap: 1.75rem; }
@media (min-width: 720px) { .footer-top { flex-direction: row; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand .brand-word { color: var(--on-brown); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-size: 0.88rem; font-weight: 700; opacity: 0.92; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,247,238,0.2); font-size: 0.78rem; opacity: 0.8; }
