/* ============================================================
   SERVICIOS PAGE (servicios.html) — page-specific layout
   Load AFTER styles/main.css and styles/home.css. Reuses the
   navbar, footer, .section, .section-head, .process-grid, .cta
   and button helpers from home.css; this file only carries the
   servicios-specific blocks. Consumes design tokens only; no raw
   hex/px values except layout-only aspect ratios.
   Mobile breakpoint: 768px (in sync with --breakpoint-md).
   ============================================================ */

/* ============================================================
   MOBILE NAVBAR — this page has no hero photo, so the transparent
   .hero__nav exists only to carry the shared mobile bar + hamburger
   menu (styled in home.css under <=768px). Hide it on desktop, where
   the solid navbar is used instead.
   ============================================================ */
@media (min-width: 769px) {
  .hero__nav { display: none; }
}

/* ============================================================
   HERO — text column on the left (title, lead, "Leer más"),
   a tall portrait on the right. The solid navbar sits above;
   there is no transparent photo hero here.
   ============================================================ */
.svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 430fr) minmax(0, 620fr);
  gap: calc(var(--space-24) * 2);
  align-items: center;
}

.svc-hero__body {
  display: flex;
  flex-direction: column;
  max-width: 40ch;
}
.svc-hero__body > * + * { margin-top: var(--space-16); }

.svc-hero__title {
  font-size: var(--font-size-headline-1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}
.svc-hero__lead { color: var(--color-text-muted); }
.svc-hero__link { align-self: flex-start; margin-top: var(--space-24); }

/* Portrait stretches to match the text column, cropped to fit */
.svc-hero__media { align-self: stretch; }
.svc-hero__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-grey-light);
}

/* ============================================================
   CÓMO CONTAMOS TU HISTORIA — single narrow text block:
   bold label, muted paragraph, a hairline, then "Leer más".
   ============================================================ */
.svc-story { max-width: 78ch; }
.svc-story > * + * { margin-top: var(--space-16); }
.svc-story__lead { color: var(--color-text-muted); }
.svc-story__link { display: inline-block; cursor: pointer; }

/* Closing paragraph stays visible but blurred/faded until the
   "Leer más" toggle sets .is-expanded on .svc-story. The blur is the
   cue that there's more to reveal; it clears on expand. */
.svc-story__more {
  filter: blur(4px);
  opacity: 0.55;
  user-select: none;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.svc-story.is-expanded .svc-story__more {
  filter: blur(0);
  opacity: 1;
  user-select: auto;
}
.svc-story__lead--muted { color: var(--color-text-muted); }

/* ============================================================
   PAQUETES — two service columns (each a name + spec, both
   underlined by a hairline) beside an inclusions list
   ("Bodas dentro de México"), followed by a "Contactar" button.
   ============================================================ */
.packages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: calc(var(--space-24) * 2) var(--space-24);
  align-items: start;
}

.package > * + * { margin-top: var(--space-24); }
.package__name,
.package__spec {
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}
.package__name {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}
.package__spec {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-book);
  color: var(--color-text-muted);
}

.packages__includes > * + * { margin-top: var(--space-16); }
.includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.includes-list li {
  position: relative;
  padding-left: var(--space-16);
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
}
.includes-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

.packages__cta { margin-top: calc(var(--space-24) * 2); }

/* ============================================================
   PAQUETES (mobile) — a redesign of the packages block for
   small screens: an eyebrow, the four services stacked as
   hairline-underlined rows, an inclusions list with dash
   bullets, then the "Contactar" button. Hidden on desktop;
   revealed at <= 768px where .svc-packages-desktop is hidden.
   ============================================================ */
.svc-packages-mobile { display: none; }

.svc-pkg-m__eyebrow {
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
}

.svc-pkg-m__list {
  list-style: none;
  margin-top: var(--space-24);
}
.svc-pkg-m__item {
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
  color: var(--color-black);
  text-transform: uppercase;
}
.svc-pkg-m__item + .svc-pkg-m__item { margin-top: var(--space-24); }

.svc-pkg-m__includes { margin-top: calc(var(--space-24) * 2); }
.svc-pkg-m__includes > * + * { margin-top: var(--space-16); }
.svc-pkg-m__includes-title {
  font-size: 14px;
  font-weight: var(--font-weight-book);
  color: var(--color-black);
}
.svc-pkg-m__includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.svc-pkg-m__includes-list li {
  position: relative;
  font-size: var(--font-size-body);
  color: var(--color-text);
}

.svc-pkg-m__cta { margin-top: calc(var(--space-24) * 2); }

/* ============================================================
   COMPLEMENTOS — 2-column grid of numbered add-ons, each row
   topped by a hairline rule.
   ============================================================ */
.complementos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(var(--space-24) * 2);
}
.complemento {
  display: flex;
  gap: var(--space-16);
  padding-block: var(--space-24);
  border-bottom: 0.5px solid var(--color-black);
  font-size: var(--font-size-body);
  color: var(--color-text);
}
.complemento__num { color: var(--color-text-muted); }

/* ============================================================
   PROCESO DE RESERVA (mobile) — a redesign of the reserva block
   for small screens: an eyebrow topped by a hairline, then the
   three steps as cards, each a portrait image beside a title and
   a short description. Hidden on desktop; revealed at <= 768px
   where .svc-reserva-desktop is hidden.
   ============================================================ */
.svc-reserva-mobile { display: none; }

.svc-reserva-m__eyebrow {
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
  font-weight: var(--font-weight-book);
  line-height: 16px;
  color: var(--color-text-muted);
}

.svc-reserva-m__list {
  margin-top: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-24) * 2);
}

.svc-reserva-m__card {
  display: grid;
  grid-template-columns: minmax(0, 180fr) minmax(0, 210fr);
  gap: var(--space-24);
  align-items: start;
}
.svc-reserva-m__img {
  display: block;
  width: 100%;
  aspect-ratio: 180 / 220;
  object-fit: cover;
  background-color: var(--color-grey-light);
}
.svc-reserva-m__body > * + * { margin-top: var(--space-16); }
.svc-reserva-m__title {
  font-size: 14px;
  font-weight: var(--font-weight-book);
  line-height: 16px;
  color: var(--color-black);
}
.svc-reserva-m__text {
  font-size: 12px;
  font-weight: var(--font-weight-book);
  line-height: 16px;
  color: var(--color-black);
}

/* ============================================================
   PREGUNTAS FRECUENTES — native <details> accordion. Each row
   is a numbered question with a +/– toggle; the open item
   reveals its answer. Hairline rules separate the rows.
   ============================================================ */
.faq__item { border-bottom: 1px solid var(--color-divider); }

.faq__q {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding-block: var(--space-24);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: opacity 0.2s ease;
}
.faq__q:hover { opacity: 0.6; }
.faq__q::-webkit-details-marker { display: none; } /* Chromium/Safari */
.faq__num { color: var(--color-text-muted); }
.faq__text { margin-right: auto; }

.faq__a {
  max-width: 80ch;
  padding-bottom: var(--space-24);
  color: var(--color-text-muted);
}

/* ============================================================
   PROPUESTAS — text aligned to the site container on the left,
   a full-bleed square image flush to the right viewport edge.
   ============================================================ */
.propuesta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.propuesta__inner {
  width: 100%;
  max-width: calc(var(--container-max) / 2);
  margin-left: auto;
  padding-inline: var(--container-gutter);
}
.propuesta__inner > * + * { margin-top: var(--space-16); }
.propuesta__title {
  font-size: var(--font-size-headline-1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: capitalize;
}
.propuesta__lead {
  max-width: 60ch;
  color: var(--color-text-muted);
}
.propuesta__link { margin-top: var(--space-24); }

.propuesta__media { align-self: stretch; }
.propuesta__media-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;          /* matches placehold.co/583x583 */
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE  (<= 1024px / <= 768px)
   ============================================================ */
@media (max-width: 1024px) {
  .packages__grid { grid-template-columns: 1fr 1fr; }
  .packages__includes { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Mobile navbar: unlike the home/portfolio pages, this page's bar
     sits over a light hero (no dark photo), so the shared white logo +
     white hamburger would be invisible. Give the bar a solid white
     surface and flip the marks to dark. The open-menu overlay is still
     handled by home.css. */
  body:not(.is-menu-open) .hero__nav {
    background-color: var(--color-grey-light);
  }
  body:not(.is-menu-open) .hero__nav .navbar__brand { mix-blend-mode: normal; }
  body:not(.is-menu-open) .hero__nav .logo-img { filter: invert(1); }
  body:not(.is-menu-open) .nav-toggle__bar { background-color: var(--color-black); }

  /* Hero: portrait on top, text below */
  .svc-hero { grid-template-columns: 1fr; gap: var(--space-24); }
  .svc-hero__media { order: -1; }
  .svc-hero__body { max-width: none; }

  .servicios_container {
    padding: 0 !important;
  }

  .servicios_hero {
    display: flex;
    flex-direction: column-reverse;
    padding-top: var(--space-100) !important;
    padding-bottom: var(--space-100) !important;
    padding-left: var(--space-24) !important;
    padding-right: var(--space-24) !important;
  }

  .svc-hero__title {
    font-size: 32px;
    font-weight: var(--font-weight-medium);
  }

  .svc-hero__lead { color: var(--color-black); }
  .svc-hero__link { display: none; }
  .servicios_historia_title { font-size: 14px; font-weight: var(--font-weight-bold); text-transform: uppercase; }
  .servicios_historia_description { color: var(--color-black); }
  .servicios_historia_btn { color: var(--color-black); font-size: 14px; text-transform: uppercase; }

  /* Swap the desktop packages grid for the mobile redesign */
  .svc-packages-desktop { display: none; }
  .svc-packages-mobile { display: block; }
  .complementos__grid { grid-template-columns: 1fr; column-gap: 0; }

  /* Swap the desktop reserva grid for the mobile card redesign */
  .svc-reserva-desktop { display: none; }
  .svc-reserva-mobile { display: block; }

  .complemento span {
    color: var(--color-black);
    font-size: 14px;
  }

  /* Propuestas: text over a full-width image */
  .propuesta { display: flex; flex-direction: column-reverse; }
  .propuesta__inner {
    max-width: none;
    padding-block: var(--space-100);
  }
  .propuesta__media { order: 1; }
  .propuesta__media-img { padding: var(--space-24); }
  .propuesta__title { font-weight: var(--font-weight-bold); text-transform: uppercase; } 
  .propuesta__lead { color: #1B1A18; }
  .propuesta__link { color: var(--color-black); background-color: transparent; border: 1px solid var(--color-black); padding: var(--space-8) var(--space-16); border-radius: 4px; text-decoration: none; text-transform: uppercase; width: fit-content; }
}
