/* My Pet City · sitio temporal. Paleta tomada de las apps. */
:root {
  --dorado: #F2CC84;
  --dorado-osc: #E5BE6D;
  --ocre: #B08B33;
  --crema: #FBEEE0;
  --crema-2: #F7F3EC;
  --durazno: #F5A872;
  --rosa: #F6B395;
  --cafe: #603518;
  --cafe-2: #63422A;
  --texto: #333333;
  --texto-2: #6B6B6B;
  --borde: #EDE5D8;
  --blanco: #FFFFFF;
  --wa: #25D366;
  --radio: 22px;
  --sombra: 0 10px 30px rgba(96, 53, 24, .10);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--cafe); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ocre); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--texto-2); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  padding: .9rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dorado); color: var(--cafe); box-shadow: 0 8px 20px rgba(229, 190, 109, .45); }
.btn-primary:hover { background: var(--dorado-osc); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-outline { border-color: var(--cafe); color: var(--cafe); background: transparent; }
.btn-outline:hover { background: var(--cafe); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Encabezado ---------- */
.top-banner {
  background: var(--cafe); color: #fff; font-size: .85rem; text-align: center; padding: .45rem 1rem;
}
.top-banner a { color: var(--dorado); font-weight: 700; }
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 700; color: var(--cafe-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ocre); }
.nav .btn { padding: .65rem 1.15rem; }
.nav-toggle {
  display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--cafe);
}
.nav-toggle svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, var(--dorado) 0%, transparent 60%),
              linear-gradient(180deg, var(--crema) 0%, #fff 100%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art .blob {
  position: absolute; inset: 6%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(145deg, var(--rosa), var(--durazno));
  box-shadow: var(--sombra);
}
.hero-art img.logo-hero {
  position: absolute; inset: 18% 12%; width: 76%; height: auto; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(96, 53, 24, .18));
  background: rgba(255, 255, 255, .92); border-radius: 28px; padding: 8% 6%;
}
.hero-badge {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--sombra);
  padding: .7rem 1rem; display: flex; gap: .6rem; align-items: center; font-weight: 700; font-size: .9rem;
}
.hero-badge span.ico { font-size: 1.4rem; }
.hero-badge.b1 { left: -4%; bottom: 14%; }
.hero-badge.b2 { right: -2%; top: 10%; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 2rem; color: var(--texto-2); font-weight: 700; font-size: .95rem; }
.hero-trust span::before { content: "✓"; color: var(--ocre); margin-right: .4rem; }

.page-hero {
  background: linear-gradient(180deg, var(--crema) 0%, #fff 100%);
  padding: clamp(2.6rem, 6vw, 4.5rem) 0 2.5rem;
}

/* ---------- Secciones ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--crema-2); }
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: 3rem; }
.card {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.6rem; box-shadow: 0 4px 14px rgba(96, 53, 24, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--crema); font-size: 1.7rem; margin-bottom: 1rem;
}
.card p { color: var(--texto-2); margin: 0; }
.section-head { margin-bottom: 2.4rem; }

/* Pasos */
.steps { counter-reset: paso; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; top: -18px; left: 1.6rem; width: 48px; height: 48px; border-radius: 50%;
  background: var(--dorado); color: var(--cafe); font-weight: 900; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(229, 190, 109, .5);
}

/* App */
.app-band {
  background: linear-gradient(135deg, var(--cafe) 0%, #7a4a26 100%); color: #fff;
  border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); display: grid;
  grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; overflow: hidden; position: relative;
}
.app-band h2 { color: #fff; }
.app-band p { color: rgba(255, 255, 255, .85); }
.app-band ul { margin: 0 0 1.4rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.app-band li::before { content: "✓"; color: var(--dorado); font-weight: 900; margin-right: .6rem; }
.app-band .app-icon {
  width: min(220px, 100%); justify-self: center; border-radius: 44px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3); background: #fff;
}
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem; background: #000; color: #fff;
  border-radius: 14px; padding: .65rem 1.1rem; text-decoration: none; border: 1px solid rgba(255,255,255,.25);
}
.store-btn small { display: block; font-size: .7rem; opacity: .8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-btn svg { width: 26px; height: 26px; }
.note { font-size: .85rem; opacity: .75; margin-top: .9rem; }

/* Callout */
.callout {
  background: var(--crema); border-left: 5px solid var(--durazno); border-radius: 16px;
  padding: 1.2rem 1.4rem; color: var(--cafe-2);
}
.callout strong { color: var(--cafe); }

/* FAQ */
details {
  background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: 1.1rem 1.3rem;
  margin-bottom: .8rem;
}
summary { cursor: pointer; font-weight: 800; color: var(--cafe); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ocre); }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; color: var(--texto-2); }

/* Formulario */
.form-card { background: #fff; border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--sombra); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: .9rem; color: var(--cafe-2); margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid var(--borde);
  font: inherit; color: var(--texto); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dorado-osc); box-shadow: 0 0 0 4px rgba(242, 204, 132, .35); }
textarea { min-height: 96px; resize: vertical; }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--crema); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.contact-list a { text-decoration: none; font-weight: 700; color: var(--cafe); }
.contact-list small { display: block; color: var(--texto-2); font-weight: 600; }

/* Pie */
footer.site { background: var(--cafe); color: rgba(255, 255, 255, .85); padding: 3.5rem 0 1.5rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
footer.site h4 { color: var(--dorado); margin: 0 0 .9rem; font-size: 1rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
footer.site a { text-decoration: none; color: rgba(255, 255, 255, .85); }
footer.site a:hover { color: var(--dorado); }
.footer-logo { background: #fff; border-radius: 18px; padding: .6rem 1rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 52px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }

/* Animación */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero .wrap, .grid-2, .app-band { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 16px 1rem; border-bottom: 1px solid var(--borde);
    display: none; box-shadow: 0 12px 20px rgba(0,0,0,.06);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--borde); }
  .nav .btn { margin-top: .8rem; border-bottom: 0; }
}
@media (max-width: 560px) {
  .grid-4, .form-grid, footer.site .cols { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .btns .btn { width: 100%; }
}

/* SEO: H1 con palabra clave + lema */
h1 .eyebrow { display: block; width: fit-content; }
.h1-claim { display: block; }

/* ===== SEO v2 (20-oct-2026): accesibilidad, contenido y viralidad ===== */
:root { --ocre-texto: #86691F; --wa-osc: #0E7A3E; }
.eyebrow, .nav a:hover, .nav a[aria-current="page"] { color: var(--ocre-texto); }
.btn-wa { background: var(--wa-osc); }
.btn-wa:hover { background: #0B6633; }
footer.site .f-title { color: var(--dorado); margin: 0 0 .9rem; font-size: 1rem; font-weight: 800; }
.related .f-title { color: var(--cafe); font-weight: 800; margin: 0 0 .5rem; }
.related ul { margin: 0; padding-left: 1.1rem; }
.related a { color: var(--cafe); font-weight: 700; }
.app-band .app-icon { aspect-ratio: 1 / 1; object-fit: contain; height: auto; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose li { margin-bottom: .45rem; }
.prose a, .callout a { color: var(--cafe); }
.meta { color: var(--texto-2); font-size: .9rem; margin-top: .4rem; }
ul.clean { padding-left: 1.1rem; margin: .4rem 0 0; }
.post-card { text-decoration: none; display: flex; flex-direction: column; }
.post-card .h3 { font-size: 1.2rem; }
.post-card .more { margin-top: auto; font-weight: 800; color: var(--ocre-texto); }
.share-band { padding: 2.2rem 0; background: var(--crema-2); text-align: center; }
.share-band p { margin: 0 0 .8rem; color: var(--cafe); }
.share { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.sh { border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none; color: #fff; }
.sh-wa { background: var(--wa-osc); } .sh-fb { background: #1458C9; } .sh-x { background: #111; }
.sh-copy, .sh-native { background: var(--cafe); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); }
.vac-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.vac-table th, .vac-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--borde); }
.vac-table th { background: var(--crema); color: var(--cafe); }
.vac-table .pasada { color: var(--texto-2); }
.vac-table .proxima { font-weight: 800; color: var(--cafe); }

/* ===== v3: escenas, equipo y galería ===== */
.scene { padding: 1rem 0 2rem; }
.scene-fig { margin: 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); background: var(--crema); }
.scene-fig img { width: 100%; height: auto; }
.scene-fig figcaption { padding: .8rem 1.2rem; color: var(--cafe); font-weight: 700; }
.vet-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.vet-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.vet-card .vet-foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.vet-body { padding: 1.2rem 1.3rem 1.4rem; }
.vet-rol { color: var(--ocre-texto); font-weight: 800; margin: -.2rem 0 .2rem; }
.vet-exp { font-weight: 700; color: var(--cafe); margin: 0 0 .6rem; }
.vet-extra { font-size: .92rem; color: var(--texto-2); margin-top: .8rem; }
.team-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.team-mini { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; text-align: center; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); padding-bottom: 1rem; }
.team-mini .vet-foto { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; height: auto; margin-bottom: .6rem; }
.team-mini strong { color: var(--cafe); } .team-mini span { color: var(--texto-2); font-size: .9rem; padding: 0 .8rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery .g-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radio); height: auto; }
/* Calculadora en móvil: tabla sin desplazamiento horizontal */
@media (max-width: 600px) {
  .vac-table { min-width: 0; font-size: .92rem; }
  .vac-table th, .vac-table td { padding: .65rem .6rem; }
  .vac-table th:nth-child(3), .vac-table td:nth-child(3) { display: none; }
  .vac-table tr.proxima td:first-child::after { content: " · Próxima"; color: var(--ocre-texto); }
  .vac-table tr.pasada td:first-child::after { content: " · ya aplicada"; font-weight: 400; }
}
/* ===== Opiniones de Google ===== */
.reviews { text-align: center; }
.rv-summary { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 1rem 1.4rem; }
.rv-g { font-weight: 800; font-size: 1.05rem; color: #3c4043; }
.rv-g b:nth-child(1){color:#4285F4} .rv-g b:nth-child(2){color:#EA4335} .rv-g b:nth-child(3){color:#FBBC05} .rv-g b:nth-child(4){color:#4285F4} .rv-g b:nth-child(5){color:#34A853} .rv-g b:nth-child(6){color:#EA4335}
.rv-num { font-size: 2rem; font-weight: 900; color: var(--cafe); line-height: 1; }
.rv-stars, .rv-st { color: #F4B400; letter-spacing: .08em; font-size: 1.2rem; }
.rv-count { color: var(--texto-2); font-weight: 700; }
.rv-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.4rem; text-align: left; }
.rv-list:empty { display: none; }
.rv-card { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 1.1rem 1.2rem; }
.rv-card header { display: flex; gap: .7rem; align-items: center; margin-bottom: .5rem; }
.rv-card img { border-radius: 50%; width: 40px; height: 40px; }
.rv-card a { color: var(--cafe); font-weight: 800; text-decoration: none; }
.rv-meta { display: block; color: var(--texto-2); font-size: .85rem; }
.rv-card .rv-st { font-size: .95rem; }
.rv-card p { margin: 0; color: var(--texto); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv-actions { margin-top: 1.3rem; justify-content: center; }
.rv-note { color: var(--texto-2); font-size: .82rem; margin-top: .8rem; }
/* Carrusel lateral de opiniones */
.rv-list { display: block; overflow: hidden; margin: 1.4rem 0 0; padding: .6rem 0 1.2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { display: flex; gap: 1rem; width: max-content; animation: rv-scroll var(--rv-dur, 40s) linear infinite; }
.rv-dup { display: contents; }
.rv-list:hover .rv-track, .rv-list:focus-within .rv-track, .rv-list.rv-paused .rv-track { animation-play-state: paused; }
.rv-track .rv-card { width: min(320px, 78vw); flex: 0 0 auto; }
.rv-ini { width: 40px; height: 40px; border-radius: 50%; background: var(--dorado); color: var(--cafe); display: grid; place-items: center; font-weight: 900; }
@keyframes rv-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .5rem)); } }
@media (prefers-reduced-motion: reduce) {
  .rv-track { animation: none; } .rv-list { overflow-x: auto; scroll-snap-type: x mandatory; } .rv-track .rv-card { scroll-snap-align: start; }
}
