/* =============================================================
   Aldea Animal — hoja de estilo única
   Paleta armónica de 3 tonos: crema · verde bosque · verde tinta
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  /* — Base neutra cálida — */
  --bg:        #F4F1EA;
  --bg-2:      #EBE6DA;   /* arena, tinte del crema */
  --paper:     #FCFAF5;

  /* — TURQUESA (color principal de marca) — */
  --green:     #0E9EAC;   /* turquesa Planeta Canino, primario */
  --green-2:   #0A7C88;   /* turquesa oscuro (hover) */
  --green-soft:#5FBBC4;   /* turquesa claro, para apoyos */

  /* — Acentos de marca — */
  --brand-green:  #7FB52A;   /* verde "Planeta" */
  --brand-orange: #F5871F;   /* naranja del corazón */

  /* — Tinta (azul marino de marca) — */
  --ink:       #16294A;
  --ink-soft:  #33425C;
  --ink-mute:  #6C7789;

  --line:      rgba(22,41,74,0.12);
  --line-soft: rgba(22,41,74,0.07);

  --shadow:    0 18px 50px -24px rgba(22,41,74,0.35);
  --shadow-sm: 0 8px 24px -16px rgba(22,41,74,0.4);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.2rem, 4vw, 3rem);
  --maxw: 1180px;
  --radius: 20px;
}

/* 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  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%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--green); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* 3. Typographic scale ---------------------------------------- */
.kicker, .eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--green);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  margin: .5rem 0 .8rem;
}
.section-title em { font-style: italic; color: var(--green); }
.section-lead { max-width: 52ch; color: var(--ink-soft); font-size: 1.06rem; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.4rem); }

/* 4. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  font-weight: 500; font-size: .96rem; letter-spacing: .01em;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out),
              color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  will-change: transform;
}
.btn-primary { background: var(--green); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* 5. NAV ------------------------------------------------------ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark-img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(22,41,74,.18)); }
.brand-word { height: 30px; width: auto; display: block; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.01em; }
.nav-links { display: none; gap: 1.7rem; margin-left: auto; }
.nav-links a { font-size: .95rem; color: var(--ink-soft); position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile dropdown */
.nav-mobile {
  display: grid; gap: .2rem; padding: 0 var(--gutter);
  max-height: 0; overflow: hidden; background: var(--paper);
  transition: max-height .4s var(--ease-out); border-bottom: 1px solid var(--line-soft);
}
.nav.is-open .nav-mobile { max-height: 340px; padding-block: 1rem; }
.nav-mobile a { padding: .7rem .2rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.nav-mobile a:last-child { border-bottom: 0; }

/* 6. HERO ----------------------------------------------------- */
.hero { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.02; margin: 1rem 0 1.3rem;
}
.hero-title em { font-style: italic; color: var(--green); }
.hero-slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--green); margin: 0 0 1rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-visual { position: relative; }
.hero-panel {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 70% 15%, color-mix(in srgb, var(--green-soft) 30%, var(--paper)) 0%, var(--paper) 55%),
    var(--paper);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.hero-panel-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green-soft) 55%, white) 0%, transparent 68%);
  top: -6%; right: -18%; filter: blur(26px); opacity: .6;
}
.hero-iso {
  position: relative; z-index: 1; width: 76%; height: auto;
  filter: drop-shadow(0 22px 34px rgba(22,41,74,.22));
  animation: isoFloat 6s var(--ease-soft) infinite;
}
@keyframes isoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-badge {
  position: absolute; left: -1rem; bottom: 1.5rem;
  background: var(--paper); border-radius: 16px; padding: .9rem 1.2rem;
  box-shadow: var(--shadow); display: grid; line-height: 1.2;
}
.hero-badge strong { font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.hero-badge span { font-size: .78rem; color: var(--ink-mute); }

/* 7. STATS ---------------------------------------------------- */
.stats { padding: clamp(2rem, 5vw, 3rem) 0; border-block: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--green); font-weight: 500; }
.stat-label { font-size: .84rem; color: var(--ink-mute); }

/* 8. SERVICIOS ------------------------------------------------ */
.services { padding: clamp(4rem, 9vw, 7rem) 0; }
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.service-card {
  position: relative; padding: 2rem 1.8rem 1.7rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--green); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--brand-green); }
.service-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.service-card p { color: var(--ink-soft); font-size: .96rem; }
.service-more { display: inline-block; margin-top: 1.1rem; font-size: .9rem; font-weight: 500; color: var(--green); }

/* 9. BLOCKS genéricos ----------------------------------------- */
.block { padding: clamp(4rem, 9vw, 7rem) 0; }
.block-alt { background: var(--bg-2); }
.block-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.6rem; }
.block-cta-note { font-size: .9rem; color: var(--ink-mute); }

/* Adopción */
.adopt-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.adopt-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.adopt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.adopt-photo {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-soft) 0%, var(--green) 100%);
  color: var(--paper); font-family: var(--serif); font-size: 1.6rem; letter-spacing: .02em;
}
.adopt-body { padding: 1.2rem 1.3rem 1.4rem; }
.adopt-body h3 { font-size: 1.25rem; }
.adopt-meta { font-size: .86rem; color: var(--ink-mute); margin: .2rem 0 .5rem; }
.adopt-note { font-size: .92rem; color: var(--green); font-weight: 500; }

/* Hotel / planes */
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.plan-card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  padding: 2rem 1.8rem; border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan-card.is-featured { background: var(--green); color: var(--paper); border-color: transparent; }
.plan-card.is-featured .plan-price span,
.plan-card.is-featured .plan-features li { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.plan-badge {
  position: absolute; top: -12px; left: 1.8rem; background: var(--bg);
  color: var(--green); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: .35rem .8rem; border-radius: 100px; border: 1px solid var(--line);
}
.plan-name { font-size: 1.3rem; }
.plan-price { font-family: var(--serif); font-size: 1.9rem; color: inherit; }
.plan-price span { font-family: var(--sans); font-size: .9rem; color: var(--ink-mute); }
.plan-features { display: grid; gap: .5rem; margin: .8rem 0 1.4rem; }
.plan-features li { position: relative; padding-left: 1.4rem; font-size: .95rem; color: var(--ink-soft); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 600; }
.plan-card.is-featured .plan-features li::before { color: var(--paper); }
.plan-card .btn { margin-top: auto; }

/* Accesorios */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.shop-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shop-photo {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 2.6rem;
  background: var(--bg-2);
}
.shop-body { padding: 1rem 1.1rem 1.2rem; }
.shop-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-soft); font-weight: 600; }
.shop-body h3 { font-size: 1.05rem; margin: .25rem 0 .3rem; }
.shop-price { font-family: var(--serif); font-size: 1.2rem; color: var(--green); }

/* Veterinaria */
.vet-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.vet-list { display: grid; gap: .8rem; }
.vet-list li {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 1rem 1.2rem; font-weight: 500; position: relative; padding-left: 2.6rem;
  transition: transform .3s var(--ease-out), border-color .3s;
}
.vet-list li::before {
  content: "🐾"; position: absolute; left: 1rem; font-size: .95rem;
  filter: grayscale(.2);
}
.vet-list li:hover { transform: translateX(4px); border-color: var(--green); }

/* 10. TESTIMONIOS --------------------------------------------- */
.testi { padding: clamp(4rem, 9vw, 7rem) 0; }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.testi-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.testi-card blockquote { font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.45; color: var(--ink); }
.testi-card blockquote::before { content: "“"; color: var(--green-soft); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: .1em; }
.testi-card figcaption { margin-top: 1.3rem; display: grid; }
.testi-card figcaption strong { color: var(--green); }
.testi-card figcaption span { font-size: .84rem; color: var(--ink-mute); }

/* 11. CONTACTO ------------------------------------------------ */
.contact { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg-2); }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-info li { display: grid; gap: .1rem; }
.contact-info span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.contact-info a, .contact-info p { font-size: 1.02rem; color: var(--ink); }
.contact-info a:hover { color: var(--green); }

.contact-form { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}
.field textarea { resize: vertical; }
.form-status { margin-top: .9rem; font-size: .92rem; color: var(--green); min-height: 1.2em; text-align: center; }

/* 12. FOOTER -------------------------------------------------- */
.footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 80%, transparent); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(245,239,227,.12); }
.footer-logo { display: flex; align-items: center; gap: .7rem; }
.footer-logo img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand .brand-name { color: var(--paper); font-size: 1.5rem; font-family: var(--serif); }
.footer-brand p { margin-top: .7rem; max-width: 34ch; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.footer-nav a { font-size: .95rem; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.footer-nav a:hover { color: var(--paper); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.6rem; font-size: .82rem; color: color-mix(in srgb, var(--paper) 55%, transparent); }

/* 13. Reveal (scroll) ----------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.is-ready [data-reveal].is-in { opacity: 1; transform: none; }
/* Fallback: si JS no corre, mostrar todo */
html:not(.is-ready) [data-reveal] { opacity: 1; transform: none; }

/* 14. Responsive ---------------------------------------------- */
@media (min-width: 540px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .adopt-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .adopt-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .vet-grid { grid-template-columns: 1fr 1fr; }
}
.contact-grid { max-width: 620px; }

/* 15. Reduced-motion (solo lo intrusivo) ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-iso { animation: none; }
}

/* 16. Contenido real (Morelia) — ajustes -------------------- */
.stat-num { font-size: clamp(1.5rem, 3.8vw, 2.1rem); line-height: 1.12; }
.mini-title { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 500; color: var(--ink); margin-bottom: 1.3rem; }
.req-grid li { font-weight: 400; }
.hotel-photo { margin: 0 0 2.2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-soft); background: var(--paper); }
.hotel-photo img { width: 100%; height: auto; display: block; }
.hotel-photo figcaption { padding: .85rem 1.2rem; font-size: .9rem; color: var(--ink-mute); }
.hotel-note { margin-top: 1.8rem; font-size: .96rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 1rem 1.3rem; }
.hotel-note strong { color: var(--green); }
.vet .block-cta-note strong { color: var(--green); }

.adopt-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.protocolo-note { margin-top: 1.8rem; margin-bottom: 2.4rem; font-size: 1rem; color: var(--ink-soft); background: var(--green-tint, color-mix(in srgb, var(--green) 8%, var(--paper))); border: 1px solid var(--line-soft); border-radius: 14px; padding: 1rem 1.3rem; }
.protocolo-note strong { color: var(--green); }

@media (min-width: 720px) {
  .req-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .services-3 { grid-template-columns: repeat(3, 1fr); }
  .adopt-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 17. Hotel — dos ambientes ---------------------------------- */
.ambientes { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-bottom: 2.8rem; }
.ambiente-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease-out), box-shadow .4s; }
.ambiente-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ambiente-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.ambiente-photo img { width: 100%; height: 100%; object-fit: cover; }
.ambiente-body { padding: 1.4rem 1.5rem 1.6rem; }
.ambiente-tag { display: inline-block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--paper)); padding: .3rem .75rem; border-radius: 100px; margin-bottom: .7rem; }
.ambiente-body h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.ambiente-body p { color: var(--ink-soft); font-size: .96rem; }
.mini-note { font-family: var(--sans); font-size: .85rem; font-weight: 400; font-style: italic; color: var(--ink-mute); }
@media (min-width: 720px) {
  .ambientes { grid-template-columns: repeat(2, 1fr); }
}

/* 18. Héroe con foto ----------------------------------------- */
.hero-panel-photo { background: none; border-color: var(--line); }
.hero-photo-img { width: 100%; height: 100%; object-fit: cover; }

/* 19. Promociones -------------------------------------------- */
.promo .section-head.center { max-width: 46ch; }
.promo-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.promo-card { position: relative; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2.1rem 1.7rem 1.8rem; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .4s var(--ease-out), box-shadow .4s; }
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.promo-card.is-featured { border-color: var(--green); box-shadow: var(--shadow-sm); }
.promo-size { font-size: 1.15rem; color: var(--ink-soft); font-weight: 500; }
.promo-price { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 2.9rem); color: var(--green); line-height: 1; margin: .35rem 0 .25rem; }
.promo-was { font-size: .9rem; color: var(--ink-mute); }
.promo-save { display: inline-block; background: color-mix(in srgb, var(--brand-green) 20%, var(--paper)); color: #47670f; font-weight: 600; font-size: .82rem; padding: .32rem .85rem; border-radius: 100px; margin: .75rem 0 1.1rem; }
.promo-feats { display: grid; gap: .45rem; margin-bottom: 1.5rem; width: 100%; max-width: 15rem; }
.promo-feats li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: .94rem; text-align: left; }
.promo-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.promo-card .btn { margin-top: auto; }
@media (min-width: 720px) {
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 20. Adopción: carrusel horizontal (todos los tamaños) ------ */
.adopt-grid {
  display: flex; gap: 1rem; grid-template-columns: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding: .3rem var(--gutter) 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--green-soft) transparent;
}
.adopt-grid::-webkit-scrollbar { height: 8px; }
.adopt-grid::-webkit-scrollbar-thumb { background: var(--green-soft); border-radius: 100px; }
.adopt-card { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 560px) { .adopt-card { flex-basis: 42%; } }
@media (min-width: 960px) { .adopt-card { flex-basis: 22.5%; } }
@media (max-width: 719px) { .mini-title .mini-note { display: block; } }

/* 20b. Carruseles horizontales en móvil (servicios, tarifas, paquetes) */
@media (max-width: 719px) {
  .services-grid.services-3,
  .plans-grid,
  .promo-grid {
    display: flex; grid-template-columns: none; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: .3rem var(--gutter) 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--green-soft) transparent;
  }
  .services-grid.services-3::-webkit-scrollbar,
  .plans-grid::-webkit-scrollbar,
  .promo-grid::-webkit-scrollbar { height: 8px; }
  .services-grid.services-3::-webkit-scrollbar-thumb,
  .plans-grid::-webkit-scrollbar-thumb,
  .promo-grid::-webkit-scrollbar-thumb { background: var(--green-soft); border-radius: 100px; }
  .services-grid.services-3 > .service-card { flex: 0 0 78%; scroll-snap-align: start; }
  .plans-grid > .plan-card,
  .promo-grid > .promo-card { flex: 0 0 82%; scroll-snap-align: start; }
}

/* 20c. Adopción: desplegable de requisitos ------------------- */
.adopt-toggle { display: inline-flex; align-items: center; gap: .5rem; }
.adopt-toggle[aria-expanded="true"] { background: var(--green-2, var(--green)); }
.req-panel[hidden] { display: none; }
.req-panel {
  margin-top: 1.4rem; padding: 1.4rem clamp(1rem, 4vw, 1.8rem);
  background: color-mix(in srgb, var(--brand-green) 8%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--brand-green) 28%, transparent);
  border-radius: 18px;
  animation: reqIn .35s var(--ease-out) both;
}
@keyframes reqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.req-panel .mini-title { margin-top: 0; }

/* 21. Redes sociales (pie) ----------------------------------- */
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; transition: transform .3s var(--ease-out), background .3s; }
.socials a:hover { background: var(--green); transform: translateY(-3px); }

/* 22. Slogan (pie) + banner promo en línea ------------------- */
.footer-slogan { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--brand-green); margin: .2rem 0 .5rem; }
.promo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 2.6rem); background: color-mix(in srgb, var(--brand-green) 14%, var(--paper)); border: 1px solid color-mix(in srgb, var(--brand-green) 40%, transparent); border-radius: 16px; padding: 1rem 1.3rem; font-size: .98rem; color: var(--ink-soft); }
.promo-banner-tag { font-weight: 600; color: #46660f; background: #fff; border-radius: 100px; padding: .3rem .85rem; font-size: .85rem; }
.promo-banner strong { color: var(--green-2); }
.promo-save { line-height: 1.2; }

/* 23. Plan con alimento + Reseñas ---------------------------- */
.plan-food { font-size: .84rem; color: var(--ink-soft); margin: -.1rem 0 .9rem; background: color-mix(in srgb, var(--green) 9%, var(--paper)); border-radius: 10px; padding: .5rem .7rem; }
.plan-food strong { color: var(--green); }
.plan-food s { color: var(--ink-mute); }
.plan-food em { font-style: normal; font-size: .7rem; color: var(--green-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plan-card.is-featured .plan-food { background: rgba(255,255,255,.16); color: #fff; }
.plan-card.is-featured .plan-food strong, .plan-card.is-featured .plan-food em { color: #fff; }
.plan-card.is-featured .plan-food s { color: rgba(255,255,255,.7); }

.block-cta.center { justify-content: center; }
.testi-card .stars { color: #F4B400; font-size: 1rem; letter-spacing: 2px; margin-bottom: .6rem; }

/* 24. Hotel: paso "agregar alimento" ------------------------- */
.plan-card > a.btn { margin-top: .8rem; }
.plan-food-toggle { margin-top: .6rem; width: 100%; padding: .6rem 1rem; border-radius: 100px; border: 1.5px dashed var(--line); background: transparent; color: var(--green); font-weight: 600; font-size: .9rem; font-family: var(--sans); transition: border-color .3s var(--ease-out), background .3s; }
.plan-food-toggle:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 8%, transparent); }
.plan-food-toggle.is-open { border-style: solid; }
.plan-card.is-featured .plan-food-toggle { color: #fff; border-color: rgba(255,255,255,.55); }
.plan-card.is-featured .plan-food-toggle:hover { background: rgba(255,255,255,.14); }
.plan-food-panel { margin-top: .8rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 1rem 1.1rem; text-align: left; box-shadow: var(--shadow-sm); }
.pf-title { font-family: var(--serif); font-size: 1rem; color: var(--ink); margin-bottom: .7rem; }
.pf-title span { font-family: var(--sans); font-size: .76rem; color: var(--ink-mute); display: block; font-weight: 400; }
.pf-lines { display: grid; gap: .5rem; margin-bottom: .8rem; }
.pf-lines li { display: flex; justify-content: space-between; gap: .8rem; font-size: .9rem; color: var(--ink-soft); }
.pf-nums { white-space: nowrap; }
.pf-nums s { color: var(--ink-mute); margin-right: .15rem; }
.pf-nums em { font-style: normal; color: #fff; background: var(--green); border-radius: 100px; padding: .06rem .45rem; font-size: .72rem; font-weight: 700; margin-left: .25rem; }
.pf-total { font-size: 1rem; color: var(--ink); margin-bottom: .9rem; }
.pf-total strong { font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.pf-total span { color: var(--ink-mute); font-size: .85rem; }

/* 25. Asistente flotante (perrito / chatbot) ----------------- */
.pc-bot-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; display: grid; place-items: center; padding: 0;
  box-shadow: 0 12px 28px -10px rgba(22,41,74,.5);
  transition: transform .3s var(--ease-out), background .3s;
}
.pc-bot-fab:hover { background: var(--green-2); transform: translateY(-3px) scale(1.05); }
.pc-bot-fab svg { width: 40px; height: 40px; display: block; }
.pc-bot-dot {
  position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-orange); border: 2.5px solid #fff;
}
.pc-bot-dot[hidden] { display: none; }

.pc-bot-tip {
  position: fixed; right: 5.6rem; bottom: 2.1rem; z-index: 899;
  background: #fff; color: var(--ink); font-size: .88rem; font-weight: 500;
  padding: .6rem .95rem; border-radius: 14px; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); max-width: 200px;
  animation: pcTipIn .4s var(--ease-out) both;
}
.pc-bot-tip[hidden] { display: none; }
@keyframes pcTipIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.pc-bot-panel {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + 62px + .7rem); z-index: 901;
  width: min(372px, calc(100vw - 2.5rem));
  height: min(548px, calc(100vh - 9rem));
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 22px;
  box-shadow: 0 28px 70px -24px rgba(22,41,74,.55);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: pcBotIn .3s var(--ease-out) both;
}
.pc-bot-panel[hidden] { display: none; }
@keyframes pcBotIn { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }

.pc-bot-head {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
  background: var(--green); color: #fff; flex: 0 0 auto;
}
.pc-bot-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: 0 0 auto; }
.pc-bot-avatar svg { width: 26px; height: 26px; color: #fff; }
.pc-bot-head-txt { display: grid; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
.pc-bot-head-txt strong { font-size: .95rem; font-weight: 600; }
.pc-bot-head-txt span { font-size: .76rem; opacity: .85; }
.pc-bot-close { background: none; border: 0; color: #fff; cursor: pointer; padding: .3rem; border-radius: 8px; display: grid; place-items: center; opacity: .85; }
.pc-bot-close:hover { opacity: 1; background: rgba(255,255,255,.15); }
.pc-bot-close svg { width: 20px; height: 20px; }

.pc-bot-log {
  flex: 1 1 auto; overflow-y: auto; padding: 1rem .9rem .4rem;
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--green-soft) transparent;
}
.pc-bot-log::-webkit-scrollbar { width: 7px; }
.pc-bot-log::-webkit-scrollbar-thumb { background: var(--green-soft); border-radius: 100px; }

.pc-msg { display: flex; }
.pc-msg-bot { justify-content: flex-start; }
.pc-msg-me { justify-content: flex-end; }
.pc-msg-in {
  max-width: 86%; padding: .65rem .85rem; border-radius: 16px;
  font-size: .89rem; line-height: 1.5; word-wrap: break-word;
}
.pc-msg-bot .pc-msg-in { background: #fff; color: var(--ink); border: 1px solid var(--line-soft); border-bottom-left-radius: 5px; }
.pc-msg-me  .pc-msg-in { background: var(--green); color: #fff; border-bottom-right-radius: 5px; }
.pc-msg-bot .pc-msg-in strong { color: var(--green-2); }
.pc-msg-bot .pc-msg-in em { color: var(--ink-mute); font-size: .84rem; }

.pc-typing { display: inline-flex; gap: 4px; padding: .15rem 0; }
.pc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-soft); animation: pcDot 1s infinite ease-in-out; }
.pc-typing i:nth-child(2) { animation-delay: .15s; }
.pc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pcDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.pc-bot-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem .9rem 0; background: var(--bg); flex: 0 0 auto; }
.pc-chip {
  background: #fff; border: 1.5px solid var(--green-soft); color: var(--green-2);
  font-size: .82rem; font-weight: 600; font-family: inherit;
  padding: .42rem .8rem; border-radius: 100px; cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.pc-chip:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.pc-chip-wa { border-color: var(--brand-green); color: #4d7a12; }
.pc-chip-wa:hover { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }

.pc-bot-form { display: flex; gap: .5rem; padding: .75rem .9rem .85rem; background: var(--bg); flex: 0 0 auto; }
.pc-bot-form input {
  flex: 1 1 auto; min-width: 0; font-family: inherit; font-size: .88rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .6rem .9rem;
}
.pc-bot-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,158,172,.15); }
.pc-bot-form button {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; display: grid; place-items: center; transition: background .25s;
}
.pc-bot-form button:hover { background: var(--green-2); }
.pc-bot-form button svg { width: 19px; height: 19px; }

@media (max-width: 480px) {
  .pc-bot-fab { width: 56px; height: 56px; right: 1rem; bottom: 1rem; }
  .pc-bot-fab svg { width: 36px; height: 36px; }
  .pc-bot-panel { right: 1rem; left: 1rem; width: auto; bottom: calc(1rem + 56px + .6rem); height: min(78vh, calc(100vh - 7rem)); }
  .pc-bot-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-bot-panel, .pc-bot-tip { animation: none; }
  .pc-typing i { animation: none; }
  .pc-bot-fab:hover, .pc-chip:hover { transform: none; }
}

/* 26. Mapa de ubicación --------------------------------------- */
.map-wrap { margin: 2rem 0 0; }
.map-wrap iframe {
  display: block; width: 100%; height: 300px; border: 0;
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow-sm);
  filter: saturate(.92);
}
.map-wrap figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1rem; margin-top: .9rem;
  font-size: .92rem; color: var(--ink-soft);
}
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
@media (max-width: 559px) { .map-wrap iframe { height: 240px; } }
