/* Variables globales y paleta de diseno */
:root {
  --gb-green: #43b749;
  --gb-green-hover: #379e3d;
  --gb-green-light: #eef7ee;
  --gb-green-subtle: rgba(67, 183, 73, 0.12);
  --gb-blue-corp: #1d3557;
  --gb-dark: #161a17;
  --gb-dark-soft: #232a24;
  --gb-gray-text: #59635b;
  --gb-gray-light: #eaefea;
  --gb-border: #dde4dd;
  --gb-bg: #e7f3e8;
  --gb-white: #ffffff;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reseteo general */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #ffffff;
  color: var(--gb-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Velo blanco: solo el globo, hasta que entra el hero */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.25s var(--ease-out-expo);
}

body.is-splash::before {
  opacity: 1;
  transition: none;
}

/* Barra de navegacion superior */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: rgba(236, 246, 237, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gb-border);
  z-index: 100;
  transition: transform 0.9s var(--ease-out-expo) 0.2s, opacity 0.9s var(--ease-out-expo) 0.2s;
}

/* Oculta la barra durante la pantalla de splash */
body.is-splash .site-header {
  opacity: 0;
  transform: translateY(-26px);
  pointer-events: none;
}

body.is-transitioning .site-header,
body.is-active .site-header {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Regreso desde ALI Events: el globo de entrada no se repite */
html.is-return body.is-splash::before {
  opacity: 0;
}

html.is-return body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(78, 211, 99, 0.42) 46%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(circle at 50% 42%, #ffffff 0%, #e8f6e9 48%, #9ed4a8 100%);
  background-size: 100% 240%, 100% 100%;
  background-position: center -130%, center;
  animation: gbReturnVeil 1.35s var(--ease-out-expo) 0.08s forwards;
}

@keyframes gbReturnVeil {
  0% { opacity: 1; background-position: center -130%, center; }
  42% { opacity: 1; background-position: center 40%, center; }
  100% { opacity: 0; background-position: center 160%, center; filter: blur(14px); }
}

@media (prefers-reduced-motion: reduce) {
  html.is-return body::after {
    display: none;
  }
}

/* Logotipo de la marca */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gb-dark);
  flex: 0 0 auto;
}

.brand-logo {
  height: 76px;
  width: auto;
  display: block;
}

/* Menu de navegacion principal en espanol */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gb-gray-text);
  transition: color 0.25s ease;
  position: relative;
  padding: 5px 0;
}

.nav-link:hover {
  color: var(--gb-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gb-green);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Boton de contacto en barra superior */
.btn-talk {
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gb-dark);
  color: var(--gb-white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid var(--gb-dark);
}

.btn-talk:hover {
  background: var(--gb-green);
  border-color: var(--gb-green);
  color: var(--gb-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(67, 183, 73, 0.3);
}

/* Boton hamburguesa para moviles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gb-dark);
  margin: 4px 0;
  transition: 0.3s;
}

/* Seccion Hero principal */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: 88vh;
  max-height: 740px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 48% 46% at 30% 46%, rgba(85, 192, 87, 0.34) 0%, rgba(85, 192, 87, 0) 70%),
    radial-gradient(ellipse 36% 32% at 76% 16%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, #6fbf78 0%, #a8d9ab 24%, #d7eed8 56%, #eef6ee 82%, #f7faf7 100%);
  overflow: hidden;
  margin-top: 92px;
}

/* Nubes */
.clouds-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.cloud {
  position: absolute;
  opacity: 0.96;
  filter: drop-shadow(0 16px 16px rgba(43, 68, 50, 0.2)) drop-shadow(0 2px 3px rgba(255, 255, 255, 0.9));
  animation: driftCloud linear infinite;
  will-change: transform;
}

.cloud svg {
  display: block;
}

.cloud-1 {
  top: 4%;
  width: 170px;
  animation-duration: 40s;
  animation-delay: 0s;
}

.cloud-2 {
  top: 13%;
  width: 230px;
  animation-duration: 52s;
  animation-delay: -15s;
}

.cloud-3 {
  top: 20%;
  width: 140px;
  opacity: 0.72;
  filter: blur(0.5px) drop-shadow(0 10px 14px rgba(43, 68, 50, 0.14));
  animation-duration: 36s;
  animation-delay: -24s;
}

/* Animacion de desplazamiento */
@keyframes driftCloud {
  0% {
    transform: translate3d(105vw, 0, 0);
  }
  100% {
    transform: translate3d(-340px, 0, 0);
  }
}

/* Resplandor de fondo */
.hero-bg-glow {
  position: absolute;
  top: 18%;
  left: 8%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(85, 192, 87, 0.38) 0%, rgba(85, 192, 87, 0) 68%);
  pointer-events: none;
  filter: blur(28px);
  z-index: 1;
}

/* Contenedor del lienzo 3D */
.balloon-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: auto;
  cursor: grab;
}

.balloon-stage:active {
  cursor: grabbing;
}

.balloon-canvas-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  touch-action: none;
}

.balloon-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Contenido del hero */
.hero-content {
  position: relative;
  margin-left: 45%;
  width: 55%;
  height: 100%;
  padding: 40px 48px 40px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.45s ease 0.08s, transform 1.15s var(--ease-out-expo) 0.08s;
}

body.is-splash .hero-content {
  opacity: 0;
  transform: translateX(22px);
  pointer-events: none;
}

body.is-transitioning .hero-content,
body.is-active .hero-content {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-inner {
  max-width: 520px;
}

.hero-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gb-green-hover);
  background: var(--gb-green-light);
  border: 1px solid rgba(67, 183, 73, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--gb-dark);
  margin-bottom: 14px;
}

.write-line {
  display: block;
  position: relative;
}

.write-line-accent {
  color: var(--gb-green);
  width: fit-content;
  max-width: 100%;
  padding-bottom: 6px;
}

.write-line-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gb-green) 0%, rgba(67, 183, 73, 0.15) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

.write-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(6px);
}

body.is-transitioning .write-char,
body.is-active .write-char {
  animation: inkChar 0.5s var(--ease-out-expo) forwards;
  animation-delay: var(--d, 0s);
}

body.is-transitioning .write-line-accent::after,
body.is-active .write-line-accent::after {
  animation: drawRule 0.85s var(--ease-out-expo) forwards;
  animation-delay: var(--rule-delay, 1.4s);
}

.reveal-late {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
}

body.is-transitioning .reveal-late,
body.is-active .reveal-late {
  animation: riseIn 0.85s var(--ease-out-expo) forwards;
  animation-delay: var(--d, 0.2s);
}

@keyframes inkChar {
  0% {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(6px);
  }
  55% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes drawRule {
  to { transform: scaleX(1); }
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--gb-gray-text);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gb-green);
  color: var(--gb-white);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(67, 183, 73, 0.32);
  border: 1px solid var(--gb-green);
}

.btn-primary:hover {
  background: var(--gb-green-hover);
  border-color: var(--gb-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(67, 183, 73, 0.4);
}

.btn-primary svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--gb-white);
  color: var(--gb-dark);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none;
  border: 1px solid var(--gb-border);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--gb-green-light);
  border-color: var(--gb-green);
  color: var(--gb-green-hover);
  transform: translateY(-2px);
}

.hero-index {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--gb-border);
  flex-wrap: wrap;
}

.index-item {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gb-gray-text);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gb-border);
}

.index-item .num {
  font-weight: 700;
  color: var(--gb-green);
  font-size: 10.5px;
}

@media (prefers-reduced-motion: reduce) {
  .write-char,
  .reveal-late,
  .write-line-accent::after {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  body::before {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .cap-card,
  .globi-face,
  .globi-bubble {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Reglas adaptativas para pantallas medianas y moviles */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 20px;
  }
  .main-nav {
    gap: 14px;
  }
  .hero-content {
    margin-left: 42%;
    width: 58%;
    padding: 30px 24px 30px 10px;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 76px;
    padding: 0 16px;
  }

  .brand-logo {
    height: 62px;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--gb-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--gb-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section {
    flex-direction: column;
    height: auto;
    min-height: auto;
    margin-top: 76px;
    padding-bottom: 40px;
  }

  .balloon-stage {
    position: relative;
    width: 100%;
    height: 38vh;
    min-height: 280px;
  }

  .hero-content {
    margin-left: 0;
    width: 100%;
    height: auto;
    padding: 16px 20px 20px 20px;
    pointer-events: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
  }
}

/* Capacidades */
.capabilities {
  scroll-margin-top: 108px;
  background:
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(85, 192, 87, 0.14), transparent 70%),
    #f3f7f2;
  padding: 88px 28px 72px;
  color: #1c2b22;
}

.cap-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.cap-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #2f9a45;
  margin-bottom: 14px;
}

.cap-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 560;
  letter-spacing: -1px;
  line-height: 1.05;
  color: #1b2a22;
}

.cap-lead {
  margin-top: 14px;
  font-size: 18px;
  color: #7b877e;
}

.cap-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 26px 22px 22px;
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(40, 60, 45, 0.05);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  transition-delay: calc(var(--i) * 80ms), calc(var(--i) * 80ms), 0s, 0s;
}

.capabilities.is-inview .cap-card {
  opacity: 1;
  transform: translateY(0);
}

.capabilities.is-inview .cap-card.is-active {
  transform: translateY(-16px);
  border-color: #3dae49;
  box-shadow: 0 22px 44px rgba(61, 174, 73, 0.16);
}

.cap-card:focus-visible {
  outline: 2px solid #3dae49;
  outline-offset: 3px;
}

.cap-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef8ef;
  color: #3a9d45;
  margin-bottom: 28px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.45s var(--ease-out-expo);
}

.cap-icon svg {
  width: 26px;
  height: 26px;
}

.capabilities.is-inview .cap-card[data-cap="brand"] .cap-icon svg {
  animation: capRings 4.2s ease-in-out infinite;
}

.capabilities.is-inview .cap-card[data-cap="content"] .cap-icon svg {
  animation: capPlay 2.1s ease-in-out infinite;
}

.capabilities.is-inview .cap-card[data-cap="marketing"] .cap-icon svg {
  animation: capBars 1.6s ease-in-out infinite;
}

.capabilities.is-inview .cap-card[data-cap="experience"] .cap-icon svg {
  animation: capStar 2.6s ease-in-out infinite;
}

.capabilities.is-inview .cap-card[data-cap="talent"] .cap-icon svg {
  animation: capPerson 2.8s ease-in-out infinite;
}

.cap-card.is-spoken .cap-icon {
  animation: capIconPop 0.55s var(--ease-out-expo);
}

.cap-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 16px 18px 18px;
  background: #173026;
  color: #f3faf4;
  font-size: 14.5px;
  line-height: 1.4;
  transform: translateY(110%);
  transition: transform 0.55s var(--ease-out-expo);
}

.cap-note::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #55c057;
  margin-bottom: 10px;
}

.cap-card.is-spoken .cap-note {
  transform: translateY(0);
}

@keyframes capRings {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}

@keyframes capPlay {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.14); }
}

@keyframes capBars {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes capStar {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(16deg) scale(1.1); }
}

@keyframes capPerson {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes capIconPop {
  0% { transform: scale(0.82); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.cap-card.is-active .cap-icon {
  background: #3dae49;
  color: #fff;
  transform: scale(1.06);
}

.cap-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #3a9d45;
  margin-bottom: 10px;
}

.cap-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #1b2a22;
  margin-bottom: 12px;
}

.cap-copy {
  font-size: 14.5px;
  line-height: 1.45;
  color: #8b958e;
}

.cap-more {
  margin-top: auto;
  padding-top: 28px;
  border: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #243028;
  cursor: pointer;
}

.cap-more:hover {
  color: #2f9a45;
}

.cap-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding: 0 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid transparent;
  transition: max-height 0.55s var(--ease-out-expo), opacity 0.4s ease, margin-top 0.45s ease, padding 0.45s ease;
}

.cap-detail.is-open {
  max-height: 160px;
  opacity: 1;
  margin-top: 18px;
  padding: 18px 22px;
  border-color: rgba(61, 174, 73, 0.28);
}

.cap-detail-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #2f9a45;
  margin-bottom: 6px;
}

.cap-detail-copy {
  font-size: 15px;
  line-height: 1.5;
  color: #3d4a42;
  max-width: 760px;
}

.cap-footer {
  margin-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.cap-explore {
  border: 0;
  cursor: pointer;
  background: #1c2b24;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out-expo), background 0.25s ease;
}

.cap-explore:hover {
  background: #2f9a45;
  transform: translateY(-2px);
}

.cap-explore:disabled {
  cursor: progress;
  background: #3d4f45;
}

.globi {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  z-index: 999;
  pointer-events: auto;
  transform: translate3d(calc(var(--walk-x, 0px) + var(--scroll-drift, 0px)), 0, 0) rotate(var(--scroll-tilt, 0deg));
  transition: opacity 0.5s ease;
  will-change: transform;
}

.globi.is-walking {
  transition: none !important;
}

.globi.is-flipped {
  flex-direction: row-reverse;
}

.globi.is-flipped .globi-bubble::after {
  right: auto;
  left: -7px;
  border-right: none;
  border-top: none;
  border-left: 1px solid rgba(85, 192, 87, 0.18);
  border-bottom: 1px solid rgba(85, 192, 87, 0.18);
}

body.is-splash .globi {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 30px, 0) scale(0.85);
}

body.is-transitioning .globi,
body.is-active .globi {
  opacity: 1;
  pointer-events: auto;
}

.globi-bubble {
  width: min(300px, 55vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow: 0 16px 36px rgba(25, 45, 30, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(85, 192, 87, 0.18);
  transform-origin: 95% 90%;
  position: relative;
}

.globi-bubble::after {
  content: '';
  position: absolute;
  right: -7px;
  bottom: 24px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 1px solid rgba(85, 192, 87, 0.18);
  border-top: 1px solid rgba(85, 192, 87, 0.18);
  transform: rotate(45deg);
}

.globi-bubble.is-pop {
  animation: globiPop 0.45s var(--ease-out-expo);
}

.globi.is-hidden .globi-bubble {
  display: none;
}

.globi-name {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2f9a45;
  margin-bottom: 6px;
  cursor: pointer;
}

.globi-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #334238;
}

.globi-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f4f0;
}

.globi-actions button {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #7a887e;
  cursor: pointer;
  transition: color 0.2s ease;
}

.globi-actions button:hover {
  color: #2f9a45;
}

.globi-face {
  position: relative;
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  animation: globiAeroFloat 4.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 22px rgba(47, 154, 69, 0.28));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.globi-face:hover {
  transform: scale(1.08) translateY(-4px);
}

.globi-face:active {
  transform: scale(0.95);
}

.globi-face::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  background: #3dae49;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 4;
}

.globi-stripes {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.globi-stripes i {
  display: block;
  width: 9px;
  height: 28px;
  border-radius: 0 0 8px 8px;
  background: #55c057;
}

.globi-stripes i:nth-child(2) {
  height: 34px;
  margin-top: -6px;
}

.globi-eyes {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.globi-eyes i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #243028;
  transform: translate(var(--look-x, 0), var(--look-y, 0));
}

.globi-smile {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 14px;
  height: 7px;
  margin-left: -7px;
  border-bottom: 2px solid #243028;
  border-radius: 0 0 10px 10px;
}

@keyframes globiPop {
  0% { transform: translateY(8px) scale(0.96); }
  100% { transform: none; }
}

@keyframes globiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 1100px) {
  .cap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cap-card {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .capabilities {
    padding: 64px 16px 48px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap-card {
    min-height: 0;
  }

  .capabilities.is-inview .cap-card.is-active {
    transform: none;
  }

  .cap-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .globi {
    justify-content: flex-end;
  }

  .globi-bubble {
    width: min(280px, 70vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cap-card {
    opacity: 1;
    transform: none;
  }

  .capabilities.is-inview .cap-card.is-active {
    transform: none;
  }

  .globi-face,
  .globi-bubble,
  .cap-icon,
  .cap-icon svg {
    animation: none;
  }

  .cap-note {
    transition: none;
  }

  .guide-card,
  .guide-overlay {
    animation: none;
  }
}

.globi-face.is-logo,
.globi-face.is-avatar {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.globi-face.is-logo {
  animation: none;
}

.globi-face.is-logo img { width: 72px; height: 72px; object-fit: contain; display: block; }

.globi-face.is-avatar .guide-svg {
  width: 74px;
  height: 86px;
  display: block;
}

.guide-pupil {
  transform: translate(var(--look-x, 0px), var(--look-y, 0px));
}

.globi-name {
  cursor: pointer;
}

body.guide-open {
  overflow: hidden;
}

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(ellipse 42% 36% at 50% 42%, rgba(85, 192, 87, 0.16), transparent 68%),
    radial-gradient(ellipse 40% 30% at 12% 18%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(ellipse 30% 24% at 88% 12%, rgba(232, 244, 234, 0.9), transparent 70%),
    linear-gradient(180deg, #f7f8f6 0%, #f3f7f2 100%);
  overflow: auto;
}

.guide-overlay[hidden] {
  display: none;
}

.guide-overlay.is-in {
  animation: guideVeil 0.55s var(--ease-out-expo);
}

.guide-overlay.is-out {
  animation: guideVeilOut 0.5s ease forwards;
  pointer-events: none;
}

.guide-panel {
  width: min(980px, 100%);
  text-align: center;
  color: #1b2a22;
}

.guide-overlay.is-in .guide-panel {
  animation: guidePanel 0.75s var(--ease-out-expo);
}

.guide-overlay.is-out .guide-panel {
  animation: guidePanelOut 0.45s ease forwards;
}

.guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.guide-brand {
  height: 54px;
  width: auto;
}

.guide-skip {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: #8b958e;
  cursor: pointer;
}

.guide-skip:hover {
  color: #1b2a22;
}

.guide-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #2f9a45;
}

.guide-panel h2 {
  margin-top: 8px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 560;
  letter-spacing: -0.8px;
}

.guide-lead {
  max-width: 560px;
  margin: 10px auto 28px;
  color: #7d8a82;
  font-size: 16px;
  line-height: 1.45;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}

.guide-card {
  position: relative;
  background: #fff;
  border: 1.5px solid #e4ece6;
  border-radius: 28px;
  padding: 18px 18px 20px;
  box-shadow: 0 16px 34px rgba(40, 60, 45, 0.05);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-overlay.is-in .guide-card {
  animation: guideCard 0.8s var(--ease-out-expo) both;
}

.guide-overlay.is-in .guide-card:nth-child(2) { animation-delay: 0.1s; }
.guide-overlay.is-in .guide-card:nth-child(3) { animation-delay: 0.2s; }

.guide-overlay.is-out .guide-card {
  animation: guideCardOut 0.35s ease forwards;
}

.guide-card.is-selected {
  border-color: #3dae49;
  box-shadow: 0 18px 40px rgba(61, 174, 73, 0.16);
  transform: translateY(-6px);
}

.guide-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3dae49;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.guide-card.is-selected .guide-badge {
  opacity: 1;
  transform: none;
}

.guide-art {
  height: 168px;
  border-radius: 22px;
  background: #eef8ef;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.guide-card[data-guide="nube"] .guide-art { background: #f3faf3; }
.guide-card[data-guide="capi"] .guide-art { background: #f4f7f4; }

.guide-art .guide-svg {
  width: 120px;
  height: 132px;
}

.guide-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 32px;
  font-weight: 560;
}

.guide-tag {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6d7c73;
}

.guide-desc {
  margin: 8px auto 16px;
  max-width: 220px;
  color: #8b958e;
  font-size: 14.5px;
  line-height: 1.4;
}

.guide-pick {
  width: 100%;
  border-radius: 999px;
  border: 1.5px solid #d5e0d8;
  background: #fff;
  color: #1b2a22;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 14px;
  cursor: pointer;
}

.guide-card.is-selected .guide-pick {
  background: #3dae49;
  border-color: #3dae49;
  color: #fff;
}

.guide-start {
  margin-top: 26px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #1b2a22;
  cursor: pointer;
}

.guide-start:hover {
  color: #2f9a45;
}

@keyframes guideVeil {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes guideVeilOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes guidePanel {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes guidePanelOut {
  0% {
    opacity: 1;
    transform: none;
    filter: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.97);
    filter: blur(8px);
  }
}

@keyframes guideCard {
  0% {
    opacity: 0;
    transform: translateY(48px) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes guideCardOut {
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

@media (max-width: 860px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card.is-selected {
    transform: none;
  }
}

@keyframes globiAeroFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.5deg);
  }
  75% {
    transform: translateY(-5px) rotate(2deg);
  }
}

.cap-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 56px;
}


/* ==========================================================================
   Seccion Declaracion
   ========================================================================== */
.declaration-section {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 85% 15%, rgba(238, 247, 238, 0.65) 0%, #ffffff 65%);
  padding: 130px 48px;
  overflow: hidden;
  border-top: 1px solid var(--gb-border);
  border-bottom: 1px solid var(--gb-border);
}



.decl-container {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  position: relative;
  z-index: 2;
}

.decl-left {
  flex: 0 0 44%;
  max-width: 490px;
}

.decl-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #2f9a45;
  margin-bottom: 22px;
}

.decl-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #1a221d;
  margin: 0;
}

.decl-title-accent {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  color: #3dae49;
  display: block;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.decl-desc {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.68;
  color: #556258;
  margin-top: 32px;
  max-width: 440px;
  font-weight: 400;
}

.decl-right {
  flex: 1 1 52%;
  min-width: 320px;
}

.decl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e2eae2;
}

.decl-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px 24px 14px;
  border-bottom: 1px solid #e2eae2;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.decl-item-text {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.35;
  color: #3d4940;
  transition: color 0.25s ease;
}

.decl-item-text strong {
  font-weight: 700;
  color: #161f18;
  transition: color 0.25s ease;
}

.decl-item-arrow {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3dae49;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 16px;
}

.decl-item:hover,
.decl-item.is-active,
.decl-item:focus-visible {
  background: #f4faf4;
  transform: translateX(10px);
}

.decl-item:hover .decl-item-text strong,
.decl-item.is-active .decl-item-text strong,
.decl-item:focus-visible .decl-item-text strong {
  color: #2f9a45;
}

.decl-item:hover .decl-item-arrow,
.decl-item.is-active .decl-item-arrow,
.decl-item:focus-visible .decl-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 960px) {
  .declaration-section {
    padding: 80px 24px;
  }
  .decl-container {
    flex-direction: column;
    gap: 44px;
  }
  .decl-left {
    max-width: 100%;
    flex: none;
    width: 100%;
  }
  .decl-right {
    width: 100%;
    flex: none;
  }
  .decl-item {
    padding: 20px 8px;
  }
}


/* Estilos para Canvas de Avatares 3D */
.globi-3d-canvas {
  width: 94px;
  height: 94px;
  display: block;
  pointer-events: none;
}

.guide-art .guide-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Seccion ALI Events */
.ali-events-section {
  position: relative;
  background: radial-gradient(circle at 72% 48%, #1c452c 0%, #11291b 52%, #08170f 100%);
  padding: 110px 48px;
  overflow: hidden;
  border-top: 1px solid rgba(85, 192, 87, 0.15);
  border-bottom: 1px solid rgba(85, 192, 87, 0.15);
}

.ali-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ali-sparkle {
  position: absolute;
  color: #72d681;
  opacity: 0.65;
  font-size: var(--s, 6px);
  animation: sparkleFloat 6s ease-in-out infinite alternate var(--d, 0s);
}

@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(0.85); opacity: 0.35; }
  100% { transform: translateY(-12px) scale(1.15); opacity: 0.85; }
}

.ali-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* Columna Izquierda */
.ali-left {
  flex: 0 0 44%;
  max-width: 500px;
}

.ali-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a4f5af;
  background: rgba(85, 192, 87, 0.16);
  border: 1px solid rgba(85, 192, 87, 0.38);
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.ali-tag-dot {
  color: #4ed363;
  font-size: 8px;
}

.ali-title {
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin: 0 0 24px;
}

.ali-title-accent {
  background: linear-gradient(135deg, #4ed363 0%, #a4f5af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ali-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 54px;
  max-width: 440px;
  font-weight: 400;
}

/* Timeline interactiva */
.ali-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.ali-timeline-track {
  position: absolute;
  top: 31px;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.ali-phase {
  position: relative;
  z-index: 2;
  flex: 1;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s ease;
  user-select: none;
}

.ali-phase:hover,
.ali-phase.is-active {
  transform: translateY(-3px);
}

.ali-phase-dot {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid #0f2719;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ali-phase:hover .ali-phase-dot,
.ali-phase.is-active .ali-phase-dot {
  transform: scale(1.25);
  box-shadow: 0 0 12px currentColor;
}

.dot-antes { background: #ff8b9a; color: #ff8b9a; }
.dot-durante { background: #4ed363; color: #4ed363; }
.dot-despues { background: #f5a623; color: #f5a623; }

.ali-phase-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  display: block;
  transition: color 0.2s;
}

.ali-phase:hover .ali-phase-title,
.ali-phase.is-active .ali-phase-title {
  color: #a4f5af;
}

.ali-phase-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

/* Columna Derecha / Showcase */
.ali-right {
  flex: 1 1 54%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}

.ali-showcase {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 590px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Smartphone Mockup */
.ali-phone {
  width: 258px;
  height: 518px;
  background: #090e0b;
  border-radius: 46px;
  border: 5px solid #233427;
  box-shadow:
    0 30px 65px rgba(0, 0, 0, 0.7),
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 10px;
}

.ali-phone-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
}

.ali-phone-screen {
  background: #111a14;
  border-radius: 36px;
  height: 100%;
  padding: 34px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 6px;
}

.phone-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4ed363;
  color: #0b1a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.phone-app-meta {
  display: flex;
  flex-direction: column;
}

.phone-app-name {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.phone-app-sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Pestanas del telefono */
.phone-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 3px;
  gap: 4px;
}

.phone-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-tab.is-active {
  background: #9ef0a4;
  color: #091c0e;
  font-weight: 700;
}

/* Tarjeta En Vivo / Estado de fase */
.phone-live-card {
  background: linear-gradient(135deg, #ff7a60 0%, #f79e4d 100%);
  border-radius: 18px;
  padding: 14px 14px 16px;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(247, 126, 80, 0.28);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.phone-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.phone-live-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 3px;
  line-height: 1.2;
}

.phone-live-desc {
  font-size: 9.5px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* Menu de funciones */
.phone-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.phone-menu-item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.menu-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bullet-green { background: #4ed363; }
.bullet-orange { background: #f5a623; }
.bullet-pink { background: #ff8b9a; }
.bullet-teal { background: #40d4ba; }

.menu-label { flex: 1; }
.menu-arrow { font-size: 13px; color: rgba(255, 255, 255, 0.35); }

/* Tarjetas Polaroid Flotantes */
.ali-polaroid {
  position: absolute;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 8px 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  z-index: 6;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ali-polaroid:hover {
  transform: scale(1.06) rotate(0deg) !important;
  z-index: 10;
}

.ali-polaroid-media {
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ali-polaroid-label {
  font-size: 9px;
  font-weight: 700;
  color: #243529;
  text-align: center;
  margin: 8px 0 0;
}

/* Card 1: Foto invitado */
.card-photo-invitado {
  width: 118px;
  top: 52px;
  left: 18px;
  transform: rotate(-9deg);
  animation: floatPolaroid1 5.5s ease-in-out infinite alternate;
}

.card-photo-invitado .ali-polaroid-media {
  height: 104px;
}

.grad-coral {
  background: linear-gradient(135deg, #ff9554 0%, #ff6879 100%);
}

/* Card 2: Recuerdo */
.card-recuerdo {
  width: 88px;
  top: 48px;
  right: 18px;
  transform: rotate(8deg);
  animation: floatPolaroid2 6.2s ease-in-out infinite alternate;
}

.card-recuerdo .ali-polaroid-media {
  height: 74px;
}

.grad-peach {
  background: linear-gradient(135deg, #fcd0ab 0%, #f78d9b 100%);
}

/* Card 3: Video evento */
.card-video-evento {
  width: 112px;
  bottom: 42px;
  right: 14px;
  transform: rotate(-6deg);
  animation: floatPolaroid3 5.8s ease-in-out infinite alternate;
}

.card-video-evento .ali-polaroid-media {
  height: 98px;
}

.grad-green {
  background: linear-gradient(135deg, #74df78 0%, #3ca84a 100%);
}

.ali-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #3ca84a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ali-play-btn svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

/* Badges Flotantes */
.ali-badge {
  position: absolute;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 7;
  transition: transform 0.25s ease;
}

.ali-badge:hover {
  transform: scale(1.08) !important;
}

.badge-rsvp {
  top: 36px;
  right: 104px;
  background: #ffffff;
  color: #192e20;
  font-size: 10.5px;
  padding: 7px 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatPill1 5s ease-in-out infinite alternate;
}

.badge-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4ed363;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.badge-ubicacion {
  bottom: 56px;
  left: 172px;
  background: #f7a934;
  color: #142218;
  font-size: 11px;
  padding: 7px 20px;
  animation: floatPill2 5.5s ease-in-out infinite alternate;
}

/* Burbujas de Chat */
.ali-chat-wrap {
  position: absolute;
  top: 304px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
  animation: floatChat 6s ease-in-out infinite alternate;
}

.ali-chat-bubble {
  padding: 9px 16px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  max-width: 180px;
  transition: transform 0.25s ease;
}

.ali-chat-bubble:hover {
  transform: scale(1.05);
}

.bubble-ask {
  background: #ffffff;
  color: #1a281d;
  border-bottom-left-radius: 4px;
}

.bubble-reply {
  background: #87e997;
  color: #0c2011;
  border-bottom-left-radius: 4px;
  margin-left: 20px;
}

/* Animaciones de Flotacion */
@keyframes floatPolaroid1 {
  0% { transform: rotate(-9deg) translateY(0); }
  100% { transform: rotate(-7deg) translateY(-14px); }
}
@keyframes floatPolaroid2 {
  0% { transform: rotate(8deg) translateY(0); }
  100% { transform: rotate(10deg) translateY(-12px); }
}
@keyframes floatPolaroid3 {
  0% { transform: rotate(-6deg) translateY(0); }
  100% { transform: rotate(-4deg) translateY(-10px); }
}
@keyframes floatPill1 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@keyframes floatPill2 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
@keyframes floatChat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  .ali-container { flex-direction: column; gap: 60px; }
  .ali-left { max-width: 100%; flex: none; width: 100%; text-align: center; }
  .ali-desc { margin: 0 auto 40px; }
  .ali-timeline { max-width: 480px; margin: 0 auto; }
  .ali-right { width: 100%; flex: none; }
}

/* Cierre del inicio: invitación y pie */
.gb-close {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-margin-top: 92px;
  padding: 108px 28px 128px;
  text-align: center;
  color: #f4fff6;
  background:
    radial-gradient(ellipse 36% 42% at 86% 16%, rgba(255, 255, 255, 0.16), transparent 68%),
    radial-gradient(ellipse 28% 36% at 12% 78%, rgba(8, 50, 24, 0.18), transparent 70%),
    linear-gradient(180deg, #2f9b4c 0%, #1f7d3d 58%, #176b34 100%);
}

.gb-close-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gb-close .cloud {
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  filter: drop-shadow(0 14px 16px rgba(16, 48, 28, 0.18));
  animation: gbSky 18s ease-in-out infinite;
}

.gb-close .gb-sky-a {
  width: 128px;
  left: 16%;
  top: 12%;
  opacity: 0.82;
  animation-duration: 15s;
}

.gb-close .gb-sky-b {
  width: 230px;
  right: 8%;
  bottom: 9%;
  animation-duration: 20s;
  animation-delay: -6s;
}

.gb-close .gb-sky-c {
  width: 260px;
  left: 3%;
  top: 54%;
  animation-duration: 22s;
  animation-direction: reverse;
  animation-delay: -4s;
}

.gb-close .gb-sky-d {
  width: 118px;
  right: 18%;
  top: 14%;
  opacity: 0.78;
  animation-duration: 16s;
  animation-delay: -9s;
}

.gb-close .gb-sky-e {
  width: 190px;
  left: 42%;
  top: 6%;
  opacity: 0.55;
  filter: blur(0.4px) drop-shadow(0 8px 10px rgba(16, 48, 28, 0.12));
  animation-duration: 26s;
  animation-delay: -12s;
}

.gb-close-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.gb-close h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 560;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.gb-close p {
  margin: 22px auto 0;
  max-width: 34em;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: rgba(244, 255, 246, 0.92);
}

.gb-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 16px 32px;
  border-radius: 999px;
  background: #ffffff;
  color: #173528;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(8, 40, 20, 0.16);
  transition: transform 0.3s var(--ease-out-expo), background 0.25s ease, color 0.25s ease;
}

.gb-close-btn:hover {
  background: #173528;
  color: #ffffff;
  transform: translateY(-3px);
}

.gb-close-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.gb-foot {
  background: #0f4e2c;
  color: rgba(244, 255, 246, 0.88);
  padding: 54px 48px 120px;
}

.gb-foot-main {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.gb-foot-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.gb-foot-brand img {
  height: 86px;
  width: auto;
  filter: brightness(0) invert(1);
}

.gb-foot-brand p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  color: #ffffff;
}

.gb-foot-brand em {
  font-style: italic;
  font-weight: 560;
}

.gb-foot-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 48px;
}

.gb-foot-nav div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gb-foot-nav a {
  color: rgba(244, 255, 246, 0.82);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gb-foot-nav a:hover {
  color: #ffffff;
}

.gb-foot-legal {
  width: min(1100px, 100%);
  margin: 36px auto 0;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-right: 300px;
  font-size: 12px;
  color: rgba(244, 255, 246, 0.62);
}

.gb-foot-legal a {
  color: inherit;
  text-decoration: none;
}

.gb-foot-legal a:hover {
  color: #ffffff;
}

@keyframes gbSky {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(22px, -12px, 0); }
}

@media (max-width: 800px) {
  .gb-close {
    min-height: 0;
    padding: 72px 20px 88px;
  }

  .gb-close .gb-sky-b { width: 150px; right: 4%; }
  .gb-close .gb-sky-c { width: 170px; top: 62%; }
  .gb-close .gb-sky-e { display: none; }

  .gb-close-btn {
    width: 100%;
    max-width: 360px;
  }

  .gb-foot {
    padding: 40px 20px 108px;
  }

  .gb-foot-main,
  .gb-foot-legal {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gb-foot-legal {
    display: flex;
    flex-direction: column;
    padding-right: 0;
  }

  .gb-foot-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gb-close .cloud {
    animation: none;
  }
}
