/* Custom CSS Overrides
 * Usa design tokens de design-tokens.css
 * Prefiere utilities.css para patrones comunes
 */

/* ============================================ */
/* HOME - Espaciado superior para header fijo  */
/* 73px = altura exacta del navbar             */
/* ============================================ */
body.home #main {
  padding-top: 73px;
}

/* ============================================ */
/* Footer Logo - Fix Proportions               */
/* ============================================ */

/* Footer logo container - make it square/circular */
.elemento-a8bwhf {
  width: var(--space-20) !important;
  height: var(--space-20) !important;
  border-radius: 20% !important;
  overflow: hidden;
  flex-shrink: 0;
}

/* Footer logo image - maintain aspect ratio */
.elemento-a8bwhf img {
  object-fit: contain !important;
  padding: var(--space-3);
  width: 100% !important;
  height: 100% !important;
}

/* ============================================ */
/* Hero Section - Background Video            */
/* ============================================ */

/* Make hero section position relative for absolute positioning of video */
#hero-section {
  position: relative;
  overflow: hidden;
}

/* Scroll indicator fixed to bottom of viewport, only visible in hero */
#hero-scroll-indicator {
  position: fixed;
  bottom: 5px;
  left: 0;
  right: 0;
  z-index: 50;
}

/* Background video styling */
.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  pointer-events: none;
}

/* Semi-transparent overlay for text readability */
/* Overlay opacity is animated by JavaScript for smooth transitions */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(var(--color-white-rgb), var(--opacity-opaque)) 0%,
    rgba(var(--color-white-rgb), 0.75) 50%,
    rgba(var(--color-white-rgb), var(--opacity-opaque)) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Ensure all hero content appears above video and overlay */
#hero-section .elemento-185pi3p {
  position: relative;
  z-index: 2;
}

/* Additional z-index for navbar to ensure it stays on top */
#navbar-bg {
  position: relative;
  z-index: 3;
}

/* ============================================ */
/* Hero Announcement Badge                     */
/* ============================================ */

/* Badge container - pill-shaped with white background */
.hero-announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4);
  background-color: var(--color-white);
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-8);
  position: relative;
  z-index: var(--z-index-navbar);
  max-width: fit-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Logo within badge - circular */
.badge-logo {
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--border-radius-circle);
  object-fit: contain;
  flex-shrink: 0;
}

/* Badge text styling */
.badge-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-thin);
  color: var(--color-primary-dark);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  white-space: nowrap;
}

/* Responsive adjustments */

/* Tablet (810px - 1199px) */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero-announcement-badge {
    padding: 9px 18px 9px 12px;
    gap: 9px;
    margin-top: 28px;
  }

  .badge-logo {
    width: 28px;
    height: 28px;
  }

  .badge-text {
    font-size: 13px;
  }
}

/* Mobile (< 810px) */
@media (max-width: 809.98px) {
  .hero-announcement-badge {
    padding: 8px 16px 8px 10px;
    gap: 8px;
    margin-top: 24px;
  }

  .badge-logo {
    width: 26px;
    height: 26px;
  }

  .badge-text {
    font-size: 12px;
    white-space: normal; /* Allow wrapping on very small screens */
    max-width: 260px;
  }
}

/* ============================================ */
/* Hero Content Container - Increase max-width on desktop */
.elemento-7PVUy .elemento-185pi3p {
  max-width: 1300px !important;
}

/* Hero Section - Increase max-width on desktop */
.elemento-7PVUy .elemento-gxlp5f {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================ */
/* Hero CTA Button - Shine Effect              */
/* ============================================ */

/* Button needs position relative for the shine effect */
.componente-sihyu.elemento-jDsPm {
  position: relative !important;
  overflow: hidden !important;
}

/* Create improved shine effect with pseudo-element */
.componente-sihyu.elemento-jDsPm::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%; /* Más concentrado para un brillo más definido */
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.6) 50%, /* Brillo más intenso en el centro */
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-15deg); /* Ángulo más sutil */
  animation: shine 10s infinite;
  pointer-events: none;
  z-index: 1;
}

/* Improved shine animation - faster and more professional */
/* Cycle: shine(0.8s) + pause(3s) + shine(0.8s) + pause(5.4s) = 10s total */
@keyframes shine {
  /* First shine: starts immediately, fast sweep */
  0% {
    left: -100%;
    opacity: 1;
  }
  8% {
    /* 0.8s animation (0.8/10 = 8%) - Rápido y nítido */
    left: 150%;
    opacity: 1;
  }
  38% {
    /* Pause 3s (total 3.8s from start) */
    left: 150%;
    opacity: 0;
  }

  /* Second shine: after 3.8s, fast sweep */
  38.1% {
    left: -100%;
    opacity: 1;
  }
  46% {
    /* 0.8s animation (at 4.6s total) */
    left: 150%;
    opacity: 1;
  }

  /* Long pause: 5.4s */
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* Ensure button text stays above the shine effect */
.componente-sihyu.elemento-jDsPm .elemento-ulzhs3,
.componente-sihyu.elemento-jDsPm .contenedor-1gsucof {
  position: relative;
  z-index: 2;
}

/* ============================================ */
/* HERO TITLES - Título 1 y Título 2
/* ============================================ */

/* Título 1 - Font-weight normal */
.estilo-predefinido-1d5uw1q {
  --framer-font-weight: 400 !important;
}

/* Subtle background gradient highlight for "10% mensual" */
#hero-title-1 h1 span:nth-child(4) {
  position: relative;
  display: inline-block;
}

#hero-title-1 h1 span:nth-child(4)::before {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 8%;
  height: 60%;
  background: linear-gradient(
    90deg,
    rgba(4, 120, 178, 0) 0%,
    rgba(4, 120, 178, 0.03) 15%,
    rgba(4, 120, 178, 0.03) 85%,
    rgba(4, 120, 178, 0) 100%
  );
  border-radius: 4px;
  opacity: 0;
  transform: scaleX(0.8);
  animation: subtleBackgroundReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.2s;
  z-index: -1;
}

@keyframes subtleBackgroundReveal {
  0% {
    opacity: 0;
    transform: scaleX(0.8);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Desktop - Título 2 más pequeño que Título 1, mismo color */
.hero-subtitle-destacado {
  --framer-font-size: 42px !important;
  --framer-font-weight: 400 !important;
  --framer-line-height: 1.15 !important;
  --framer-text-color: var(--color-primary-dark, #004656) !important;
  --framer-text-alignment: center !important;
  font-family: var(--font-primary, "DM Sans", sans-serif) !important;
  text-align: center;
  margin: 0;
}

/* Tablet - reducir tamaño */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero-subtitle-destacado {
    --framer-font-size: 34px !important;
    --framer-line-height: 1.2 !important;
  }
}

/* Mobile - ajustar para una buena legibilidad */
@media (max-width: 809.98px) {
  .hero-subtitle-destacado {
    --framer-font-size: 26px !important;
    --framer-line-height: 1.25 !important;
  }
}

/* ============================================ */
/* HERO REFUERZO - Line Height Compacto
/* ============================================ */

/* Desktop - Line height legible */
.hero-refuerzo-combined p {
  line-height: 1.5 !important;
}

/* Tablet - Line height ligeramente más espaciado */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero-refuerzo-combined p {
    line-height: 1.4 !important;
  }
}

/* Mobile - Line height más legible */
@media (max-width: 809.98px) {
  .hero-refuerzo-combined p {
    line-height: 1.5 !important;
  }
}

/* Texto secundario - Menos importancia */
.hero-support-secondary {
  font-size: 14px !important;
  opacity: 0.7;
  font-weight: 400;
}

/* Texto destacado - Mismo estilo pero con subrayado animado */
.hero-support-highlight {
  font-size: 14px !important;
  font-weight: 400;
  opacity: 0.7;
  position: relative;
  display: inline-block;
}

/* Subrayado animado muy lento, fino y con mucho espacio */
.hero-support-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px; /* Mucho espacio debajo del texto */
  height: 1px; /* Muy fino */
  background: var(--color-primary-dark, #004656);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform, opacity; /* Hint para aceleración GPU */
  animation:
    underlineSlowReveal 2.5s ease-in-out 3.5s forwards,
    underlineColorTransition 1.75s ease-in-out 6s forwards;
}

@keyframes underlineSlowReveal {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes underlineColorTransition {
  0% {
    background: var(--color-primary-dark, #004656);
    opacity: 1;
    transform: scaleX(1) translateY(0px);
  }
  100% {
    background: currentColor;
    opacity: 0.7;
    transform: scaleX(1) translateY(-5px);
  }
}

/* Responsive adjustments */
@media (max-width: 809.98px) {
  .hero-support-secondary {
    font-size: 13px !important;
  }

  .hero-support-highlight {
    font-size: 13px !important;
  }

  .hero-support-highlight::after {
    bottom: -6px; /* Menos espacio en móvil */
  }

  @keyframes underlineColorTransition {
    0% {
      background: var(--color-primary-dark, #004656);
      opacity: 1;
      transform: scaleX(1) translateY(0px);
    }
    100% {
      background: currentColor;
      opacity: 0.7;
      transform: scaleX(1) translateY(-4px);
    }
  }
}

/* Hero Title - Reduce font size and add max-width for 2 lines */
.elemento-7PVUy .elemento-1yyzufc {
  max-width: 100%;
}

/* Desktop - reduce from 82px to 68px */
.elemento-bvWHt .estilo-predefinido-1d5uw1q:not(.rich-text-wrapper),
.elemento-bvWHt .estilo-predefinido-1d5uw1q.rich-text-wrapper h1 {
  --framer-font-size: 68px !important;
  line-height: 1.1 !important;
}

/* Intro Section Text - Increase max-width on desktop */
.elemento-7PVUy .elemento-1ilfi8c {
  max-width: 1100px !important;
}

/* Tablet - reduce from 64px to 54px */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .elemento-bvWHt .estilo-predefinido-1d5uw1q:not(.rich-text-wrapper),
  .elemento-bvWHt .estilo-predefinido-1d5uw1q.rich-text-wrapper h1 {
    --framer-font-size: 54px !important;
    line-height: 1.15 !important;
  }

  .elemento-7PVUy .elemento-185pi3p {
    max-width: 900px !important;
  }

  .elemento-7PVUy .elemento-gxlp5f {
    max-width: 100%;
  }

  .elemento-7PVUy .elemento-1yyzufc {
    max-width: 100%;
  }

  .elemento-7PVUy .elemento-1ilfi8c {
    max-width: 900px !important;
  }
}

/* Mobile - keep 40px but adjust line-height */
@media (max-width: 809.98px) {
  .elemento-bvWHt .estilo-predefinido-1d5uw1q:not(.rich-text-wrapper),
  .elemento-bvWHt .estilo-predefinido-1d5uw1q.rich-text-wrapper h1 {
    --framer-font-size: 38px !important;
    line-height: 1.2 !important;
  }

  .elemento-7PVUy .elemento-185pi3p {
    max-width: 100% !important;
  }

  .elemento-7PVUy .elemento-gxlp5f {
    max-width: 100%;
  }

  .elemento-7PVUy .elemento-1yyzufc {
    max-width: 100%;
  }

  .elemento-7PVUy .elemento-1ilfi8c {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================ */
/* FAQ Responsive Borders & Width */
/* ============================================ */
/* This replaces the need for 6 duplicated HTML variants */

#faq .elemento-gy5e7e {
  border-left-width: 1px;
  border-right-width: 0px;
  border-style: none;
  border-color: var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, rgba(95, 95, 113, 0.22));
}

/* Base background for all FAQ items (all resolutions) */
#faq .faq-item {
  background-color: rgba(var(--color-primary-rgb), var(--opacity-subtle)) !important;
  transition: background-color var(--transition-base);
}

/* Remove duplicate borders from FAQ items (Framer generates ::after pseudo-elements) */
#faq .faq-item[data-border="true"]::after {
  display: none !important;
}

/* Desktop: >= 1200px - 2 columns layout with independent rows */
@media (min-width: 1200px) {
  #faq .elemento-gy5e7e {
    width: 100%;
    max-width: 1240px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Use minmax to allow rows to be independent (4 rows for 7 items) */
    grid-template-rows: repeat(4, minmax(auto, max-content));
    gap: 0;
    border-right-width: 0px;
    /* Critical: align items to start so they don't stretch */
    align-items: start;
  }

  /* Add top border to items NOT in the first row */
  /* Grid layout: col1 has items 1,2,3,7 (rows 1-4) | col2 has items 4,5,6,8 (rows 1-4) */
  /* Items 2,3,7 need top border (col1), items 5,6,8 need top border (col2) */
  #faq .elemento-gy5e7e > div:nth-child(2) .faq-item,
  #faq .elemento-gy5e7e > div:nth-child(3) .faq-item,
  #faq .elemento-gy5e7e > div:nth-child(5) .faq-item,
  #faq .elemento-gy5e7e > div:nth-child(6) .faq-item,
  #faq .elemento-gy5e7e > div:nth-child(7) .faq-item,
  #faq .elemento-gy5e7e > div:nth-child(8) .faq-item {
    border-top: 1px solid var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, rgba(95, 95, 113, 0.22));
  }

  /* Each FAQ item container takes full width of its column */
  #faq .elemento-gy5e7e > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Don't stretch to match row height */
    align-self: start;
  }

  /* Position items explicitly in grid (7 items) */
  /* Layout: Col1: 1,2,3,7 | Col2: 4,5,6 - Logical order with item 7 at bottom left */
  #faq .elemento-gy5e7e > div:nth-child(1) { grid-row: 1; grid-column: 1; }
  #faq .elemento-gy5e7e > div:nth-child(2) { grid-row: 2; grid-column: 1; }
  #faq .elemento-gy5e7e > div:nth-child(3) { grid-row: 3; grid-column: 1; }
  #faq .elemento-gy5e7e > div:nth-child(4) { grid-row: 1; grid-column: 2; }
  #faq .elemento-gy5e7e > div:nth-child(5) { grid-row: 2; grid-column: 2; }
  #faq .elemento-gy5e7e > div:nth-child(6) { grid-row: 3; grid-column: 2; }
  #faq .elemento-gy5e7e > div:nth-child(7) { grid-row: 4; grid-column: 1; }

  /* Add right border to left column items (1,2,3,7) */
  #faq .elemento-gy5e7e > div:nth-child(1),
  #faq .elemento-gy5e7e > div:nth-child(2),
  #faq .elemento-gy5e7e > div:nth-child(3),
  #faq .elemento-gy5e7e > div:nth-child(7) {
    border-right: 1px solid var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, rgba(95, 95, 113, 0.22));
  }


  /* Ensure faq-item and faq-answer stay within their container */
  #faq .faq-item,
  #faq .faq-answer {
    width: 100%;
  }

  /* Desktop: FAQ always expanded, no accordion interaction */
  #faq .faq-item {
    cursor: default !important;
    pointer-events: none;
  }

  /* No hover effect in Desktop (already has base background) */

  /* Hide chevron in desktop (no accordion behavior) */
  #faq .faq-item svg.elemento-ohg0r {
    display: none;
  }

  /* Answer containers always visible with smooth transition */
  #faq .faq-answer {
    transition: max-height 300ms ease, padding 300ms ease, opacity 300ms ease;
    opacity: 1;
  }
}

/* Tablet: 810px - 1199px - Add right border, full width */
@media (min-width: 810px) and (max-width: 1199.98px) {
  #faq .elemento-gy5e7e {
    width: 100%;
    border-right-width: 1px;
  }

  /* Tablet: Enable accordion interaction (same as mobile) */
  #faq .faq-item {
    cursor: pointer !important;
    pointer-events: auto;
  }

  #faq .faq-item:hover {
    background-color: rgba(var(--color-primary-rgb), var(--opacity-light)) !important;
  }

  /* Chevron fully visible and interactive */
  #faq .faq-item svg.elemento-ohg0r {
    opacity: 1;
  }

  /* Answer containers with accordion behavior */
  #faq .faq-answer {
    transition: max-height 300ms ease, padding 300ms ease;
  }
}

/* Mobile: <= 809px - Add right border, full width */
@media (max-width: 809.98px) {
  #faq .elemento-gy5e7e {
    width: 100%;
    border-right-width: 1px;
  }

  /* Mobile: Enable accordion interaction */
  #faq .faq-item {
    cursor: pointer !important;
    pointer-events: auto;
  }

  #faq .faq-item:hover {
    background-color: rgba(var(--color-primary-rgb), var(--opacity-light)) !important;
  }

  /* Chevron fully visible and interactive */
  #faq .faq-item svg.elemento-ohg0r {
    opacity: 1;
  }

  /* Answer containers with accordion behavior */
  #faq .faq-answer {
    transition: max-height 300ms ease, padding 300ms ease;
  }
}

/* Ensure FAQ container is always visible and properly sized */
.faq-responsive-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Fix the contenedor-f4lvhw flex issues in desktop */
.faq-responsive-container .contenedor-f4lvhw {
  flex: none !important;
  width: 100% !important;
}

/* ============================================ */
/* CTA Buttons Responsive Alignment */
/* ============================================ */

/* Hero CTA - always visible */
.hero-cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

/* Hero CTA needs higher z-index so dropdown appears above promo */
#hero-cta {
  position: relative;
  z-index: 10;
}

/* CTA Button Pattern - Shared styles for Hero and Final CTA */
#hero-cta .componente-sihyu,
.final-cta-container .componente-sihyu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  background-color: var(--color-accent-green-light) !important;
}

/* CTA Button Text and Icon Color - Shared */
#hero-cta .elemento-ulzhs3 p,
#hero-cta svg,
.final-cta-container .elemento-ulzhs3 p,
.final-cta-container svg {
  color: var(--color-primary-dark) !important;
}

/* Add padding to compensate for the icon on the right - Shared */
#hero-cta .elemento-ulzhs3,
.final-cta-container .elemento-ulzhs3 {
  padding-left: calc(var(--font-size-lg) + var(--space-2)); /* Icon width + gap */
}

/* ============================================ */
/* CTA Button Optimizations - Perfect Alignment */
/* ============================================ */

/* Fix text line-height for perfect icon alignment */
#hero-cta .elemento-ulzhs3 p,
.final-cta-container .elemento-ulzhs3 p {
  line-height: 1 !important;
  margin: 0 !important;
}

/* Match icon container and SVG size to text font-size for alignment */
#hero-cta .contenedor-1gsucof,
.final-cta-container .contenedor-1gsucof {
  width: 18px !important;
  height: 18px !important;
}

#hero-cta .contenedor-1gsucof svg,
.final-cta-container .contenedor-1gsucof svg {
  width: 18px !important;
  height: 18px !important;
}

/* Optimized CTA Button - Using design tokens */
.hero-cta-button {
  /* Layout */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  padding: var(--space-4) var(--space-8) !important; /* 16px vertical, 32px horizontal */
  height: 52px !important;
  width: min-content !important;

  /* Visual */
  background-color: var(--color-accent-green-light) !important;
  border: var(--border-width-medium) solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 48px !important;
  box-shadow: 0px 0px 34px 0px rgba(42, 240, 124, 0.3), 0px 0px 0px 4px rgba(0, 255, 178, 0.1) !important;

  /* Behavior */
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all var(--transition-base) !important;
  position: relative !important;
  overflow: hidden !important;
  will-change: transform !important;
}

/* CTA Button Text */
.hero-cta-text {
  font-family: var(--font-primary) !important;
  font-size: var(--font-size-lg) !important;
  font-weight: var(--font-weight-medium) !important;
  line-height: 1 !important;
  color: var(--color-primary-dark) !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* CTA Button Icon */
.hero-cta-icon {
  width: var(--font-size-lg) !important;
  height: var(--font-size-lg) !important;
  flex-shrink: 0 !important;
  color: var(--color-primary-dark) !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Hover state */
.hero-cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0px 0px 44px 0px rgba(42, 240, 124, 0.4), 0px 0px 0px 6px rgba(0, 255, 178, 0.15) !important;
}

/* Active state */
.hero-cta-button:active {
  transform: translateY(0px) !important;
  transition: all 100ms ease !important;
}

/* ============================================ */
/* Hero Contact Button (Secondary CTA)         */
/* ============================================ */

.hero-contact-wrapper {
  position: relative;
  z-index: 100;
}

.hero-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  height: 44px;
  background: transparent;
  border: 2px solid var(--color-primary-dark);
  border-radius: 48px;
  color: var(--color-primary-dark);
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.hero-contact-button:hover {
  background: rgba(var(--color-primary-dark-rgb), 0.1);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.hero-contact-button:active {
  transform: translateY(0px);
  transition: all 100ms ease;
}

.hero-contact-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hero-contact-button[aria-expanded="true"] .hero-contact-chevron {
  transform: rotate(180deg);
}

/* ============================================ */
/* Hero Contact Dropdown                        */
/* ============================================ */

.hero-contact-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  min-width: 260px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.hero-contact-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.hero-contact-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.hero-contact-dropdown__item:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--color-primary-dark);
}

.hero-contact-dropdown__item--whatsapp i { color: #25D366; font-size: 20px; }
.hero-contact-dropdown__item--telegram i { color: #0088CC; font-size: 20px; }

.hero-contact-dropdown__item + .hero-contact-dropdown__item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================ */
/* Hero Promo Section                           */
/* ============================================ */

.hero-promo {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Chip - bold uppercase text */
.hero-chip-wrapper {
  display: flex;
  justify-content: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero-promo__card {
  background: rgb(0 70 86 / 58%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 24px 32px;
}

.hero-promo__title {
  color: #ffffff;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.hero-promo__extra {
  color: var(--color-accent-green-light);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

.hero-promo__footnote {
  color: var(--color-primary-dark);
  font-size: 11px;
  line-height: 1.4;
  margin: 10px auto 0 auto;
  max-width: 400px;
}

/* AllCryptos CTA - flex-start on mobile/tablet, center on desktop */
.allcryptos-cta-container {
  display: block;
  width: 100%;
}

.allcryptos-cta-container .elemento-1f868ts {
  --1o75fk: flex-start;
}

/* Border top only for CTA links */
.allcryptos-cta-container .componente-mhz3u.elemento-1f868ts,
.howworks-cta-container .componente-mhz3u.elemento-1f868ts,
.faq-cta-container .componente-mhz3u.elemento-1f868ts {
  border-top: 1px solid #5f5f7138;
}

/* Border bottom for benefits cloud CTA */
.benefits-cloud-cta .componente-mhz3u.elemento-1f868ts {
  border-bottom: 1px solid #5f5f7138;
}

/* Remove pseudo-element border from CTA links */
.allcryptos-cta-container .componente-mhz3u.elemento-1f868ts::after,
.howworks-cta-container .componente-mhz3u.elemento-1f868ts::after,
.faq-cta-container .componente-mhz3u.elemento-1f868ts::after {
  --border-top-width: 0 !important;
  --border-bottom-width: 0 !important;
  --border-left-width: 0 !important;
  --border-right-width: 0 !important;
  border: none !important;
}

@media (min-width: 1200px) {
  .allcryptos-cta-container .elemento-1f868ts {
    --1o75fk: center;
  }
}

/* How It Works CTA */
.howworks-cta-container {
  display: block;
  width: 100%;
}

.howworks-cta-container .elemento-1f868ts {
  --1o75fk: flex-end;
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .howworks-cta-container .elemento-1f868ts {
    --1o75fk: center;
  }
}

/* FAQ CTA */
.faq-cta-container {
  display: block;
  width: 100%;
}

.faq-cta-container .elemento-1f868ts {
  --1o75fk: flex-end;
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .faq-cta-container .elemento-1f868ts {
    --1o75fk: center;
  }
}

/* Center all CTAs on mobile (below 810px) */
@media (max-width: 809.98px) {
  .allcryptos-cta-container .elemento-1f868ts,
  .howworks-cta-container .elemento-1f868ts,
  .faq-cta-container .elemento-1f868ts {
    --1o75fk: center !important;
  }
}

/* Final CTA - always visible */
.final-cta-container {
  display: block;
  width: 100%;
}

/* ============================================ */
/* Section Headers Responsive Alignment       */
/* ============================================ */

/* Mobile: left-aligned */
.section-header-allcryptos h3,
.section-header-allcryptos p,
.section-header-howworks h3,
.section-header-howworks p {
  --framer-text-alignment: left !important;
  text-align: left !important;
}

/* Desktop/Tablet: center-aligned */
@media (min-width: 810px) {
  .section-header-allcryptos h3,
  .section-header-allcryptos p,
  .section-header-howworks h3,
  .section-header-howworks p {
    --framer-text-alignment: center !important;
    text-align: center !important;
  }
}

/* ============================================ */
/* Feature Cards Responsive Layout */
/* ============================================ */

/* All viewports - ensure visibility */
.feature-card-container {
  display: block;
  width: 100%;
}

/* Fix width:1px issue in desktop view for feature card containers */
/* Override the flex: 1 0 0; width: 1px; rule from components.css:1480-1482 */
.contenedor-1dil51n,
.contenedor-9f8mor,
.contenedor-omby0e,
.contenedor-120a081 {
  width: auto !important;
  flex: 1 0 auto !important;
  min-width: 0;
}

/* =========================================== */
/* FIX: Feature Cards Desktop Layout          */
/* =========================================== */
/* Issue: Cards have unequal heights, borders don't close properly,
   and width:1px causes incorrect sizing in flex layout.
   Solution: Switch to CSS Grid with 4 equal columns and force
   100% height throughout the chain. */

@media (min-width: 1200px) {
  /* 1. Change flexbox to grid for equal distribution of 4 columns */
  .elemento-1r98zc4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  /* 2. Force full height in feature card wrapper */
  .feature-card-container {
    display: flex !important;
    height: 100% !important;
  }

  /* 3. Force full height and width in card containers */
  .contenedor-1dil51n,
  .contenedor-9f8mor,
  .contenedor-omby0e,
  .contenedor-120a081 {
    width: 100% !important;
    height: 100% !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 4. Force full height in the card element itself (the one with borders) */
  .contenedor-1dil51n > .componente-vtmw3,
  .contenedor-9f8mor > .componente-vtmw3,
  .contenedor-omby0e > .componente-vtmw3,
  .contenedor-120a081 > .componente-vtmw3 {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 5. Fix duplicate borders: overlap borders using negative margin */
  /* All cards keep their borders, but cards 2-4 shift left by 1px to overlap */
  .contenedor-9f8mor,
  .contenedor-omby0e,
  .contenedor-120a081 {
    margin-left: -1px !important;
  }
}

/* ============================================ */
/* Step Cards Responsive Borders              */
/* ============================================ */

/* Step cards - quitar bordes del componente interno */
.step-card-container .componente-nyztv {
  --border-left-width: 0px;
  --border-right-width: 0px;
}

/* Step cards - bordes aplicados al contenedor para que lleguen al 100% de altura */
.step-card-container {
  position: relative;
  border-left: 1px solid var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, #5f5f7138);
}

/* Última card (step 3) - sin borde derecho porque .elemento-12ct2er ya lo tiene */

/* Step Cards Image Gradient - More aggressive fade from top */
.step-card-container .elemento-ct06qu {
  mask: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 30%) add;
  -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 30%) add;
}

/* Step Cards - Mobile Layout (stacked vertically) */
@media (max-width: 809.98px) {
  /* Reset horizontal borders and use top/bottom borders instead */
  .step-card-container {
    border-left: 1px solid var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, #5f5f7138);
    border-right: 1px solid var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, #5f5f7138);
    border-bottom: 1px solid var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, #5f5f7138);
  }

  /* First step card: add top border */
  .step-card-container.step-card-1 {
    border-top: 1px solid var(--token-0aa53fec-fefb-40a3-a229-e26994a82701, #5f5f7138);
  }
}

/* ============================================ */
/* Main Content - Margin Top for Non-Home Pages */
/* ============================================ */

/* Todas las páginas excepto la home necesitan margin-top para no taparse con el navbar */
body:not(.home) main,
body:not(.home) .site-main,
body:not(.home) #main {
  margin-top: 70px;
}

/* ============================================ */
/* Footer Responsive Layout                   */
/* ============================================ */

/* Footer Main Container - Background & Padding */
.footer-consolidated.elemento-qckek0 {
  background: white;
  padding: 0;
  padding-bottom: 0 !important;
  color: var(--color-primary-dark);
  border-top: 1px solid var(--color-gray-light);
}

.footer-consolidated .contenedor-1tt0jgu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  width: 100%;
}

/* Footer Inner Container - Remove bottom padding */
.footer-consolidated .elemento-5grXw.elemento-9ruh9l {
  padding-bottom: 0 !important;
}

/* Footer Grid Layout */
.footer-consolidated .elemento-xxxoqb {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  width: 100% !important;
  max-width: 100% !important;
}

/* Logo Section */
.footer-consolidated .elemento-ea35qj {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-consolidated .elemento-ea35qj p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.footer-consolidated .elemento-a8bwhf {
  width: 118px;
  height: 40px;
  position: relative;
}

/* Navigation Grid */
.footer-consolidated .elemento-pukwa6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Column Containers */
.footer-consolidated .elemento-kk9h28,
.footer-consolidated .elemento-legal-column,
.footer-consolidated .elemento-15nr9x4 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Column Headers */
.footer-consolidated .elemento-1ofaxxm p,
.footer-consolidated .elemento-legal-title p,
.footer-consolidated .elemento-hf5npo p {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Link Containers */
.footer-consolidated .elemento-464j2d,
.footer-consolidated .elemento-legal-links,
.footer-consolidated .elemento-5965p1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer Links */
.footer-consolidated a {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.footer-consolidated a:hover {
  color: var(--color-primary) !important;
}

/* Copyright Section */
.footer-consolidated .footer-copyright {
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--color-gray-light);
  text-align: center;
}

.footer-consolidated .footer-copyright p {
  font-size: 13px;
  color: var(--color-text-secondary);
  opacity: 0.6;
  margin: 0;
}

/* Desktop: >= 1200px - Two column layout */
@media (min-width: 1200px) {
  .footer-consolidated .elemento-xxxoqb {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1240px !important;
  }

  .footer-consolidated .elemento-ea35qj {
    grid-column: 1 !important;
    display: flex !important;
  }

  .footer-consolidated .elemento-pukwa6 {
    grid-column: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
  }
}

/* Tablet Medium: 810px - 1199px */
@media (min-width: 810px) and (max-width: 1199px) {
  .footer-consolidated .elemento-xxxoqb {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .footer-consolidated .elemento-pukwa6 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
  }
}

/* Tablet Small: 640px - 809px */
@media (min-width: 640px) and (max-width: 809px) {
  .footer-consolidated .elemento-xxxoqb {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer-consolidated .elemento-pukwa6 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    margin-top: 40px !important;
    padding-top: 24px !important;
  }
}

/* Mobile: <= 639px */
@media (max-width: 639px) {
  .footer-consolidated {
    padding: 0 !important;
  }

  .footer-consolidated .contenedor-1tt0jgu {
    padding: 0 24px 32px 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-consolidated .elemento-xxxoqb {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  /* Logo section - centered */
  .footer-consolidated .elemento-ea35qj {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }

  .footer-consolidated .elemento-i7mcvg {
    margin-bottom: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-consolidated .elemento-i7mcvg p {
    text-align: center !important;
  }

  /* Navigation columns container */
  .footer-consolidated .elemento-pukwa6 {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    margin-top: 0 !important;
    padding-top: 40px !important;
    border-top: 1px solid var(--color-gray-light);
    width: 100% !important;
    align-items: center !important;
  }

  /* Each column - centered */
  .footer-consolidated .elemento-kk9h28,
  .footer-consolidated .elemento-legal-column,
  .footer-consolidated .elemento-15nr9x4 {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Column titles - centered */
  .footer-consolidated .elemento-1ofaxxm,
  .footer-consolidated .elemento-legal-title,
  .footer-consolidated .elemento-hf5npo {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .footer-consolidated .elemento-1ofaxxm p,
  .footer-consolidated .elemento-legal-title p,
  .footer-consolidated .elemento-hf5npo p {
    text-align: center !important;
  }

  /* Link containers - centered */
  .footer-consolidated .elemento-464j2d,
  .footer-consolidated .elemento-legal-links,
  .footer-consolidated .elemento-5965p1 {
    align-items: center !important;
    width: 100% !important;
  }

  /* Individual links - centered */
  .footer-consolidated .elemento-464j2d > div,
  .footer-consolidated .elemento-legal-links > div,
  .footer-consolidated .elemento-5965p1 > div {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .footer-consolidated .elemento-464j2d p,
  .footer-consolidated .elemento-legal-links p,
  .footer-consolidated .elemento-5965p1 p {
    text-align: center !important;
  }

  .footer-consolidated .footer-copyright {
    padding-top: 32px !important;
    margin-top: 40px !important;
  }
}

/* Mobile Very Small: <= 400px */
@media (max-width: 400px) {
  .footer-consolidated .elemento-pukwa6 {
    margin-top: 32px !important;
    padding-top: 16px !important;
  }

  .footer-consolidated .elemento-i7mcvg {
    margin-bottom: 24px !important;
  }
}

/* ============================================ */
/* Legal Disclaimer (Final CTA Section)       */
/* ============================================ */

.legal-disclaimer {
  max-width: var(--container-max-width-2xs);
  margin: var(--space-8) auto 0 auto;
  padding: 0 var(--space-4);
}

.legal-disclaimer p {
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-loose);
  color: rgba(var(--color-white-rgb), 0.4);
  text-align: center;
}

/* Responsive: Smaller text on mobile */
@media (max-width: 809px) {
  .legal-disclaimer p {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-relaxed);
  }
}

/* ============================================ */
/* Final CTA Section - Title Width Fix       */
/* ============================================ */

/* Spacing from previous section */
#unete {
  margin-top: 128px;
  border-top: 1px solid #5f5f7138;
}

/* Fix content container width (was 480px, too narrow) */
.elemento-1mclxc8 .elemento-1fssabx {
  max-width: 800px !important;
}

/* CRITICAL: Remove ALL spacing between letter spans */
.elemento-1mclxc8 .elemento-16ry7jl h2 span {
  display: inline !important;
  white-space: normal !important;
}

.elemento-1mclxc8 .elemento-16ry7jl h2 span span {
  display: inline !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  word-spacing: 0 !important;
}

/* Fix word spacing - remove the space character between word spans */
.elemento-1mclxc8 .elemento-16ry7jl h2 {
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

/* Increase gap between title and subtitle significantly */
.elemento-1mclxc8 .elemento-tbqhit {
  gap: 48px !important;
}

/* Center the CTA button */
.elemento-1mclxc8 .final-cta-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Sequential animations: Controlled by JavaScript (final-cta-animation.js) */
/* Initial hidden state for elements that will be animated */

.elemento-1mclxc8 .elemento-8zjcow {
  opacity: 0;
  transform: translateY(20px);
}

.elemento-1mclxc8 .final-cta-container {
  opacity: 0;
  transform: translateY(20px);
}

.elemento-1mclxc8 .legal-disclaimer {
  opacity: 0;
  transform: translateY(20px);
}

/* Mobile adjustments */
@media (max-width: 809px) {
  .elemento-1mclxc8 .elemento-1fssabx {
    max-width: 100% !important;
  }

  .elemento-1mclxc8 .elemento-tbqhit {
    gap: 24px !important;
  }
}

/* ============================================ */
/* "Cómo funciona" Section - Left Align Text */
/* ============================================ */

.section-header-howworks .elemento-1n1vbeb h3 {
  text-align: left !important;
}

.section-header-howworks .elemento-aegknm p {
  text-align: left !important;
}

/* ============================================ */
/* Step Numbers - Ensure Center Alignment */
/* ============================================ */

.elemento-jynq38 p {
  text-align: center !important;
}

.elemento-2u48zo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ============================================ */
/* MOBILE-ONLY FIXES                            */
/* ============================================ */

@media (max-width: 809px) {

  /* Fix 1: "Operamos dentro del marco legal" - Prevent text overflow */
  .elemento-feb50v h3 {
    font-size: 26px !important;
    line-height: 1.3 !important;
    padding: 0 20px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .elemento-feb50v {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* Fix 2: Cards spacing - Add bottom margin to cards grid */
  .elemento-1pctw {
    gap: 20px !important;
    padding-bottom: 32px !important;
  }

  /* Fix 2b: Ensure cards have consistent height and spacing */
  .elemento-1pctw > div {
    margin-bottom: 16px !important;
  }

  /* Fix 3: Final CTA section - Add spacing between overlapping texts */
  .elemento-8zjcow {
    margin-top: 24px !important;
    padding: 0 16px !important;
  }

  .elemento-8zjcow p {
    margin-top: 16px !important;
  }

  /* Fix 3b: Add spacing to final CTA title */
  .elemento-1mnp76 {
    margin-bottom: 24px !important;
  }

  /* Fix 4: Footer - Add more spacing between logo/text and Navigation/Socials */
  .elemento-pukwa6 {
    margin-top: 64px !important;
    padding-top: 32px !important;
  }

  /* Fix 4b: Add spacing after footer text description */
  .elemento-i7mcvg {
    margin-bottom: 48px !important;
  }

}

/* ============================================ */
/* Benefits Cloud - Corporate Tag Cloud Design  */
/* ============================================= */

/* Force vertical layout for the section containing the cloud */
.elemento-1lyxwrb {
  flex-direction: column !important;
}

/* Fix text container width when using column layout */
.elemento-1lyxwrb .elemento-1ilfi8c {
  width: 100% !important;
  max-width: 1110px !important;
  flex: none !important;
}

/* Wrapper container with glassmorphism */
.benefits-cloud-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 48px auto 0 auto;
  padding: 40px 48px;
  border: 1px solid rgba(var(--color-gray-light), 0.3);
  border-radius: var(--border-radius-lg-plus);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(var(--color-white-rgb), 0.06) 0%,
    rgba(var(--color-white-rgb), 0.02) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Glow effect container - positioned behind content */
.benefits-cloud-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Individual glow circles - subtle corporate glows */
.benefits-cloud-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(79px);
  opacity: 0.12;
  transition: opacity 0.6s ease;
}

.benefits-cloud-glow-top {
  width: 420px;
  height: 420px;
  background-color: var(--color-white);
  top: -210px;
  left: 50%;
  transform: translateX(-50%);
}

.benefits-cloud-glow-bottom {
  width: 480px;
  height: 420px;
  background-color: var(--token-d8314751-3109-4e71-b0e5-25619a148f21, rgb(0, 255, 178));
  bottom: -160px;
  right: -120px;
}

.benefits-cloud-glow-center {
  width: 380px;
  height: 380px;
  background-color: rgba(var(--color-primary-rgb), 0.6);
  top: 50%;
  left: -120px;
  transform: translateY(-50%);
}

/* Tag cloud container - flexbox with wrap */
.benefits-cloud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  row-gap: 16px;
}

/* Individual tag/badge styling */
.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    rgba(var(--color-white-rgb), 0.12) 0%,
    rgba(var(--color-white-rgb), 0.06) 100%
  );
  border: 1px solid rgba(var(--color-white-rgb), 0.18);
  border-radius: var(--border-radius-xl);
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-primary-dark);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);

  /* Initial state for animation */
  opacity: 0;
  transform: translateY(20px);
}

/* Tag size variants */
.benefit-tag[data-size="l"] {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
}

.benefit-tag[data-size="m"] {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
}

.benefit-tag[data-size="s"] {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
}

/* FontAwesome icon styling */
.benefit-tag i {
  font-size: 1.1em;
  color: var(--token-d8314751-3109-4e71-b0e5-25619a148f21, rgb(0, 255, 178));
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Hover state - subtle elevation */
.benefit-tag:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--color-accent-green-rgb), var(--opacity-strong));
  box-shadow:
    0 8px 20px rgba(var(--color-accent-green-rgb), 0.12),
    0 4px 8px rgba(var(--color-black-rgb), 0.06),
    0 0 0 1px rgba(var(--color-accent-green-rgb), var(--opacity-medium));
  background: linear-gradient(
    135deg,
    rgba(var(--color-white-rgb), 0.16) 0%,
    rgba(var(--color-white-rgb), 0.08) 100%
  );
}

.benefit-tag:hover i {
  color: var(--token-d8314751-3109-4e71-b0e5-25619a148f21, rgb(0, 255, 178));
  opacity: 1;
  transform: scale(1.1);
}

/* Animation when visible */
.benefit-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.benefit-tag[data-delay="0"] { transition-delay: 0s; }
.benefit-tag[data-delay="1"] { transition-delay: 0.1s; }
.benefit-tag[data-delay="2"] { transition-delay: 0.2s; }
.benefit-tag[data-delay="3"] { transition-delay: 0.3s; }
.benefit-tag[data-delay="4"] { transition-delay: 0.4s; }
.benefit-tag[data-delay="5"] { transition-delay: 0.5s; }

/* Tablet adjustments (810px - 1199px) */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .benefits-cloud-wrapper {
    max-width: 640px;
    margin: 40px auto 0 auto;
    padding: 36px 40px;
  }

  .benefits-cloud {
    gap: 12px;
    row-gap: 14px;
  }

  .benefit-tag[data-size="l"] {
    padding: 12px 22px;
    font-size: 14px;
  }

  .benefit-tag[data-size="m"] {
    padding: 11px 18px;
    font-size: 13px;
  }

  .benefit-tag[data-size="s"] {
    padding: 9px 16px;
    font-size: 12px;
  }

  /* Adjust glow sizes for tablet */
  .benefits-cloud-glow-top {
    width: 370px;
    height: 370px;
    top: -185px;
  }

  .benefits-cloud-glow-bottom {
    width: 420px;
    height: 370px;
    bottom: -140px;
    right: -100px;
  }

  .benefits-cloud-glow-center {
    width: 330px;
    height: 330px;
    left: -100px;
  }
}

/* Mobile adjustments (< 810px) */
@media (max-width: 809.98px) {
  .benefits-cloud-wrapper {
    max-width: 100%;
    margin: 32px auto 0 auto;
    padding: 28px 24px;
    border-radius: 16px;
  }

  .benefits-cloud {
    gap: 10px;
    row-gap: 12px;
  }

  /* Normalize sizes on mobile for better fit */
  .benefit-tag[data-size="l"],
  .benefit-tag[data-size="m"],
  .benefit-tag[data-size="s"] {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
  }

  .benefit-tag i {
    font-size: 1em;
  }

  /* Adjust glow sizes for mobile - less aggressive */
  .benefits-cloud-glow-top {
    width: 280px;
    height: 280px;
    top: -140px;
  }

  .benefits-cloud-glow-bottom {
    width: 320px;
    height: 280px;
    bottom: -120px;
    right: -80px;
  }

  .benefits-cloud-glow-center {
    width: 240px;
    height: 240px;
    left: -60px;
  }
}

/* ============================================ */
/* Circle backgrounds with borders - Light Mode */
/* ============================================ */
body.home div[data-border="true"],
body.home div[style*="border-radius:50px"],
body.home div[style*="border-top-left-radius:50px"] {
  background-color: transparent !important;
}

/* ============================================ */
/* Espaciado sección "Resultados"              */
/* ============================================ */

#resultados {
  margin-bottom: 128px !important;
}

/* ============================================ */
/* Espaciado sección "Cómo funciona"           */
/* ============================================ */

/* Sección header (título + CTA) - bordes arriba y abajo */
#como-funciona {
  --border-top-width: 1px !important;
  --border-bottom-width: 1px !important;
}

/* Sección de pasos (3 cards) - borde inferior y separación */
#howitworks {
  --border-top-width: 0px !important;
  --border-bottom-width: 1px !important;
  margin-bottom: 128px !important;
}

/* Sección "¿Aún tienes dudas?" - borde superior */
.elemento-1c37z6e {
  --border-top-width: 1px !important;
}

/* ============================================
   SCROLL INDICATOR - Hero Section
   ============================================ */

.scroll-indicator {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.scroll-indicator-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.scroll-indicator-link:hover {
  opacity: 0.7;
}

.scroll-indicator-chevron {
  width: 32px;
  height: 32px;
  color: var(--color-primary-dark);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.8;
}

.scroll-indicator-chevron-2 {
  margin-top: -18px;
  opacity: 0.5;
  animation-delay: 0.15s;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Hide on scroll */
.scroll-indicator--hidden {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Responsive: móvil */
@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 5px;
  }

  .scroll-indicator-chevron {
    width: 28px;
    height: 28px;
  }

  .scroll-indicator-chevron-2 {
    margin-top: -16px;
  }
}

/* ============================================ */
/* Contact Modal - "¿Hablamos antes?" Section  */
/* ============================================ */

/* Modal container */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.open {
  opacity: 1;
  visibility: visible;
}

/* Overlay oscuro */
.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Contenido del modal */
.contact-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 40px;
  max-width: 420px;
  width: 90%;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal.open .contact-modal-content {
  transform: scale(1) translateY(0);
}

/* Botón cerrar */
.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-modal-close:hover {
  background: #e0e0e0;
  color: #333;
  transform: scale(1.1);
}

/* Header del modal */
.contact-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.contact-modal-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: #004656;
  margin: 0 0 12px 0;
}

.contact-modal-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Opciones de contacto */
.contact-modal-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-modal-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-modal-option:hover {
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}

.contact-modal-option i {
  font-size: 24px;
}

/* WhatsApp */
.contact-modal-option.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.contact-modal-option.whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Telegram */
.contact-modal-option.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.35);
}

.contact-modal-option.telegram:hover {
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
}

/* Responsive: Mobile */
@media (max-width: 480px) {
  .contact-modal-content {
    padding: 28px 24px;
    border-radius: 16px;
  }

  .contact-modal-header h3 {
    font-size: 22px;
  }

  .contact-modal-header p {
    font-size: 14px;
  }

  .contact-modal-option {
    padding: 14px 20px;
    font-size: 16px;
  }

  .contact-modal-option i {
    font-size: 22px;
  }
}
