:root {
  --green: #08783a;
  --green-dark: #075b30;
  --lime: #b8e45b;
  --ink: #14251b;
  --muted: #66746b;
  --mist: #f2f8ee;
  --line: #dce8dd;
  --white: #fff;
  --shadow: 0 18px 45px rgba(5, 74, 34, 0.12);
  --r: 20px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font:
    16px/1.55 Arial,
    Helvetica,
    sans-serif;
  background: #fff;
}

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

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

.section {
  width: 100%;
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.heading {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.heading h2,
h2 {
  margin: 0 0 13px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 25px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--green);
  color: #fff;
}

.btn.primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: #fff;
  color: #fff;
}

.btn.ghost:hover {
  background: #fff;
  color: var(--green-dark);
}

.header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 120, 58, 0.1);
  transition: 0.2s;
}

.header.scrolled {
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  background: transparent;
}

.brand img {
  width: 148px;
  height: 56px;
  object-fit: contain;
  background: transparent;
}

.links {
  display: flex;
  align-items: center;
  gap: 21px;
  font-size: 0.92rem;
  font-weight: 700;
}

.links a:not(.btn):hover {
  color: var(--green);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 1.7rem;
}

.mobile-booking {
  display: none;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #0d3b21;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background: center/cover no-repeat;
  transition: opacity 0.7s ease;
}

.slide.active {
  pointer-events: auto;
  opacity: 1;
}

.slide:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 42, 20, 0.9),
    rgba(1, 42, 20, 0.56),
    rgba(1, 42, 20, 0.15)
  );
}

.slide:nth-child(1),
.slide:nth-child(3),
.slide:nth-child(5) {
  background-image: url("../assets/fachada_mes_patrio.jpg");
}

.slide:nth-child(2),
.slide:nth-child(4) {
  background-image: url("../assets/recepcion_mes_patrio.jpg");
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding-top: 72px;
  color: #fff;
}

.hero-copy {
  max-width: 640px;
}

.hero .eyebrow {
  color: #d4f48f;
}

.hero h1 {
  margin: 0 0 17px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.97;
}

.hero p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero .btn {
  min-height: 59px;
  padding: 17px 30px;
  font-size: 1rem;
}

.dots {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.dot {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.dot.active {
  background: var(--lime);
}

.services {
  background: var(--mist);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.service {
  padding: 13px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 83, 36, 0.07);
  transition: 0.2s;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-image {
  width: 20%;
  aspect-ratio: 3/3;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 14px;
}

.service h3,
.service p {
  margin-right: 8px;
  margin-left: 8px;
}

.service h3 {
  margin-top: 0;
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 1rem;
}

.service p {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.center {
  margin-top: 34px;
  text-align: center;
}

.appointment {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--green-dark), var(--green));
}

.appointment:after {
  content: "+";
  position: absolute;
  right: 6%;
  bottom: -180px;
  color: rgba(255, 255, 255, 0.075);
  font-size: 550px;
  line-height: 1;
}

.appointment-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.appointment .eyebrow {
  color: #d4f48f;
}

.appointment h2 {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
}

.number {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  font-weight: 700;
  background: var(--lime);
}

.contact {
  background: #f8fbf7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-card {
  padding: 31px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
  color: var(--green-dark);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.social {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green);
  transition: 0.2s;
}

.social:hover {
  color: #fff;
  background: var(--green);
  transform: translateY(-3px);
}

.social svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.location {
  min-height: 292px;
  display: flex;
  align-items: end;
  padding: 30px;
  border-radius: var(--r);
  color: #fff;
  background:
    linear-gradient(0deg, rgba(2, 50, 23, 0.89), rgba(2, 50, 23, 0.18)),
    url("../assets/fachada_mes_patrio.jpg") center/cover;
}

.location h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.pay-strip {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 25px;
  border-radius: 15px;
  color: #fff;
  background: var(--green-dark);
}

.pay-title {
  font-weight: 700;
}

.payment {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
}

.payment svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 5px 28px;
  scroll-snap-type: x mandatory;
}

.reviews-track::-webkit-scrollbar {
  height: 6px;
}

.reviews-track::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--lime);
}

.review {
  position: relative;
  min-width: min(370px, 85vw);
  padding: 28px;
  border: 1px solid rgba(8, 120, 58, 0.2);
  border-radius: var(--r);
  scroll-snap-align: start;
  background: linear-gradient(145deg, #fff, #fafff8);
  box-shadow: 0 12px 25px rgba(8, 93, 45, 0.08);
  overflow: hidden;
}

.review:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(108, 179, 85, 0.16);
  pointer-events: none;
}

.stars {
  color: #c08a12;
  letter-spacing: 2px;
}

.review blockquote {
  position: relative;
  margin: 17px 0;
  color: #526057;
}

.review strong {
  position: relative;
  color: var(--green-dark);
}

.review-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.review-nav button {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.8);
  background: #123722;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content img {
  width: 138px;
  background: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--lime);
}

@media (max-width: 850px) {
  .menu-button {
    display: block;
  }

    .mobile-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
  }

  .links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 13px 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 13px 20px rgba(0, 0, 0, 0.1);
  }

  .links.open {
    display: flex;
  }

  .links .desktop-booking {
    display: none;
  }

  .links a {
    padding: 12px 3px;
  }

  .links .btn {
    margin-top: 8px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .appointment-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pay-strip {
    justify-content: center;
    gap: 12px 18px;
    text-align: center;
  }

  .pay-title {
    flex-basis: 100%;
  }
}

@media (min-width: 851px) {
  .review-nav button {
    display: inline-grid;
    place-items: center;
  }

  .review-nav button:hover {
    background: var(--green);
    color: #fff;
  }
}

@media (max-width: 560px) {
  .wrap,
  .nav {
    width: min(100% - 30px, 1120px);
  }

  .section {
    padding: 65px 0;
  }

  .hero,
  .slide {
    min-height: 100svh;
  }

  .hero-content {
    width: min(100% - 30px, 1120px);
    padding-top: 75px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero .btn {
    width: 100%;
    min-height: 62px;
    font-size: 1.03rem;
  }

  .dots {
    display: flex;
    bottom: 24px;
  }

  .dot {
    width: 44px;
    height: 7px;
    border-radius: 99px;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px;
  }

  .contact-card {
    padding: 25px;
  }

  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
