/* Background responsive */
.gcg-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.82)),
    url("/assets/bg/gcg-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

.gcg-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 168, 216, 0.07), transparent 30%),
    radial-gradient(circle at 86% 26%, rgba(242, 118, 25, 0.05), transparent 26%),
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.12));
}

/* Header fijo */
.gcg-header {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3200;
  width: min(var(--gcg-container), calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--gcg-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--gcg-shadow);
}

.gcg-app {
  position: relative;
  z-index: 1;
  width: min(var(--gcg-container), calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    116px
    max(16px, var(--gcg-safe-right))
    max(118px, var(--gcg-safe-bottom))
    max(16px, var(--gcg-safe-left));
}

.gcg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.gcg-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.gcg-brand strong {
  display: block;
  color: var(--gcg-navy);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gcg-brand span {
  display: block;
  color: var(--gcg-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gcg-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.gcg-nav-link {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gcg-navy);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(6, 50, 71, 0.08);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--gcg-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.gcg-nav-link:hover {
  transform: translateY(-2px);
}

.gcg-nav-chat {
  color: white;
  background: linear-gradient(135deg, var(--gcg-navy), var(--gcg-blue));
}

.gcg-global-menu {
  position: relative;
}

.gcg-global-toggle img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.gcg-global-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3400;
  min-width: 178px;
  padding: 8px;
  border: 1px solid var(--gcg-border);
  border-radius: 18px;
  display: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--gcg-shadow);
}

.gcg-global-menu.is-open .gcg-global-dropdown {
  display: grid;
  gap: 6px;
}

.gcg-global-dropdown a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--gcg-navy);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.gcg-global-dropdown a:hover {
  color: white;
  background: linear-gradient(135deg, var(--gcg-navy), var(--gcg-blue));
}

.gcg-hero {
  min-height: calc(100dvh - 116px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 52px 0 64px;
}

.gcg-hero-inner {
  max-width: 940px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--gcg-border);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--gcg-shadow-strong);
}

.gcg-kicker {
  color: var(--gcg-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gcg-hero h1 {
  margin-top: 14px;
  color: var(--gcg-navy);
  font-size: clamp(2.35rem, 6vw, 5.55rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.gcg-hero p {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--gcg-muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.gcg-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gcg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: var(--gcg-transition);
}

.gcg-btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--gcg-navy), var(--gcg-blue));
  box-shadow: 0 16px 34px rgba(6, 50, 71, 0.2);
}

.gcg-btn-secondary {
  color: var(--gcg-navy);
  border: 1px solid var(--gcg-border);
  background: rgba(255, 255, 255, 0.84);
}

.gcg-btn-ghost {
  color: var(--gcg-navy);
  background: transparent;
  border: 1px solid rgba(6, 50, 71, 0.12);
}

.gcg-btn:hover {
  transform: translateY(-2px);
}

.gcg-section {
  padding: 60px 0;
  scroll-margin-top: 130px;
}

.gcg-section-heading {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.gcg-section-heading h2,
.gcg-chat-entry h2,
.gcg-final-cta h2,
.gcg-service-note h2 {
  margin-top: 12px;
  color: var(--gcg-navy);
  font-size: clamp(2rem, 4vw, 3.85rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.gcg-section-heading p,
.gcg-chat-entry p,
.gcg-final-cta p,
.gcg-service-note p {
  margin-top: 16px;
  color: var(--gcg-muted);
  line-height: 1.7;
}

.gcg-chat-entry,
.gcg-query-card,
.gcg-service-card,
.gcg-service-note,
.gcg-final-cta {
  border: 1px solid var(--gcg-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--gcg-shadow);
}

.gcg-chat-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 34px;
}

.gcg-query-grid,
.gcg-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gcg-query-card,
.gcg-service-card {
  min-height: 218px;
  padding: 22px;
  border-radius: 28px;
  transition: var(--gcg-transition);
}

.gcg-query-card:hover,
.gcg-service-card:hover {
  transform: translateY(-5px);
}

.gcg-query-card span,
.gcg-service-card span {
  display: inline-flex;
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  white-space: nowrap;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--gcg-blue);
  background: rgba(11, 95, 199, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gcg-query-card h3,
.gcg-service-card h3 {
  color: var(--gcg-navy);
  font-size: 1.22rem;
  line-height: 1.12;
}

.gcg-query-card p,
.gcg-service-card p {
  margin-top: 12px;
  color: var(--gcg-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* Tarjeta combinada de servicios */
.gcg-service-card-combo {
  display: flex;
  flex-direction: column;
}

.gcg-service-card-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.gcg-service-card-points div {
  padding: 12px 14px;
  border: 1px solid rgba(6, 50, 71, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.gcg-service-card-points strong {
  display: block;
  color: var(--gcg-navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.gcg-service-card-points small {
  display: block;
  margin-top: 6px;
  color: var(--gcg-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Slider de asistentes */
.gcg-logo-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gcg-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--gcg-shadow);
}

.gcg-logo-slider::before,
.gcg-logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
}

.gcg-logo-slider::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0));
}

.gcg-logo-slider::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,0.96), rgba(255,255,255,0));
}

.gcg-logo-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  padding: 18px;
  animation: gcgLogoRail 36s linear infinite;
}

.gcg-logo-track:hover {
  animation-play-state: paused;
}

.gcg-logo-track a {
  min-width: 330px;
  height: 160px;
  padding: 10px 12px;
  border: 1px solid rgba(6, 50, 71, 0.1);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  text-decoration: none;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 8px;
  transition: var(--gcg-transition);
}

.gcg-logo-track a:hover {
  transform: translateY(-4px);
}

.gcg-logo-track img {
  width: 100%;
  height: 108px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 1px solid rgba(6, 50, 71, 0.08);
}

.gcg-logo-track span {
  color: var(--gcg-navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

@keyframes gcgLogoRail {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.gcg-ai-disclaimer {
  max-width: 920px;
  margin: 14px auto 0;
  color: var(--gcg-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(6, 50, 71, 0.08);
  border-radius: 18px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gcg-service-note {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gcg-final-cta {
  margin: 54px 0;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 34px;
  text-align: center;
  scroll-margin-top: 130px;
}

.gcg-final-cta .gcg-btn {
  margin-top: 26px;
}

.gcg-mobile-dock {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 3100;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--gcg-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--gcg-shadow-strong);
}

.gcg-mobile-dock > a,
.gcg-mobile-dock > button,
.gcg-mobile-dock .gcg-global-toggle {
  min-height: 44px;
  border: none;
  border-radius: 16px;
  color: var(--gcg-navy);
  background: transparent;
  font-size: 0.64rem;
  font-weight: 900;
  text-decoration: none;
  display: grid;
  place-items: center;
  text-align: center;
}

.gcg-mobile-dock > button {
  color: white;
  background: linear-gradient(135deg, var(--gcg-navy), var(--gcg-cyan));
}

.gcg-global-menu-mobile {
  position: relative;
}

.gcg-global-menu-mobile .gcg-global-toggle {
  gap: 2px;
}

.gcg-global-menu-mobile .gcg-global-toggle img {
  width: 18px;
  height: 18px;
}

.gcg-global-menu-mobile .gcg-global-dropdown {
  top: auto;
  right: 0;
  bottom: calc(100% + 10px);
}

@media (min-width: 1600px) {
  .gcg-app,
  .gcg-header {
    width: min(var(--gcg-container-wide), calc(100% - 64px));
  }
}

@media (max-width: 1024px) {
  .gcg-nav {
    display: none;
  }

  .gcg-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

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

  .gcg-mobile-dock {
    display: grid;
  }
}

/* Background mobile */
@media (max-width: 768px) {
  .gcg-bg {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.78)),
      url("/assets/bg/gcg-bg-mobile.webp");
    background-size: cover;
    background-position: center;
  }

  .gcg-header {
    top: max(10px, env(safe-area-inset-top));
    width: min(100% - 20px, var(--gcg-container));
    border-radius: 24px;
  }

  .gcg-app {
    width: min(100% - 20px, var(--gcg-container));
    padding-top: 108px;
  }

  .gcg-brand img {
    width: 48px;
    height: 48px;
  }

  .gcg-hero {
    min-height: calc(100dvh - 108px);
    padding: 34px 0 42px;
  }

  .gcg-hero-inner {
    border-radius: 30px;
  }

  .gcg-query-grid,
  .gcg-service-grid,
  .gcg-chat-entry,
  .gcg-service-note {
    grid-template-columns: 1fr;
  }

  .gcg-chat-entry,
  .gcg-final-cta,
  .gcg-service-note {
    text-align: center;
  }

  .gcg-service-note {
    flex-direction: column;
  }

  .gcg-logo-track a {
    min-width: 286px;
    height: 146px;
  }

  .gcg-logo-track img {
    height: 96px;
  }
}

@media (max-width: 480px) {
  .gcg-brand strong {
    font-size: 0.9rem;
  }

  .gcg-brand span {
    font-size: 0.66rem;
  }

  .gcg-hero h1 {
    font-size: clamp(2.08rem, 12vw, 3.35rem);
  }

  .gcg-hero p {
    font-size: 0.96rem;
  }

  .gcg-actions {
    flex-direction: column;
  }

  .gcg-btn {
    width: 100%;
  }

  .gcg-mobile-dock {
    gap: 4px;
  }

  .gcg-mobile-dock > a,
  .gcg-mobile-dock > button,
  .gcg-mobile-dock .gcg-global-toggle {
    font-size: 0.58rem;
  }

  .gcg-logo-slider::before,
  .gcg-logo-slider::after {
    width: 36px;
  }

  .gcg-logo-track {
    gap: 12px;
    padding: 14px;
  }

  .gcg-logo-track a {
    min-width: 248px;
    height: 136px;
  }

  .gcg-logo-track img {
    height: 88px;
    border-radius: 15px;
  }
}

/* Ajuste de tarjetas de servicios */
.gcg-service-card > span {
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  white-space: nowrap;
}

.gcg-service-card-combo {
  display: flex;
  flex-direction: column;
}

.gcg-service-card-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.gcg-service-card-points div {
  padding: 12px 14px;
  border: 1px solid rgba(6, 50, 71, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.gcg-service-card-points strong {
  display: block;
  color: var(--gcg-navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.gcg-service-card-points small {
  display: block;
  margin-top: 6px;
  color: var(--gcg-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Nota horizontal de servicios */
.gcg-service-note {
  width: 100%;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;

  border: 1px solid var(--gcg-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--gcg-shadow);
}

.gcg-service-note p {
  margin: 0;
  max-width: 980px;
  color: var(--gcg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.gcg-service-note .gcg-btn {
  width: auto;
  min-width: 132px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .gcg-service-note {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gcg-service-note .gcg-btn {
    justify-self: center;
  }
}

/* Footer legal compacto del home */
.gcg-site-footer.gcg-site-footer-compact {
  width: fit-content;
  max-width: 100%;
  margin: 46px auto 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.4;
}

.gcg-site-footer.gcg-site-footer-compact p {
  margin: 0;
  color: var(--gcg-muted);
  font-weight: 800;
}

.gcg-site-footer.gcg-site-footer-compact nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
}

.gcg-site-footer.gcg-site-footer-compact a {
  color: var(--gcg-navy);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .gcg-site-footer.gcg-site-footer-compact {
    width: calc(100% - 18px);
    margin-bottom: 104px;
    border-radius: 18px;
  }
}

/* Corrección visual del footer legal compacto */
.gcg-site-footer.gcg-site-footer-compact {
  width: min(520px, calc(100% - 32px));
  margin: 46px auto 10px;
  padding: 12px 18px;
  border-radius: 999px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.gcg-site-footer.gcg-site-footer-compact p {
  width: 100%;
  margin: 0;
  text-align: center;
}

.gcg-site-footer.gcg-site-footer-compact nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin: 5px 0 0;
  text-align: center;
}

@media (max-width: 768px) {
  .gcg-site-footer.gcg-site-footer-compact {
    width: min(420px, calc(100% - 36px));
    margin: 42px auto 104px;
    border-radius: 20px;
  }
}

/* Botón instalar app dentro del footer compacto */
.gcg-site-footer.gcg-site-footer-compact .gcg-footer-install-link {
  appearance: none;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--gcg-navy);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gcg-site-footer.gcg-site-footer-compact .gcg-footer-install-link:hover {
  color: var(--gcg-blue);
}

.gcg-pwa-hint {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 6200;

  width: min(520px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid var(--gcg-border);
  border-radius: 22px;

  color: var(--gcg-navy);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--gcg-shadow-strong);

  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 768px) {
  .gcg-pwa-hint {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
}

/* Botón gestionar cookies dentro del footer compacto */
.gcg-site-footer.gcg-site-footer-compact .gcg-footer-cookie-link {
  appearance: none;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--gcg-navy);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gcg-site-footer.gcg-site-footer-compact .gcg-footer-cookie-link:hover {
  color: var(--gcg-blue);
}
