/* ============================================================
   ServiCoffee Cancún — Página de inicio (estilo clásico de servicio técnico)
   Se carga después de styles.css y solo en index.html
   ============================================================ */
.home {
  --gold: #a8741f;
  --gold-deep: #85581a;
  --gold-soft: #e2b866;
  --gold-grad: linear-gradient(135deg, #8a5a1c 0%, #d6a24a 48%, #a7752a 100%);
  --font-display: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --topbar-h: 40px;
  background: #fff;
  background-image: none;
}

.home h1,
.home h2,
.home h3,
.home h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.home h1 em,
.home h2 em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}

.home .eyebrow {
  color: var(--gold);
}

.home .section-alt {
  background: #faf6f0;
}

/* ---------- Botones ---------- */
.btn-gold {
  --btn-bg: var(--gold-grad);
  --btn-fg: #fff;
  box-shadow: 0 14px 28px -14px rgba(133, 88, 26, 0.7);
}

.btn-gold:hover {
  --btn-bg: linear-gradient(135deg, #7a4f17 0%, #c8933c 48%, #8f6222 100%);
}

.btn-line {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-line:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-line-dark {
  --btn-bg: transparent;
  --btn-fg: var(--espresso);
  border: 1.5px solid var(--line-strong);
}

.btn-line-dark:hover {
  --btn-bg: rgba(168, 116, 31, 0.08);
  border-color: var(--gold);
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--espresso);
  color: rgba(243, 227, 206, 0.82);
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
}

.topbar-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.topbar-msg .ico {
  color: var(--gold-soft);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #7ee2a8;
  transition: color 0.2s;
}

.topbar-wa:hover {
  color: #a8f0c6;
}

.topbar-sep {
  width: 1px;
  height: 16px;
  background: rgba(243, 227, 206, 0.22);
}

.topbar-social {
  display: flex;
  gap: 4px;
}

.topbar-social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(243, 227, 206, 0.82);
  transition: background-color 0.2s, color 0.2s;
}

.topbar-social a:hover {
  background: rgba(243, 227, 206, 0.12);
  color: #fff;
}

.topbar-social .ico {
  width: 16px;
  height: 16px;
}

/* ---------- Encabezado ---------- */
.home .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.home .header-inner {
  min-height: 84px;
  gap: 18px;
}

.brand-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.home .brand-text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home .brand-text small {
  color: var(--gold);
}

.home .nav {
  margin-left: auto;
}

.home .nav > a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--coffee);
}

.home .nav > a.is-active::after {
  background: var(--gold);
}

.home .nav .nav-cta {
  display: none;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hc-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hc-phone strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--espresso);
  white-space: nowrap;
}

/* ---------- Carrusel principal ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #1a0f09;
  color: #fff;
}

.hs-track {
  display: grid;
}

.hs-slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.hs-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hs-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.38) saturate(1.1);
  transform: scale(1.05);
}

.hs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 15, 9, 0.92) 0%, rgba(26, 15, 9, 0.7) 45%, rgba(26, 15, 9, 0.25) 100%);
}

.hs-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: clamp(480px, 62vh, 600px);
  padding-block: 56px 84px;
}

.hs-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 184, 102, 0.45);
  background: rgba(226, 184, 102, 0.12);
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hs-title {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

.hs-text {
  max-width: 52ch;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: rgba(255, 255, 255, 0.8);
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hs-photo {
  justify-self: end;
  width: min(100%, 400px);
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8);
  transform: rotate(1.5deg);
}

.hs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.hs-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hs-prev {
  left: 14px;
}

.hs-prev .ico {
  transform: rotate(180deg);
}

.hs-next {
  right: 14px;
}

.hs-arrow .ico {
  width: 20px;
  height: 20px;
}

.hs-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hs-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s;
}

.hs-dot.is-active {
  width: 30px;
  background: var(--gold-soft);
}

/* ---------- Presentación ---------- */
.intro {
  padding: clamp(56px, 7vw, 84px) 0 36px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.intro-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.intro-copy p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--coffee-soft);
  font-size: 1.04rem;
}

.intro-cta {
  display: grid;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius);
  background: #faf6f0;
  border: 1px solid var(--line);
}

.intro-cta p {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--espresso);
}

/* ---------- Beneficios ---------- */
.benefits {
  padding: 20px 0 clamp(48px, 6vw, 72px);
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--espresso);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.benefits-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 14px;
  text-align: center;
  border-right: 1px solid rgba(243, 227, 206, 0.1);
}

.benefits-list li:last-child {
  border-right: 0;
}

.bf-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #fff;
}

.bf-ico .ico {
  width: 26px;
  height: 26px;
}

.benefits-list strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crema);
}

/* ---------- Servicios (ajustes) ---------- */
.home .service-icon {
  background: rgba(168, 116, 31, 0.1);
  color: var(--gold);
}

.home .card-link {
  color: var(--gold-deep);
}

/* ---------- Carruseles de fotos ---------- */
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.showcase-head h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.showcase-head .section-sub {
  max-width: 58ch;
  margin: 0;
}

.cr-controls {
  display: flex;
  gap: 10px;
  flex: none;
}

.cr-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--espresso);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.cr-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(168, 116, 31, 0.08);
}

.cr-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.cr-prev .ico {
  transform: rotate(180deg);
}

.cr-btn .ico {
  width: 20px;
  height: 20px;
}

.cr-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 18px) / 4);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.cr-track::-webkit-scrollbar {
  display: none;
}

.cr-card {
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cr-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cr-card .g-open:hover img,
.cr-card .g-open:focus-visible img {
  transform: scale(1.05);
}

.cr-card figcaption {
  padding: 13px 15px 15px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--coffee);
}

.showcase-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ---------- Marcas ---------- */
.brands {
  padding: clamp(64px, 8vw, 100px) 0;
  overflow: hidden;
}

.brands-row {
  overflow: hidden;
  padding: 7px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: brands-scroll 38s linear infinite;
}

.brands-row.is-reverse .brands-track {
  animation-direction: reverse;
}

.brands-track span {
  padding: 16px 28px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--coffee);
  white-space: nowrap;
}

@keyframes brands-scroll {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

/* ---------- Pie de página ---------- */
.hf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.1fr);
  gap: 36px;
  padding-bottom: 44px;
}

.hf-brand p {
  max-width: 36ch;
  font-size: 0.86rem;
  line-height: 1.7;
}

.home .footer-logo img {
  height: 110px;
}

.footer-social a svg {
  width: 19px;
  height: 19px;
}

.hf-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(243, 227, 206, 0.05);
  border: 1px solid rgba(243, 227, 206, 0.1);
}

.hf-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
}

.hf-contact h4 {
  margin: 4px 0 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--crema);
}

.hf-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: rgba(243, 227, 206, 0.78);
  transition: color 0.2s;
  word-break: break-word;
}

.hf-contact a strong {
  font-weight: 500;
}

.hf-contact a:hover {
  color: #fff;
}

.hf-contact .ico {
  width: 17px;
  height: 17px;
  color: var(--gold-soft);
}

.hf-contact .hf-wa,
.hf-contact .hf-wa .ico {
  color: #7ee2a8;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .header-contact {
    display: none;
  }
}

@media (max-width: 1080px) {
  .cr-track {
    grid-auto-columns: calc((100% - 2 * 18px) / 3);
  }

  .benefits-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits-list li {
    border-bottom: 1px solid rgba(243, 227, 206, 0.1);
  }

  .hf-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .hf-contact {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
  }

  .hf-contact h4 {
    margin: 0;
  }
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .home .header-inner {
    min-height: var(--header-h);
  }

  .brand-logo img {
    width: 50px;
    height: 50px;
  }

  .home .nav .nav-cta {
    display: block;
  }

  .hs-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 44px 80px;
  }

  .hs-photo {
    display: none;
  }

  .hs-slide::after {
    background: linear-gradient(180deg, rgba(26, 15, 9, 0.6), rgba(26, 15, 9, 0.85));
  }

  .hs-bg {
    filter: blur(2px) brightness(0.55);
  }

  .hs-arrow {
    display: none;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-cta {
    max-width: 480px;
  }

  .hf-grid .hf-brand {
    grid-column: 1 / -1;
  }

  .hf-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .home .header-actions .btn-wa span {
    display: none;
  }

  .home .header-actions .btn-wa {
    padding: 0.7em;
  }

  .brand-logo img {
    width: 44px;
    height: 44px;
  }

  .home .brand-text strong {
    font-size: 1.1rem;
  }

  .hs-title {
    font-size: 2rem;
  }

  .hs-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .benefits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-list li:last-child {
    grid-column: 1 / -1;
  }

  .benefits-list li {
    padding: 22px 10px;
  }

  .showcase-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cr-controls {
    display: none;
  }

  .cr-track {
    grid-auto-columns: 72%;
    gap: 12px;
    margin-inline: -18px;
    padding-inline: 18px;
    scroll-padding-inline: 18px;
  }

  .brands-track span {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hf-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .brands-track span[aria-hidden="true"] {
    display: none;
  }

  .hs-slide {
    transition: none;
  }
}

.hf-brand .footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Páginas de ciudad ---------- */
.home .breadcrumbs {
  padding-block: 14px;
}

.home .city-hero.has-photo {
  margin-bottom: 0;
  padding: clamp(48px, 6vw, 76px) 0;
  background: #1a0f09;
  color: #fff;
  overflow: hidden;
}

.home .city-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(26, 15, 9, 0.94) 0%, rgba(26, 15, 9, 0.78) 55%, rgba(26, 15, 9, 0.55) 100%);
}

.home .city-hero.has-photo .hs-bg {
  z-index: 0;
  filter: blur(6px) brightness(0.6);
}

.home .city-hero.has-photo .city-hero-grid {
  z-index: 2;
}

.home .city-hero.has-photo .eyebrow {
  color: var(--gold-soft);
}

.home .city-hero.has-photo h1 {
  font-weight: 800;
  color: #fff;
}

.home .city-hero.has-photo .lead {
  color: rgba(255, 255, 255, 0.8);
}

.home .city-hero.has-photo .city-trust span {
  background: rgba(226, 184, 102, 0.12);
  border-color: rgba(226, 184, 102, 0.35);
  color: #f3e3ce;
}

.home .city-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home .local-card {
  color: var(--ink);
  border-top: 4px solid var(--gold);
}

.home .city-hero + .benefits {
  padding-top: 0;
  margin-top: -1px;
}

.home .city-hero + .benefits .benefits-list {
  border-radius: 0 0 var(--radius) var(--radius);
}

.home .city-service a,
.home .local-list li strong {
  color: var(--gold-deep);
}

.home .city-service:hover {
  border-color: rgba(168, 116, 31, 0.4);
}

@media (max-width: 720px) {
  .home .city-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.home .city-hero + .benefits {
  padding-bottom: 0;
}

/* ---------- Renta para eventos ---------- */
.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.events-photos {
  position: relative;
  min-height: 460px;
}

.events-photos img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
}

.ev-a {
  top: 0;
  left: 0;
  width: 66%;
  height: 82%;
}

.ev-b {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 70%;
}

.events-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.events-copy > p {
  color: var(--coffee-soft);
}

.kit {
  margin: 22px 0 6px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
}

.kit-title {
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.kit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kit-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kit-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #fff;
}

.kit-ico .ico {
  width: 22px;
  height: 22px;
}

.kit-list strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--espresso);
  line-height: 1.25;
}

.kit-list small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 980px) {
  .events-grid {
    grid-template-columns: 1fr;
  }

  .events-photos {
    min-height: 380px;
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .events-photos {
    min-height: 300px;
  }

  .kit-list {
    grid-template-columns: 1fr;
  }

  .kit-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .kit-ico {
    grid-row: span 2;
    margin: 0;
  }

  .events-copy .btn {
    width: 100%;
    justify-content: center;
  }
}

.faq-list details p:not(:last-child) {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.faq-list details p strong {
  color: var(--espresso);
}
