html,
body {
  overflow-x: hidden;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ===== TRUST BAR — Premium Showcase ===== */
@keyframes floatVertical {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes floatHorizontal {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(6px) translateY(-4px);
  }
}
@keyframes floatDiagonal {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -6px);
  }
}
.trust-showcase {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
}
/* Main image — large, centered, dominant */
.trust-img-main {
  position: absolute;
  top: 3%;
  left: 10%;
  width: 78%;
  border-radius: 1rem;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(183, 110, 121, 0.1);
  border: 4px solid white;
  animation: floatDiagonal 8s ease-in-out infinite;
  z-index: 2;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.trust-img-main:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.16),
    0 12px 32px rgba(183, 110, 121, 0.14);
}
/* Secondary image — overlaps bottom-left of main */
.trust-img-vertical {
  position: absolute;
  bottom: -4%;
  left: -4%;
  width: 42%;
  max-width: 340px;
  border-radius: 1rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.14),
    0 6px 20px rgba(183, 110, 121, 0.12);
  border: 4px solid white;
  animation: floatVertical 6s ease-in-out infinite;
  z-index: 3;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.trust-img-vertical:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.18),
    0 8px 28px rgba(183, 110, 121, 0.16);
}
/* Small card — overlaps top-right of main */
.trust-img-small {
  position: absolute;
  top: -5%;
  right: -5%;
  width: 35%;
  max-width: 290px;
  border-radius: 1rem;
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(183, 110, 121, 0.1);
  border: 4px solid white;
  animation: floatHorizontal 7s ease-in-out infinite;
  z-index: 3;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.trust-img-small:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.16),
    0 6px 22px rgba(183, 110, 121, 0.14);
}
/* Tablet adjustments (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .trust-showcase {
    max-width: 700px;
    aspect-ratio: 16 / 11;
  }
  .trust-img-main {
    top: 4%;
    left: 10%;
    width: 76%;
  }
  .trust-img-vertical {
    bottom: -2%;
    left: -2%;
    width: 40%;
  }
  .trust-img-small {
    top: -3%;
    right: -2%;
    width: 34%;
  }
}
/* Mobile adjustments (< 768px) */
@media (max-width: 767px) {
  .trust-showcase {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
  .trust-img-main {
    top: 6%;
    left: 8%;
    width: 80%;
    border-width: 3px;
    border-radius: 0.75rem;
  }
  .trust-img-vertical {
    bottom: 0;
    left: 0;
    width: 44%;
    max-width: none;
    border-width: 3px;
    border-radius: 0.75rem;
  }
  .trust-img-small {
    top: -1%;
    right: 0;
    width: 38%;
    max-width: none;
    border-width: 3px;
    border-radius: 0.75rem;
    padding: 0.5rem !important;
  }
  .trust-img-small .flex {
    gap: 0.375rem;
  }
  .trust-img-small .w-9 {
    width: 1.75rem;
    height: 1.75rem;
  }
  .trust-img-small p {
    font-size: 0.65rem;
  }
}
/* Small phones (< 420px) */
@media (max-width: 420px) {
  .trust-showcase {
    aspect-ratio: 1 / 1;
  }
  .trust-img-main {
    top: 8%;
    left: 6%;
    width: 84%;
  }
  .trust-img-vertical {
    bottom: 0;
    left: -1%;
    width: 46%;
  }
  .trust-img-small {
    top: 0;
    right: -1%;
    width: 40%;
  }
}
/* Glow accent behind the showcase */
.trust-glow {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
/* Trust metric pills */
.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: white;
  border: 1px solid rgba(183, 110, 121, 0.12);
  box-shadow: 0 2px 12px rgba(183, 110, 121, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.trust-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.14);
}
@media (max-width: 639px) {
  .trust-pill {
    padding: 0.5rem 1rem;
  }
}

.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}
.hero-gradient {
  background: linear-gradient(135deg, #f9f3e6 0%, #e8d9cd 100%);
}
.nav-transition {
  transition: all 0.3s ease-in-out;
}
.nav-scrolled {
  background: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
/* Dropdown hover */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown-menu {
  display: none;
}
/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.mobile-menu.open {
  max-height: 100vh;
}
.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-dropdown-content.open {
  max-height: 300px;
}
/* Counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.counter-animate {
  animation: countUp 0.6s ease-out forwards;
}

/* ===== EDUCATIONAL CALCULATOR ===== */
.edu-step {
  position: relative;
}
.edu-step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.edu-step:hover .edu-step-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(183, 110, 121, 0.25);
}
.edu-arrow {
  color: rgba(183, 110, 121, 0.3);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Mobile: vertical arrow pointing down */
.edu-arrow .arrow-down {
  display: block;
}
.edu-arrow .arrow-right {
  display: none;
}
@media (min-width: 768px) {
  .edu-arrow .arrow-down {
    display: none;
  }
  .edu-arrow .arrow-right {
    display: block;
  }
}
/* Mobile vertical flow: connecting line between steps */
.edu-flow-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}
.edu-flow-mobile .edu-step {
  width: 100%;
  max-width: 280px;
}
.edu-flow-mobile .edu-arrow {
  padding: 0.5rem 0;
  font-size: 1rem;
}
/* Desktop horizontal flow */
@media (min-width: 768px) {
  .edu-flow-mobile {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .edu-flow-mobile .edu-step {
    flex: 1;
    max-width: none;
  }
  .edu-flow-mobile .edu-arrow {
    padding: 1.25rem 0 0 0;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
}
@media (min-width: 1024px) {
  .edu-flow-mobile {
    gap: 0.75rem;
  }
}
/* Multiplier visual */
.multiplier-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.person-main {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #b76e79;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(183, 110, 121, 0.3);
  position: relative;
}
.person-companion {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #f3e0e3;
  color: #b76e79;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  animation: popIn 0.35s ease-out forwards;
  opacity: 0;
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.calc-stat-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.calc-stat-card:hover {
  transform: translateY(-2px);
}
.calc-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.3s ease;
}
.calc-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(183, 110, 121, 0.4);
  font-weight: bold;
}
.edu-example-card {
  background: linear-gradient(135deg, #fff9f5 0%, #fff0eb 100%);
  border: 1px solid rgba(183, 110, 121, 0.15);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.slider-value-badge {
  background: #b76e79;
  color: white;
  padding: 0.15rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 2.5rem;
  text-align: center;
}
/* Top announcement bar */
.top-bar {
  transition: transform 0.3s ease;
}
.top-bar.hidden-bar {
  transform: translateY(-100%);
}
/* Navbar solid bg when mobile menu is open */
.nav-menu-open {
  background: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
/* Testimonial carousel */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .testimonial-slide {
    min-width: 50%;
  }
}
@media (min-width: 1024px) {
  .testimonial-slide {
    min-width: 33.333%;
  }
}
/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-top: 0.75rem;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.open {
  transform: rotate(45deg);
}
/* Cookie banner */
.cookie-banner {
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show {
  transform: translateY(0);
}

/* ===== CHATBOT FLOTANTE — ASISTENTE INVITAR ===== */
:root {
  --invitar-accent: #b76e79;
  --invitar-dark: #2d2d2d;
  --invitar-cream: #f9f3e6;
}

.invitar-chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

/* Si el banner de cookies está visible, subimos el widget */
#cookie-banner.show ~ .invitar-chat-widget {
  bottom: 6.25rem;
}

@keyframes invitarPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 14px 30px rgba(183, 110, 121, 0.22);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 18px 36px rgba(183, 110, 121, 0.28);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 14px 30px rgba(183, 110, 121, 0.22);
  }
}

.invitar-chat-fab {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 0;
  background: var(--invitar-accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 14px 30px rgba(183, 110, 121, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  animation: invitarPulse 1.6s ease-in-out 1;
}

.invitar-chat-fab:hover {
  transform: translateY(-2px) rotate(6deg);
  box-shadow: 0 18px 38px rgba(183, 110, 121, 0.28);
}

.invitar-chat-fab:active {
  transform: translateY(0) scale(0.98);
}

.invitar-chat-fab:focus-visible {
  outline: 3px solid rgba(183, 110, 121, 0.35);
  outline-offset: 4px;
}

.invitar-chat-fab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.invitar-chat-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: #111827;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.invitar-chat-badge.is-visible {
  display: inline-flex;
}

@keyframes invitarPop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.invitar-chat-panel {
  position: absolute;
  right: 0;
  bottom: 4.25rem;
  width: min(350px, calc(100vw - 2.5rem));
  max-width: 350px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.16),
    0 10px 30px rgba(183, 110, 121, 0.10);
  border: 1px solid rgba(183, 110, 121, 0.14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.invitar-chat-widget.is-open .invitar-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: invitarPop 180ms ease;
}

.invitar-chat-header {
  padding: 0.9rem 0.95rem;
  background: linear-gradient(135deg, var(--invitar-cream), #ffffff);
  border-bottom: 1px solid rgba(183, 110, 121, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.invitar-chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.invitar-chat-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(183, 110, 121, 0.14);
  color: var(--invitar-accent);
  flex: 0 0 auto;
}

.invitar-chat-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--invitar-dark);
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.invitar-chat-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: rgba(45, 45, 45, 0.72);
  line-height: 1.2;
}

.invitar-chat-close {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(183, 110, 121, 0.18);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  color: rgba(45, 45, 45, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.invitar-chat-close:hover {
  transform: rotate(90deg);
  border-color: rgba(183, 110, 121, 0.28);
  background: #fff;
}

.invitar-chat-body {
  height: 320px;
  padding: 0.9rem;
  overflow: auto;
  background: #fff;
}

.invitar-chat-row {
  display: flex;
  margin: 0.5rem 0;
}

.invitar-chat-row.is-user {
  justify-content: flex-end;
}

.invitar-chat-row.is-bot {
  justify-content: flex-start;
}

.invitar-chat-bubble {
  max-width: 86%;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.invitar-chat-row.is-bot .invitar-chat-bubble {
  background: rgba(249, 243, 230, 0.65);
  color: var(--invitar-dark);
  border: 1px solid rgba(183, 110, 121, 0.12);
}

.invitar-chat-row.is-user .invitar-chat-bubble {
  background: var(--invitar-accent);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.invitar-chat-meta {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Indicador “Escribiendo…” */
.invitar-typing {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

@keyframes invitarDot {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}

.invitar-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(45, 45, 45, 0.55);
  animation: invitarDot 900ms ease-in-out infinite;
}

.invitar-typing-dot:nth-child(2) {
  animation-delay: 120ms;
}

.invitar-typing-dot:nth-child(3) {
  animation-delay: 240ms;
}

.invitar-chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(183, 110, 121, 0.12);
  background: #fff;
}

.invitar-chat-input input {
  flex: 1;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(183, 110, 121, 0.18);
  padding: 0 0.95rem;
  font-size: 0.92rem;
  outline: none;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.invitar-chat-input input:focus {
  border-color: rgba(183, 110, 121, 0.35);
  box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.16);
}

.invitar-chat-send {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 0;
  background: var(--invitar-accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.invitar-chat-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.invitar-chat-send:active {
  transform: translateY(0) scale(0.98);
}

/* Modo oscuro opcional (por prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
  .invitar-chat-panel {
    background: #0b1220;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.55),
      0 10px 30px rgba(183, 110, 121, 0.10);
  }
  .invitar-chat-header {
    background: linear-gradient(135deg, rgba(249, 243, 230, 0.08), #0b1220);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .invitar-chat-title {
    color: rgba(255, 255, 255, 0.92);
  }
  .invitar-chat-subtitle {
    color: rgba(255, 255, 255, 0.65);
  }
  .invitar-chat-close {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .invitar-chat-body {
    background: #0b1220;
  }
  .invitar-chat-row.is-bot .invitar-chat-bubble {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.10);
  }
  .invitar-chat-input {
    background: #0b1220;
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .invitar-chat-input input {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .invitar-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.55);
  }
  .invitar-typing-dot {
    background: rgba(255, 255, 255, 0.65);
  }
}
