:root {
  --ink: #101412;
  --ink-soft: #2a322f;
  --muted: #5e6a65;
  --paper: #f3f5f4;
  --paper-2: #e8ecea;
  --white: #ffffff;
  --lime: #8fbf3a;
  --lime-deep: #6f9628;
  --line: rgba(16, 20, 18, 0.12);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 3rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 100% -8%, rgba(143, 191, 58, 0.12), transparent 55%),
    linear-gradient(180deg, #eef2f0 0%, var(--paper) 30%, var(--paper) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

/* Toque de contraste / color en fotos reales */
.door img,
.block-media img,
.hero-media img,
.gallery-slide img {
  filter:
    contrast(1.12)
    saturate(1.14)
    brightness(1.03);
  transition: filter 0.45s var(--ease), transform 1s var(--ease);
}

.door:hover img,
.block-media:hover img,
.hero-media:hover img,
.gallery-slide:hover img {
  filter:
    contrast(1.16)
    saturate(1.2)
    brightness(1.05);
  transform: scale(1.03);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lime-deep);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 0.85rem;
}

.lead {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--space);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #f5f8f4;
  box-shadow: 0 14px 32px rgba(16, 20, 18, 0.18);
}

.btn-primary:hover {
  background: #1c2421;
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(16, 20, 18, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

.btn-ghost-dark {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.btn-ghost-dark:hover {
  border-color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--space);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-solid {
  background: rgba(243, 245, 244, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(16, 20, 18, 0.1),
    0 6px 16px rgba(16, 20, 18, 0.1);
}

@media (min-width: 900px) {
  .brand {
    font-size: 1.35rem;
    gap: 0.75rem;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }
}

.nav {
  display: none;
  gap: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  opacity: 0.78;
}

.nav a:hover {
  opacity: 1;
}

.header-wa {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 20, 18, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

.header-wa:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

/* Hero — marca + foto + 4,6, sin muro de texto */
.hero {
  max-width: calc(var(--max) + 2 * var(--space));
  margin: 0 auto;
  padding: calc(5.6rem + env(safe-area-inset-top)) var(--space) clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    min-height: min(86svh, 760px);
  }

  .hero-media {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }
}

.hero-media {
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  box-shadow: 0 26px 56px rgba(16, 20, 18, 0.16);
  animation: rise 0.9s 0.08s var(--ease) both;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-height: min(72svh, 640px);
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 9vw, 5.4rem);
  animation: rise 0.85s var(--ease) both;
}

.hero-sub {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 500;
  color: var(--ink-soft);
  animation: rise 0.85s 0.05s var(--ease) both;
}

.hero-tag {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 0.85s 0.1s var(--ease) both;
}

.hero-lead {
  margin: 0.55rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  animation: rise 0.85s 0.14s var(--ease) both;
}

.hero .eyebrow {
  animation: rise 0.85s 0.02s var(--ease) both;
}

.hero-foot {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  animation: rise 0.85s 0.18s var(--ease) both;
}

.hero-score {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: #f4f7f3;
  box-shadow: 0 14px 32px rgba(16, 20, 18, 0.18);
  transition: transform 0.3s var(--ease);
}

.hero-score:hover {
  transform: translateY(-2px);
}

.trust-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.trust-side {
  display: grid;
  gap: 0.1rem;
}

.trust-stars {
  margin: 0;
  letter-spacing: 0.1em;
  color: var(--lime);
  font-size: 0.78rem;
  line-height: 1;
}

.trust-meta {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.78;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Reviews — main trust engine */
.reviews {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.reviews-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .reviews-grid {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .review-feature {
    grid-row: 1 / span 2;
  }
}

.review {
  margin: 0;
  padding: 1.4rem 1.35rem;
  border-top: 1px solid var(--line);
  background: transparent;
}

.review-feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.review p {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.review-feature p {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.review footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.review footer strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.reviews-cta {
  max-width: var(--max);
  margin: 2rem auto 0;
}

/* Doors */
.doors {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.doors-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .doors-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.door {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  color: #f5f8f4;
  background: #111;
  display: block;
}

.door img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.door:hover img {
  transform: scale(1.05);
}

.door-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 12, 0.9));
}

.door-copy .eyebrow {
  color: var(--lime);
}

.door-copy h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.door-copy p {
  margin: 0;
  color: rgba(245, 248, 244, 0.86);
  max-width: 22rem;
}

.door-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lime);
}

/* Blocks */
.block {
  max-width: calc(var(--max) + 2 * var(--space));
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .block {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.block-alt {
  background: var(--paper-2);
  max-width: none;
  padding-left: max(var(--space), calc((100% - var(--max)) / 2));
  padding-right: max(var(--space), calc((100% - var(--max)) / 2));
}

.block-alt .block-media,
.block-alt .block-text {
  max-width: none;
}

.block-text p {
  color: var(--muted);
  max-width: 34rem;
}

.plain-list {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.plain-list li {
  padding-left: 1rem;
  position: relative;
  font-weight: 500;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lime);
}

.plain-list-emoji li {
  padding-left: 0;
}

.plain-list-emoji li::before {
  display: none;
}

.block-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(16, 20, 18, 0.1);
}

.block-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Gallery · Amigos de la casa */
.gallery {
  background:
    radial-gradient(680px 320px at 12% 0%, rgba(143, 191, 58, 0.16), transparent 60%),
    var(--ink);
  color: #f4f7f3;
  overflow: hidden;
}

.gallery .eyebrow {
  color: var(--lime);
}

.gallery-head {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
}

.gallery-head .lead,
.gallery-head h2 {
  color: #f4f7f3;
}

.gallery-head .lead {
  max-width: 36rem;
  color: rgba(244, 247, 243, 0.72);
  margin: 0.65rem 0 0;
}

.gallery-stage {
  position: relative;
  max-width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
}

.gallery-viewport {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem calc((100% - min(420px, 78vw)) / 2) 1.25rem;
  cursor: grab;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gallery-slide {
  margin: 0;
  flex: 0 0 min(420px, 78vw);
  scroll-snap-align: center;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #1a211e;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.gallery-slide.is-active {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(143, 191, 58, 0.55);
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: calc(50% - 1.6rem);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 245, 244, 0.94);
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-nav:hover {
  background: var(--lime);
  transform: scale(1.05);
}

.gallery-nav-prev {
  left: max(0.65rem, calc((100% - var(--max)) / 2));
}

.gallery-nav-next {
  right: max(0.65rem, calc((100% - var(--max)) / 2));
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.gallery-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 247, 243, 0.28);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.gallery-dots button.is-on {
  width: 1.45rem;
  background: var(--lime);
}

@media (max-width: 700px) {
  .gallery-nav {
    display: none;
  }

  .gallery-viewport {
    padding-inline: 1.15rem;
    gap: 0.75rem;
  }

  .gallery-slide {
    flex-basis: min(86vw, 340px);
  }
}

/* Visit */
.visit-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .visit-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.hours {
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.hours dt {
  color: var(--muted);
  font-weight: 500;
}

.hours dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.12rem;
}

.contact-list span {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-list a {
  font-weight: 600;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.contact-list a:hover {
  border-bottom-color: var(--lime-deep);
  color: var(--lime-deep);
}

.visit-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--paper-2);
  box-shadow: 0 18px 40px rgba(16, 20, 18, 0.06);
}

.map-canvas {
  width: 100%;
  min-height: 380px;
  height: 380px;
  z-index: 0;
}

.map-canvas .leaflet-tile-pane {
  filter: grayscale(0.2) saturate(0.85) contrast(1.04);
}

.map-directions {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 500;
  transform: translateX(-50%);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #f4f7f3;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(16, 20, 18, 0.28);
  white-space: nowrap;
}

.map-directions:hover {
  background: var(--lime-deep);
}

/* Marcador de marca (estilo clínicas / locales premium) */
.map-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-6px);
}

.map-pin-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(16, 20, 18, 0.08),
    0 14px 32px rgba(16, 20, 18, 0.22);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.map-pin-card:hover,
.map-pin.is-open .map-pin-card {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 2px var(--lime),
    0 18px 36px rgba(16, 20, 18, 0.28);
}

.map-pin-card img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 20, 18, 0.08);
}

.map-pin-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.map-pin-card small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.map-pin-point {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    0 0 0 4px rgba(143, 191, 58, 0.28),
    0 6px 14px rgba(16, 20, 18, 0.25);
}

.map-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}

.map-pin-point::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 10px;
  transform: translateX(-50%);
  background: var(--ink);
  opacity: 0.35;
  z-index: -1;
}

/* Footer */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.social-link:hover {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.footer-social .social-link {
  padding: 0.45rem;
  min-height: 2.35rem;
  min-width: 2.35rem;
  justify-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem var(--space) 5.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
}

.footer-brand p,
.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-copy h1,
  .hero-sub,
  .hero-tag,
  .hero-lead,
  .hero .eyebrow,
  .hero-foot,
  .hero-media {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
