@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   ALQUIMIA COLECTIVA V3 - ULTRA MODERN DESIGN SYSTEM (GREENSET INSPIRED)
   Palette: #ebdfcd (parchment), #31454b (petrol), #3f4338 (olive), #7c4043 (terracotta)
   ========================================================================== */
:root {
  --bg-base: #f4eee4;
  /* Very soft warm parchment */
  --bg-surface: #ffffff;
  /* Clean white surface */
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  --primary: #7c4043;
  /* Terracotta */
  --primary-hover: #a14244;
  /* Carmine */
  --primary-glow: rgba(124, 64, 67, 0.22);
  --primary-subtle: rgba(124, 64, 67, 0.08);

  --accent-green: #4d5c38;
  /* Deep Organic Olive Green */
  --accent-lime: #b4c856;
  /* Vibrant Eco Accent for buttons & badges */

  --secondary: #3f4338;
  /* Deep Olive */
  --text-primary: #1f2a2e;
  /* Dark Slate Petrol (ultra sharp contrast) */
  --text-secondary: #4a5559;
  /* Muted Petrol Slate */
  --text-muted: #78858a;
  /* Muted Slate */

  --border-light: rgba(49, 69, 75, 0.12);
  --border-emphasis: rgba(124, 64, 67, 0.3);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --min-touch-target: 48px;
  --max-width: 1240px;
  --section-gap: clamp(4.5rem, 9vw, 8rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease-out-expo);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 4px 14px -2px rgba(31, 42, 46, 0.06);
  --shadow-md: 0 12px 32px -8px rgba(31, 42, 46, 0.1);
  --shadow-lg: 0 24px 56px -12px rgba(31, 42, 46, 0.16);
  --shadow-banner: 0 32px 80px -16px rgba(31, 42, 46, 0.25);
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-secondary);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--primary-hover);
  outline-offset: 3px;
  border-radius: 9999px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  display: block;
  max-width: 100%;
}

/* BRAND LOGO SIZING */
.brand-logo-header {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

@media (min-width: 768px) {
  .brand-logo-header {
    height: 64px;
  }
}

.brand-logo-footer {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

@media (min-width: 768px) {
  .brand-logo-footer {
    height: 76px;
  }
}


/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1.025rem;
  line-height: 1.75;
}

/* PILL BADGE WITH DOT INDICATOR (GREENSET PATTERN) */
.pill-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(31, 42, 46, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(31, 42, 46, 0.1);
  margin-bottom: 1rem;
  width: max-content;
  max-width: 100%;
}

.pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  display: inline-block;
}

.pill-badge-green .dot {
  background-color: var(--accent-green);
}

.pill-badge-lime .dot {
  background-color: var(--accent-lime);
}

.pill-badge-dark,
.pill-badge-hero {
  background: rgba(31, 42, 46, 0.82) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px -2px rgba(31, 42, 46, 0.3);
}

/* HERO BANNER CARD CONTAINER (GREENSET PATTERN) */
.hero-banner-container {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-banner);
  margin: 0 auto;
  width: 94%;
  max-width: var(--max-width);
}

@media (min-width: 768px) {
  .hero-banner-container {
    border-radius: 3rem;
  }
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-bg-blurred {
  filter: blur(1.8px);
  transform: scale(1.03);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 42, 46, 0.5) 0%, rgba(31, 42, 46, 0.8) 100%);
}

.hero-banner-overlay-soft {
  background: linear-gradient(180deg, rgba(31, 42, 46, 0.22) 0%, rgba(117, 130, 135, 0.42) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 10;
  color: #ffffff;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-banner-content {
    padding: 6.5rem 3rem 11.5rem;
  }
}

/* FLOATING GLASS CARDS OVERLAPPING BANNER BOTTOM */
.hero-floating-cards {
  position: relative;
  margin: -1.5rem auto 0;
  width: 94%;
  max-width: var(--max-width);
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-floating-cards {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
    width: auto;
    margin: 0;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.glass-card-dark {
  background: rgba(31, 42, 46, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.75rem;
  padding: 1.25rem 1.35rem;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: var(--transition-smooth);
}

.glass-card-dark:hover {
  background: rgba(31, 42, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

/* PILL BUTTON WITH CIRCULAR ARROW ICON (GREENSET PATTERN) */
.btn-pill-white {
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.btn-pill-white:hover {
  background-color: var(--bg-base);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.btn-pill-action {
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(124, 64, 67, 0.28);
  transition: var(--transition-smooth);
}

.btn-pill-action:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(161, 66, 68, 0.35);
}

.btn-pill-dark {
  background-color: var(--text-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(31, 42, 46, 0.25);
  transition: var(--transition-smooth);
}

.btn-pill-dark:hover {
  background-color: #000000;
  transform: translateY(-2px);
}

.btn-arrow-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--text-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-pill-white .btn-arrow-circle {
  background: var(--text-primary);
  color: #ffffff;
}

.btn-pill-action .btn-arrow-circle {
  background: #ffffff;
  color: var(--primary);
}

/* HEADER NAVIGATION */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(244, 238, 228, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 42, 46, 0.08);
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-item {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
  background: rgba(124, 64, 67, 0.1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
}

/* EDITORIAL GRID SECTIONS (GREENSET PATTERN) */
.editorial-container {
  width: 94%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.editorial-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .editorial-header {
    grid-template-columns: 0.3fr 0.7fr;
    gap: 3rem;
  }
}

.rounded-card-image {
  border-radius: 2.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.rounded-card-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* STATS KPI GRID BOX (GREENSET PATTERN) */
.stats-kpi-box {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.stats-kpi-box>div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .stats-kpi-box {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* CARDS & PORTRAITS GRID */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.portrait-card {
  position: relative;
  border-radius: 2.25rem;
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.portrait-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.portrait-card:hover img {
  transform: scale(1.06);
}

.portrait-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 42, 46, 0) 0%, rgba(31, 42, 46, 0.15) 30%, rgba(31, 42, 46, 0.72) 75%, rgba(18, 25, 28, 0.94) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.5rem;
  color: #ffffff;
  transition: background 0.4s ease;
}

.portrait-card:hover .portrait-card-overlay {
  background: linear-gradient(180deg, rgba(31, 42, 46, 0) 0%, rgba(31, 42, 46, 0.25) 25%, rgba(31, 42, 46, 0.8) 70%, rgba(12, 18, 20, 0.96) 100%);
}

.portrait-card-content {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.portrait-card-overlay h3,
.portrait-card-overlay p,
.portrait-card-overlay span,
.portrait-card-overlay a {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* MOBILE HORIZONTAL GALLERY REEL & BENTO GRID */
@media (max-width: 767px) {
  .gallery-bento-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-bento-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-photo-item {
    flex: 0 0 82% !important;
    width: 82% !important;
    height: 260px !important;
    scroll-snap-align: start !important;
    border-radius: 1.75rem !important;
  }
}

/* NETWORK CANVAS */
.network-container {
  background: #ffffff;
  border-radius: 2.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .network-container {
    padding: 2.5rem;
  }
}

.network-canvas-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 2rem;
  background: rgba(244, 238, 228, 0.6);
  border: 1px solid rgba(31, 42, 46, 0.1);
  overflow: hidden;
  touch-action: pan-y;
}

@media (min-width: 768px) {
  .network-canvas-wrap {
    height: 420px;
  }
}

canvas#networkCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

canvas#networkCanvas:active {
  cursor: grabbing;
}

.node-info-panel {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  background: rgba(244, 238, 228, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 64, 67, 0.2);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 72px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.node-info-panel.active {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(124, 64, 67, 0.4);
  box-shadow: 0 8px 24px rgba(124, 64, 67, 0.12);
  display: block;
}

.node-info-default {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.node-info-content {
  width: 100%;
}

/* CAROUSEL REEL */
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.photo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(31, 42, 46, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal-content {
  max-width: 900px;
  width: 100%;
  border-radius: 2rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-modal-backdrop.open .photo-modal-content {
  transform: scale(1);
}

/* FORM STYLES */
.form-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 2.5rem;
  padding: 3rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.progress-track {
  height: 6px;
  background: rgba(31, 42, 46, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  width: 33.33%;
  transition: width 0.4s var(--ease-out-expo);
}

.form-group {
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

input,
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(244, 238, 228, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 0.85rem 1.1rem;
  min-height: var(--min-touch-target);
  transition: var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInStep 0.4s var(--ease-out-expo);
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.pricing-card-option {
  background: rgba(244, 238, 228, 0.6);
  border: 1.5px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pricing-card-option:hover {
  background: rgba(244, 238, 228, 0.9);
  border-color: var(--border-emphasis);
}

.pricing-card-option.selected {
  background: rgba(124, 64, 67, 0.08);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(124, 64, 67, 0.15);
}

/* FOOTER */
footer {
  background: #e6dfd3;
  border-top: 1px solid rgba(31, 42, 46, 0.1);
  padding: 4rem 0 2.5rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 42, 46, 0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* RESPONSIVE DRAWER & MEDIA QUERIES */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: flex !important;
    position: fixed;
    top: 5.5rem;
    left: 4% !important;
    right: 4% !important;
    width: 92% !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 1.5rem !important;
    border: 1px solid rgba(31, 42, 46, 0.12) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16) !important;
    flex-direction: column;
    padding: 1.25rem 1rem !important;
    gap: 0.5rem !important;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0.75rem !important;
    font-weight: 600;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

/* FLOATING REFERRAL BANNER */
.ref-floating-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: calc(100% - 2rem);
  max-width: 480px;
}

.ref-floating-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ref-floating-banner.dismissed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(40px);
}

.ref-banner-inner {
  display: flex;
  items-center: center;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 64, 67, 0.25);
  border-radius: 9999px;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  box-shadow: 0 20px 40px -10px rgba(31, 42, 46, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.ref-banner-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #7c4043;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 64, 67, 0.3);
}

.ref-banner-text {
  font-size: 0.8125rem;
  color: #31454b;
  line-height: 1.3;
  flex-grow: 1;
}

.ref-banner-text strong {
  color: #7c4043;
  font-weight: 700;
}

.ref-banner-cta {
  background: #7c4043;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(124, 64, 67, 0.25);
}

.ref-banner-cta:hover {
  background: #a14244;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 64, 67, 0.35);
}

.ref-banner-close {
  background: transparent;
  border: none;
  color: #78858a;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.ref-banner-close:hover {
  color: #31454b;
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   UNIFIED WORD CLOUD (NUBE DE PALABRAS & TEMÁTICAS) DESIGN SYSTEM
   ========================================================================== */
.nube-section {
  padding: 3.5rem 0;
  background-color: rgba(235, 223, 205, 0.4);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.word-cloud-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.75rem 2.25rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 2.5rem;
  box-shadow: 0 4px 20px -4px rgba(31, 42, 46, 0.06);
  min-height: 140px;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s var(--ease-out-expo);
}

.word-cloud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(202, 184, 167, 0.25);
  color: #31454b;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.word-cloud-chip:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px -2px rgba(49, 69, 75, 0.12);
}

.word-cloud-chip-high {
  background-color: rgba(124, 64, 67, 0.12) !important;
  border-color: rgba(124, 64, 67, 0.35) !important;
  color: #7c4043 !important;
  font-weight: 800 !important;
}

.word-cloud-chip-high:hover {
  background-color: rgba(124, 64, 67, 0.22) !important;
  border-color: rgba(124, 64, 67, 0.5) !important;
}

.word-cloud-chip-medium {
  background-color: rgba(49, 69, 75, 0.1) !important;
  border-color: rgba(49, 69, 75, 0.25) !important;
  color: #31454b !important;
  font-weight: 700 !important;
}

.word-cloud-chip-medium:hover {
  background-color: rgba(49, 69, 75, 0.18) !important;
  border-color: rgba(49, 69, 75, 0.4) !important;
}

.word-cloud-chip-low {
  background-color: rgba(235, 223, 205, 0.45) !important;
  border-color: rgba(49, 69, 75, 0.08) !important;
  color: rgba(49, 69, 75, 0.85) !important;
  font-weight: 500 !important;
}

.word-cloud-chip-low:hover {
  background-color: rgba(235, 223, 205, 0.8) !important;
  border-color: rgba(124, 64, 67, 0.3) !important;
}

.word-cloud-chip-count {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  line-height: 1;
}