:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --ink: #000000;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 10px 30px -14px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Inline icon sizing — Lucide SVGs use stroke="currentColor" so color
   is controlled entirely via the parent's `color` property. */
.icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

/* ==========================================================
   Gateway (home) — full-screen service selector, no chrome
   ========================================================== */

body.gateway {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(207, 158, 0, 0.25), transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(250, 172, 247, 0.22), transparent 45%),
    radial-gradient(circle at 50% 92%, rgba(110, 61, 189, 0.35), transparent 48%),
    #000000;
  color: #f6f4fa;
  display: flex;
}

.gateway__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  gap: 56px;
}

.gateway__intro {
  text-align: center;
  max-width: 520px;
}

.gateway__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 244, 250, 0.6);
  margin-bottom: 18px;
}

.gateway__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 12px;
  line-height: 1.1;
}

.gateway__subtitle {
  color: rgba(246, 244, 250, 0.65);
  font-size: 1.05rem;
  margin: 0;
}

.gateway__grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gateway__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-height: 240px;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.75);
}

.gateway__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.16), transparent 55%);
  z-index: -1;
}

.gateway__tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px -20px rgba(0, 0, 0, 0.8);
}

.gateway__tile--glowly {
  background: linear-gradient(150deg, #faacf7, #c387ff 55%, #6e3dbd);
}

.gateway__tile--ugc {
  background: linear-gradient(150deg, #cf9e00, #1a1400 78%);
}

.gateway__tile--encomiendas {
  background: linear-gradient(150deg, #9a6bf0, #000000 80%);
}

.gateway__tile-watermark {
  position: absolute;
  right: -18px;
  bottom: -24px;
  opacity: 0.14;
  transform: rotate(-8deg);
  z-index: -1;
  pointer-events: none;
}

.gateway__tile-watermark svg {
  width: 150px;
  height: 150px;
  stroke-width: 1;
}

.gateway__tile-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.gateway__tile-icon svg {
  width: 26px;
  height: 26px;
}

.gateway__tile-body {
  flex-grow: 1;
}

.gateway__tile-body h2 {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.gateway__tile-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.4;
}

.gateway__tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.gateway__tile-arrow {
  transition: transform 0.25s ease;
}

.gateway__tile:hover .gateway__tile-arrow {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .gateway__main {
    padding: 48px 20px;
    gap: 40px;
  }

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

  .gateway__tile {
    min-height: 200px;
  }
}

@media (max-width: 400px) {
  .gateway__main {
    padding: 36px 16px;
  }
}

/* ==========================================================
   Shared buttons
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* ==========================================================
   Service pages (Glowly Essence / UGC / Encomiendas)
   Palette: #000000 · #cf9e00 · #c387ff · #faacf7 · #6e3dbd
   ========================================================== */

body[data-theme] {
  background: var(--theme-bg);
  color: var(--theme-text);
}

body[data-theme="glowly"] {
  --theme-bg: #fdf6ff;
  --theme-surface: #ffffff;
  --theme-primary: #c387ff;
  --theme-primary-2: #faacf7;
  --theme-primary-dark: #6e3dbd;
  --theme-text: #241536;
  --theme-muted: #7a6a8c;
  --theme-tint: #f1e2ff;
  --theme-btn-bg: #6e3dbd;
  --theme-btn-bg-hover: #5a2fa0;
  --theme-btn-text: #ffffff;
}

body[data-theme="ugc"] {
  --theme-bg: #fbf6e8;
  --theme-surface: #ffffff;
  --theme-primary: #cf9e00;
  --theme-primary-2: #e8bb2e;
  --theme-primary-dark: #1a1400;
  --theme-text: #201a05;
  --theme-muted: #726847;
  --theme-tint: #f2e3ae;
  --theme-btn-bg: #cf9e00;
  --theme-btn-bg-hover: #b78c00;
  --theme-btn-text: #1a1400;
}

body[data-theme="encomiendas"] {
  --theme-bg: #f6f2fc;
  --theme-surface: #ffffff;
  --theme-primary: #6e3dbd;
  --theme-primary-2: #9a6bf0;
  --theme-primary-dark: #000000;
  --theme-text: #1c1128;
  --theme-muted: #6f6480;
  --theme-tint: #e6d9f7;
  --theme-btn-bg: #6e3dbd;
  --theme-btn-bg-hover: #000000;
  --theme-btn-text: #ffffff;
}

/* Site header (real header on every service page) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #f4f2f8;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.site-header__back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.site-header__brand:hover .site-header__back svg {
  transform: translateX(-3px);
}

.site-header__nav {
  display: flex;
  gap: 28px;
}

.site-header__nav a {
  color: rgba(244, 242, 248, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header__nav a:hover {
  color: #fff;
}

.site-header__nav a.is-active {
  color: #fff;
  border-bottom-color: var(--theme-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__cta {
  background: var(--theme-btn-bg);
  color: var(--theme-btn-text);
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-header__cta:hover {
  background: var(--theme-btn-bg-hover);
  transform: translateY(-2px);
}

/* Mobile nav: pure-CSS checkbox toggle, no JS needed. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.nav-toggle-icon-close {
  display: none;
}

.nav-toggle:checked ~ .site-header__actions .nav-toggle-icon-open {
  display: none;
}

.nav-toggle:checked ~ .site-header__actions .nav-toggle-icon-close {
  display: block;
}

@media (max-width: 720px) {
  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 16px 24px -12px rgba(0, 0, 0, 0.5);
  }

  .nav-toggle:checked ~ .site-header__nav {
    max-height: 260px;
  }

  .site-header__nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header__nav a.is-active {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-toggle-btn {
    display: inline-flex;
  }
}

@media (max-width: 400px) {
  .site-header__inner {
    padding: 14px 16px;
    gap: 12px;
  }

  .site-header__brand {
    font-size: 1rem;
  }

  .site-header__cta {
    padding: 9px 16px;
    font-size: 0.8rem;
  }
}

.theme-btn {
  background: var(--theme-btn-bg);
  color: var(--theme-btn-text);
}

.theme-btn:hover {
  background: var(--theme-btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.service-hero {
  padding: 56px 24px 72px;
}

@media (max-width: 480px) {
  .service-hero {
    padding: 32px 18px 48px;
  }
}

.service-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.service-hero__eyebrow {
  display: inline-block;
  background: var(--theme-tint);
  color: var(--theme-primary-dark);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.service-hero__title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 16px;
}

.service-hero__title em {
  font-style: italic;
  color: var(--theme-primary-dark);
}

.service-hero__subtitle {
  color: var(--theme-muted);
  font-size: 1.1rem;
  max-width: 460px;
  margin-bottom: 32px;
}

.service-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-hero__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--theme-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-hero__location svg {
  width: 16px;
  height: 16px;
}

.service-hero__visual {
  position: relative;
}

.service-hero__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius) var(--radius) 40% var(--radius);
  background: linear-gradient(155deg, var(--theme-primary), var(--theme-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.service-hero__image svg {
  width: 30%;
  height: 30%;
  stroke-width: 1.4;
}

.floating-card {
  position: absolute;
  bottom: -28px;
  right: -20px;
  max-width: 260px;
  background: var(--theme-primary-dark);
  color: #fff;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.4;
  box-shadow: var(--shadow);
}

.floating-card em {
  font-style: italic;
  opacity: 0.75;
}

.floating-card--tag {
  background: var(--theme-surface);
  color: var(--theme-text);
  border: 1px solid var(--theme-tint);
  bottom: auto;
  top: -20px;
  left: -20px;
  right: auto;
}

@media (max-width: 760px) {
  .service-hero__inner {
    grid-template-columns: 1fr;
  }

  .service-hero__visual {
    order: -1;
    margin-bottom: 40px;
  }

  .service-hero__image {
    aspect-ratio: 3 / 4;
    max-height: 420px;
  }

  .floating-card {
    right: 12px;
    bottom: -20px;
    max-width: calc(100% - 24px);
    padding: 16px 18px;
    font-size: 0.88rem;
  }

  .floating-card--tag {
    left: 12px;
    right: auto;
    top: auto;
    bottom: -20px;
  }
}

@media (max-width: 400px) {
  .service-hero__image {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

/* Feature list */

.feature-list {
  padding: 16px 24px 56px;
}

.feature-list h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 36px;
}

.feature-list__grid {
  display: grid;
  gap: 18px;
}

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

.feature-list__grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .feature-list__grid--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-list__grid--cols-2,
  .feature-list__grid--cols-3 {
    grid-template-columns: 1fr;
  }
}

.feature-list__item {
  background: var(--theme-surface);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-list__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--theme-tint);
  color: var(--theme-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list__icon svg {
  width: 22px;
  height: 22px;
}

.feature-list__item h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.feature-list__item p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Testimonials */

.testimonials {
  padding: 16px 24px 56px;
}

.testimonials h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 36px;
}

.testimonials__hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -20px 0 20px;
  color: var(--theme-muted);
  font-size: 0.82rem;
}

.testimonials__hint svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 860px) {
  .testimonials__hint {
    display: flex;
  }
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  gap: 18px;
}

@media (max-width: 860px) {
  .testimonials__grid {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 4px 9% 12px;
    scroll-padding-inline: 9%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .testimonials__grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
}

@media (max-width: 480px) {
  .testimonials__grid {
    padding-inline: 6%;
    scroll-padding-inline: 6%;
  }

  .testimonial-card {
    flex-basis: 88%;
  }
}

.testimonial-card {
  background: var(--theme-surface);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: var(--theme-primary-dark);
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--theme-text);
  margin: 0;
  flex-grow: 1;
}

.testimonial-card__author {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--theme-muted);
}

/* CTA bar */

.cta-bar {
  margin: 0 24px 48px;
  max-width: 1080px;
  margin-inline: auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

@media (max-width: 480px) {
  .cta-bar {
    margin: 0 18px 40px;
    padding: 22px 20px;
    border-radius: var(--radius-sm);
  }
}

.cta-bar__whatsapp {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-bar__whatsapp-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-bar__whatsapp-icon svg {
  width: 22px;
  height: 22px;
}

.cta-bar__number {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  color: #fff;
  text-decoration: none;
}

.cta-bar__label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Trust row */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 0 24px 48px;
  text-align: center;
}

.trust-row__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--theme-muted);
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 140px;
}

.trust-row__icon {
  color: var(--theme-primary-dark);
  margin-bottom: 8px;
}

.trust-row__icon svg {
  width: 24px;
  height: 24px;
}

/* Banner strip */

.banner-strip {
  background: var(--theme-surface);
  border-top: 1px solid var(--theme-tint);
  text-align: center;
  padding: 28px 24px;
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-strip .icon {
  color: var(--theme-primary-dark);
}

.banner-strip .icon svg {
  width: 20px;
  height: 20px;
}

.banner-strip strong {
  color: var(--theme-primary-dark);
}

/* Site footer */

.site-footer {
  background: var(--ink);
  color: rgba(244, 242, 248, 0.75);
  padding-top: 48px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__logo {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.site-footer__brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 320px;
}

.site-footer__col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.site-footer__col a,
.site-footer__col span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 242, 248, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.site-footer__col a:hover {
  color: var(--theme-primary);
}

.site-footer__col svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  font-size: 0.8rem;
}

.site-footer__bottom a {
  color: rgba(244, 242, 248, 0.75);
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Floating WhatsApp button */

.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  z-index: 30;
  transition: transform 0.2s ease;
}

.wa-fab svg {
  width: 26px;
  height: 26px;
}

.wa-fab:hover {
  transform: scale(1.08);
}
