/* =========================================================================
   A LA VUELTA — PROFESSIONAL VISUAL REFRESH
   Loaded after the base theme (style.css / responsive.css / screenshots
   styles). Every rule here is additive polish: colors, shadows, radius,
   spacing rhythm and micro-interactions. No layout/grid classes are
   touched, so the existing responsive behaviour is preserved.
   ========================================================================= */

:root {
  --av-purple: #8972FD;
  --av-purple-dark: #6C52E8;
  --av-green: #2EB67D;
  --av-green-dark: #23935F;
  --av-ink: #14121F;
  --av-grey-700: #4A4A57;
  --av-grey-500: #8F8F8F;
  --av-surface: #ffffff;
  --av-surface-soft: #F7F6FD;
  --av-border: rgba(20, 18, 31, 0.08);
  --av-shadow-sm: 0 4px 16px rgba(20, 18, 31, 0.06);
  --av-shadow-md: 0 14px 34px rgba(20, 18, 31, 0.10);
  --av-shadow-lg: 0 26px 60px rgba(20, 18, 31, 0.16);
  --av-shadow-purple: 0 16px 36px rgba(137, 114, 253, 0.28);
  --av-shadow-green: 0 16px 36px rgba(46, 182, 125, 0.28);
  --av-radius-sm: 10px;
  --av-radius-md: 16px;
  --av-radius-lg: 22px;
  --av-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --av-whatsapp: #25D366;
  --av-whatsapp-dark: #1DA851;
}

/* Respect reduced-motion preferences globally: decorative motion is muted,
   but opacity/color transitions (which communicate state, not flourish)
   stay intact. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   01. BASE / SELECTION / SCROLLBAR
   ------------------------------------------------------------------------- */

::selection {
  background: var(--av-purple);
  color: #fff;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #F1F0FB;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--av-purple), var(--av-green));
  border-radius: 10px;
}

a, .btn, .store, .fbox-1, .fbox-4, .pricing-table, .review-2 .review-txt {
  -webkit-tap-highlight-color: transparent;
}

/* Visible keyboard-focus ring on every interactive element, mouse users
   never see it (:focus-visible only fires for keyboard/AT focus). */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.whatsapp-float:focus-visible {
  outline: 3px solid var(--av-purple);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------------------------------------------------------
   02. HEADER & NAVIGATION
   ------------------------------------------------------------------------- */

.navbar.bg-tra {
  transition: background-color 0.35s var(--av-ease), box-shadow 0.35s var(--av-ease), padding 0.35s var(--av-ease);
}

.navbar.scroll.bg-tra {
  background-color: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px rgba(20, 18, 31, 0.08);
}

.navbar-nav .nav-link {
  font-weight: 500;
  letter-spacing: 0.1px;
  position: relative;
}

/* Animated underline affordance: grows from center on hover/focus so the
   nav communicates interactivity before the click. */
.navbar .navbar-nav > .nav-item > .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--av-purple), var(--av-green));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--av-ease);
}

.navbar .navbar-nav > .nav-item > .nav-link:hover::after,
.navbar .navbar-nav > .nav-item > .nav-link:focus-visible::after {
  width: 70%;
}

.navbar.scroll .dropdown-menu {
  border: none;
  border-radius: var(--av-radius-sm);
  box-shadow: var(--av-shadow-md);
  padding: 10px;
}

.dropdown-item {
  border-radius: 8px;
  font-weight: 500;
}

.header-socials a {
  transition: transform 0.3s var(--av-ease), background-color 0.3s var(--av-ease), border-color 0.3s var(--av-ease), color 0.3s var(--av-ease);
}

.header-socials a:hover {
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   03. BUTTONS — GLOBAL UPGRADE
   ------------------------------------------------------------------------- */

.btn {
  border-radius: var(--av-radius-sm);
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(137, 114, 253, 0.22);
  transition: transform 0.35s var(--av-ease), box-shadow 0.35s var(--av-ease), background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  overflow: hidden;
}

/* Light sweep micro-interaction on hover. Uses ::after (::before is already
   the base theme's hover fill-expand effect) and is clipped by .btn's own
   overflow:hidden so it can never bleed into neighbouring elements. */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.65s var(--av-ease);
}

.btn:hover::after {
  left: 130%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(137, 114, 253, 0.32);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-tra-black {
  box-shadow: none;
}

.btn-tra-black:hover {
  box-shadow: 0 14px 28px rgba(20, 18, 31, 0.16);
}

.btn-lightgreen, .btn-green {
  box-shadow: var(--av-shadow-green);
}

.btn-lightgreen:hover, .btn-green:hover {
  box-shadow: 0 20px 40px rgba(46, 182, 125, 0.36);
}

.btn-white {
  box-shadow: 0 10px 24px rgba(20, 18, 31, 0.14);
}

/* -------------------------------------------------------------------------
   04. STORE BADGES
   ------------------------------------------------------------------------- */

a.store img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

a.store:hover {
  filter: none;
}

/* -------------------------------------------------------------------------
   05. HERO-9
   ------------------------------------------------------------------------- */

/* Tint overlay is layered directly into the background image (instead of a
   positioned ::before) so it can never paint over the phone mockup that
   overlaps this section via a negative margin lower down the page. */
.hero-9-text {
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(108, 82, 232, 0.22) 0%, rgba(10, 8, 22, 0) 55%),
    linear-gradient(180deg, rgba(14, 10, 32, 0.78) 0%, rgba(40, 24, 78, 0.62) 45%, rgba(14, 10, 32, 0.88) 100%),
    url(../images/hero-9.jpg);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center bottom, center bottom, center bottom;
  background-size: cover, cover, cover;
}

#hero-9 .app-name {
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}

#hero-9 .h2-sm {
  font-weight: 500;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero-9 .p-lg {
  color: rgba(255, 255, 255, 0.85);
}

.hero-9-image img {
  filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.45));
  animation: av-float 6s ease-in-out infinite;
}

@keyframes av-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Hero store badges row */
.hero-stores-badge {
  margin-top: 45px;
}

/* Schedule demo CTA under the store badges.
   Primary styles live in index.html <style> so they always apply
   even if this file is not served from /css/. These rules are a backup. */
.hero-demo-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#hero-9 a.btn-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #14121F;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 16px 32px 16px 16px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

#hero-9 a.btn-demo .btn-demo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2EB67D 0%, #23935F 100%);
  color: #fff;
  flex-shrink: 0;
}

#hero-9 a.btn-demo .btn-demo-arrow {
  color: #2EB67D;
  font-size: 0.85rem;
}

#hero-9 a.btn-demo:hover {
  color: #14121F;
  transform: translateY(-3px) scale(1.03);
}

.hero-demo-cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-style: normal;
  color: #fff;
}

/* -------------------------------------------------------------------------
   06. SECTION TITLE ACCENT
   ------------------------------------------------------------------------- */

.section-title h2::before {
  content: '';
  display: block;
  width: 58px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--av-purple), var(--av-green));
  background-size: 200% 100%;
  animation: av-border-flow 5s ease infinite;
}

.section-title h2 {
  font-weight: 700;
  color: var(--av-ink);
}

.section-title p {
  color: var(--av-grey-700);
}

/* -------------------------------------------------------------------------
   07. FEATURES-1 CARDS
   ------------------------------------------------------------------------- */

.fbox-1 {
  background-color: var(--av-surface);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-md);
  padding: 48px 32px 38px;
  box-shadow: var(--av-shadow-sm);
  transition: transform 0.4s var(--av-ease), box-shadow 0.4s var(--av-ease), border-color 0.4s var(--av-ease);
}

.fbox-1:hover {
  transform: translateY(-8px);
  box-shadow: var(--av-shadow-lg);
  border-color: rgba(137, 114, 253, 0.25);
  border-image: linear-gradient(135deg, var(--av-purple), var(--av-green)) 1;
}

.fbox-1 > span {
  position: relative;
  display: inline-block;
  z-index: 1;
  margin-bottom: 6px;
}

/* NOTE: uses ::after (not ::before) because the pe-7s-* icon font itself
   draws the glyph via a ::before rule (e.g. .pe-7s-piggy:before { content:
   "\e6a2" }). Reusing ::before here would win the cascade on `content`
   (higher specificity) and silently blank out every icon. */
.fbox-1 > span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 114, 253, 0.12) 0%, rgba(46, 182, 125, 0.08) 100%);
  z-index: -1;
  transition: transform 0.4s var(--av-ease);
}

.fbox-1:hover > span::after {
  transform: translate(-50%, -50%) scale(1.08);
}

.fbox-1 h5 {
  font-weight: 700;
  color: var(--av-ink);
}

.fbox-1 p {
  color: var(--av-grey-700);
}

/* -------------------------------------------------------------------------
   08. CONTENT-1 QUOTE CARD
   ------------------------------------------------------------------------- */

.quote {
  background-color: var(--av-surface-soft);
  border-radius: var(--av-radius-md);
  padding: 28px 28px 24px;
  box-shadow: var(--av-shadow-sm);
}

.quote p {
  border-left: 3px solid var(--av-green);
  padding-left: 18px;
  margin-top: 0;
  color: var(--av-grey-700);
}

/* -------------------------------------------------------------------------
   09. FEATURES-4 — GLASS CARDS ON PURPLE BACKGROUND
   ------------------------------------------------------------------------- */

#features-4 .bg-lightpurple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 140% at 15% 10%, #9B87FF 0%, #8972FD 42%, #7357EE 100%);
}

/* Faint tech dot-grid, purely decorative, sits behind every child via
   isolation on the parent (creates a fresh stacking context so this
   negative z-index can never escape below the section's own background). */
#features-4 .bg-lightpurple::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 120% at 50% 30%, #000 30%, transparent 85%);
}

#features-4 .bg-lightpurple > .container {
  position: relative;
  z-index: 1;
}

#features-4 .fbox-4 {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--av-radius-md);
  padding: 26px 26px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--av-ease), background-color 0.4s var(--av-ease), border-color 0.4s var(--av-ease);
}

#features-4 .fbox-4:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

#features-4 .fbox-4 span {
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* ::after, not ::before — see note above the .fbox-1 rule. */
#features-4 .fbox-4 span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

#features-4 .fbox-4 h5 {
  font-weight: 700;
  letter-spacing: 0.2px;
}

#features-4 .fbox-4-img {
  filter: drop-shadow(0 30px 45px rgba(20, 8, 60, 0.35));
}

#features-4 .video-block-wrapper {
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

/* Keep the feature copy visually centered in both desktop columns. The base
   layout applies directional alignment to the left/right parent columns,
   which makes the card content look offset even when the cards themselves
   are evenly distributed. */
@media (min-width: 768px) {
  #features-4 .fbox-4 {
    text-align: center;
  }

  #features-4 .fbox-4 > span {
    display: block;
    width: 68px;
    height: 68px;
    line-height: 68px;
    margin: 0 auto 18px;
    text-align: center;
  }

  #features-4 .fbox-4 h5,
  #features-4 .fbox-4 p {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  #features-4 .fbox-4 h5 {
    margin-bottom: 10px;
  }
}

/* -------------------------------------------------------------------------
   10. STATISTIC-2 — DESKTOP CARDS
   ------------------------------------------------------------------------- */

@media (min-width: 768px) {
  #statistic-2 .b-bottom,
  #statistic-2 .b-right {
    border: none;
  }

  #statistic-2 .col-sm-6 {
    padding: 8px;
  }

  #statistic-2 .statistic-block {
    background: linear-gradient(160deg, #ffffff 0%, #F7F6FD 100%);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-md);
    padding: 38px 20px;
    box-shadow: var(--av-shadow-sm);
    transition: transform 0.4s var(--av-ease), box-shadow 0.4s var(--av-ease);
  }

  #statistic-2 .statistic-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--av-shadow-md);
  }
}

.statistic-number {
  background: linear-gradient(135deg, var(--av-purple) 0%, var(--av-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(137, 114, 253, 0.35));
}

.statistic-img img {
  filter: drop-shadow(0 30px 50px rgba(20, 18, 31, 0.18));
}

/* -------------------------------------------------------------------------
   11. PRICING TABLES
   ------------------------------------------------------------------------- */

.pricing-table {
  border-radius: var(--av-radius-md);
  box-shadow: var(--av-shadow-sm);
  transition: transform 0.4s var(--av-ease), box-shadow 0.4s var(--av-ease), border-color 0.4s var(--av-ease);
}

.pricing-table:hover {
  transform: translateY(-6px);
  box-shadow: var(--av-shadow-lg);
}

.pricing-table.highlight {
  position: relative;
  border-color: var(--av-green);
  box-shadow: 0 20px 45px rgba(46, 182, 125, 0.2);
  z-index: 1;
}

/* Slow-flowing gradient glow behind the featured plan — a quiet "this one
   is alive" signal that reads as premium without stealing focus from the
   copy. ::after (::before already renders the "Más elegido" ribbon). */
.pricing-table.highlight::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--av-radius-md) + 2px);
  background: linear-gradient(120deg, var(--av-green), var(--av-purple), var(--av-green));
  background-size: 220% 220%;
  opacity: 0.55;
  animation: av-border-flow 7s ease infinite;
}

@keyframes av-border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pricing-row-desktop .pricing-table.highlight {
  transform: scale(1.035);
}

.pricing-row-desktop .pricing-table.highlight:hover {
  transform: scale(1.035) translateY(-6px);
}

.pricing-table.highlight::before {
  content: "Más elegido";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--av-green) 0%, var(--av-green-dark) 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(46, 182, 125, 0.4);
  white-space: nowrap;
}

.pricing-plan h4 {
  font-weight: 700;
  color: var(--av-ink);
}

.pricing-table span.price {
  color: var(--av-ink);
}

ul.features li i,
ul.features li .svg-inline--fa {
  color: var(--av-green);
}

ul.features li.disabled-option i,
ul.features li.disabled-option .svg-inline--fa {
  color: #ccc;
}

/* -------------------------------------------------------------------------
   12. TESTIMONIALS
   ------------------------------------------------------------------------- */

.review-2 .review-txt {
  border: none;
  border-radius: var(--av-radius-md);
  box-shadow: var(--av-shadow-md);
}

/* The decorative quote mark is attached to the outer .review-2 wrapper
   (not .review-txt) on purpose: .review-txt and .testimonial-avatar are
   both static siblings and their paint order (avatar on top, via a
   negative margin) must stay intact. Positioning .review-2 itself does
   not affect that internal order. */
.review-2 {
  position: relative;
}

.review-2 .review-txt::after {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(137, 114, 253, 0.14);
  font-style: normal;
  pointer-events: none;
}

.review-2.slick-current .review-txt {
  box-shadow: var(--av-shadow-lg);
}

.review-2 .testimonial-avatar img {
  box-shadow: 0 8px 20px rgba(20, 18, 31, 0.18);
}

/* -------------------------------------------------------------------------
   13. FAQ — DESKTOP CARDS
   ------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .question {
    background-color: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-md);
    padding: 24px 26px;
    box-shadow: var(--av-shadow-sm);
    transition: transform 0.35s var(--av-ease), box-shadow 0.35s var(--av-ease), border-color 0.35s var(--av-ease);
  }

  .question:hover {
    transform: translateY(-4px);
    box-shadow: var(--av-shadow-md);
    border-color: rgba(137, 114, 253, 0.25);
    border-image: linear-gradient(135deg, var(--av-purple), var(--av-green)) 1;
  }

  .question h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--av-ink);
  }

  .question h5::before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--av-purple);
    font-size: 1.05rem;
    flex-shrink: 0;
  }
}

.faq-show-more-btn {
  background: linear-gradient(135deg, var(--av-purple) 0%, var(--av-purple-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: var(--av-shadow-purple);
}

/* -------------------------------------------------------------------------
   14. DOWNLOAD-4
   ------------------------------------------------------------------------- */

.download-img-overlap img {
  filter: drop-shadow(0 40px 60px rgba(20, 18, 31, 0.25));
}

/* -------------------------------------------------------------------------
   15. FOOTER — MICRO POLISH
   ------------------------------------------------------------------------- */

.footer-links-list a {
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links-list a:hover {
  color: var(--av-purple) !important;
  padding-left: 4px;
}

.footer-social-icons .social-icon:hover {
  box-shadow: 0 10px 24px rgba(137, 114, 253, 0.45);
}

/* -------------------------------------------------------------------------
   16. BOTTOM QUICK FORM
   ------------------------------------------------------------------------- */

.bottom-form-header {
  box-shadow: var(--av-shadow-lg);
}

/* -------------------------------------------------------------------------
   17. RESPONSIVE ADJUSTMENTS
   ------------------------------------------------------------------------- */

@media (max-width: 767px) {
  /* Keep the CTA in its own layer above the phone mockup. The base theme
     uses a large negative image margin on small screens, which otherwise
     makes the CTA appear over the phone camera. */
  #hero-9-content {
    position: relative;
    z-index: 3;
    padding-bottom: 42px;
  }

  #hero-9 .hero-txt {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #hero-9 .hero-txt p {
    max-width: 340px;
  }

  .hero-stores-badge {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }

  .hero-stores-badge a.store {
    display: inline-flex;
    margin: 0;
  }

  .hero-stores-badge img {
    width: auto;
    max-width: 145px;
    height: auto;
  }

  .hero-demo-cta {
    position: relative;
    z-index: 4;
    width: 100%;
    margin-top: 22px;
    padding: 0 10px;
  }

  #hero-9 a.btn-demo {
    width: min(100%, 320px);
    max-width: 320px;
    min-height: 66px;
    justify-content: center;
    padding: 10px 18px 10px 10px;
  }

  .hero-9-image {
    position: relative;
    z-index: 1;
    margin-top: 0;
  }

  .hero-9-image img {
    display: block;
    width: 100%;
    max-width: 800px;
    /* Keep the phone below the demo CTA and its supporting note. */
    margin: 12px auto 0;
  }

  /* The decorative halos stay behind the glyph and never enter the text
     flow, so they cannot touch headings or paragraphs on narrow screens. */
  .fbox-1 {
    position: relative;
    isolation: isolate;
    padding: 52px 24px 30px;
    overflow: hidden;
  }

  .fbox-1 > span {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    line-height: 72px;
    margin: 0 auto 18px;
  }

  .fbox-1 > span::after {
    width: 84px;
    height: 84px;
    z-index: -1;
  }

  .fbox-1 h5,
  .fbox-1 p {
    position: relative;
    z-index: 2;
  }

  /* FEATURES-4: keep the icon halo in its own visual lane so it cannot
     overlap the heading or paragraph on narrow screens. */
  #features-4 .row {
    row-gap: 28px;
  }

  #features-4 .fbox-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
    padding: 28px 22px 24px;
    overflow: visible;
  }

  #features-4 .fbox-4:last-child {
    margin-bottom: 0;
  }

  #features-4 .fbox-4 > span {
    display: block;
    width: 68px;
    height: 68px;
    line-height: 68px;
    margin: 0 auto 20px;
    flex: 0 0 68px;
    text-align: center;
    z-index: 1;
  }

  #features-4 .fbox-4 > span::after {
    width: 82px;
    height: 82px;
    z-index: -1;
  }

  #features-4 .fbox-4 h5 {
    width: 100%;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
  }

  #features-4 .fbox-4 p {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  #features-4 .fbox-4-img {
    margin: 8px auto 18px;
  }

  #features-4 .fbox-4-img .video-popup {
    display: block;
    position: relative;
  }

  #features-4 .fbox-4-img .video-block-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  #features-4 .fbox-4-img img {
    display: block;
    width: 100%;
    height: auto;
  }

  @media (max-width: 380px) {
    #features-4 .fbox-4 {
      padding-left: 18px;
      padding-right: 18px;
    }

    #features-4 .fbox-4 > span {
      margin-bottom: 18px;
    }
  }

  @media (min-width: 768px) {
    #features-4 .fbox-4 > span {
      margin-bottom: 18px;
    }

    #features-4 .fbox-4-img .video-popup {
      position: relative;
    }

    #features-4 .fbox-4-img .video-block-wrapper {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

  .fbox-1 h5 {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .fbox-1 p {
    margin-bottom: 0;
    line-height: 1.6;
  }
}

@media (min-width: 768px) {
  #hero-9-content {
    position: relative;
    z-index: 3;
  }

  .hero-9-image {
    position: relative;
    z-index: 1;
  }

  /* Keep the video control centered on the full desktop mockup. */
  #features-4 .fbox-4-img {
    position: relative;
    margin: 0 auto;
  }

  #features-4 .fbox-4-img .video-popup {
    position: relative;
    display: block;
  }

  #features-4 .fbox-4-img .video-block-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
}

/* -------------------------------------------------------------------------
   18. AURORA BACKDROPS
   Soft drifting color blobs behind a few content sections for a modern,
   "alive" feel. Only applied to sections confirmed to have no negative-
   margin overlap tricks; each host gets isolation:isolate so the blob's
   negative z-index is contained to that section and can never affect
   neighbouring sections or the fixed header.
   ------------------------------------------------------------------------- */

#content-8,
#statistic-2,
#reviews-2,
#faqs-1 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#content-8 > .container,
#statistic-2 > .container,
#reviews-2 > .container,
#faqs-1 > .container {
  position: relative;
  z-index: 1;
}

#content-8::before,
#statistic-2::before,
#reviews-2::before,
#faqs-1::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(137, 114, 253, 0.14) 0%, rgba(137, 114, 253, 0) 70%);
  top: -220px;
  right: -180px;
  animation: av-drift 16s ease-in-out infinite;
}

#content-8::after,
#statistic-2::after,
#reviews-2::after,
#faqs-1::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(46, 182, 125, 0.12) 0%, rgba(46, 182, 125, 0) 70%);
  bottom: -200px;
  left: -160px;
  animation: av-drift 20s ease-in-out infinite reverse;
}

@keyframes av-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

@media (max-width: 767px) {
  #content-8::before,
  #statistic-2::before,
  #reviews-2::before,
  #faqs-1::before,
  #content-8::after,
  #statistic-2::after,
  #reviews-2::after,
  #faqs-1::after {
    width: 320px;
    height: 320px;
  }
}

/* -------------------------------------------------------------------------
   19. SCROLL PROGRESS BAR
   A slim gradient bar pinned under the viewport top edge, filled by JS
   (see the inline script at the bottom of index.html) as the visitor
   scrolls. Common pattern on long single-page sites to orient the reader.
   ------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--av-purple), var(--av-green));
  box-shadow: 0 0 10px rgba(137, 114, 253, 0.6);
  transition: width 0.1s linear;
}

/* -------------------------------------------------------------------------
   20. WHATSAPP FLOATING BUTTON
   Fixed bottom-right action button, offset from the existing "Contáctanos"
   quick-form (which docks further left at right:6em) so the two never
   overlap at any breakpoint where both are visible.
   ------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--av-whatsapp) 0%, var(--av-whatsapp-dark) 100%);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 12px 30px rgba(29, 168, 81, 0.45);
  transition: transform 0.35s var(--av-ease), box-shadow 0.35s var(--av-ease);
  text-decoration: none !important;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 40px rgba(29, 168, 81, 0.55);
}

.whatsapp-float i {
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* Expanding pulse ring, communicates "live chat" at rest. */
.whatsapp-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--av-whatsapp);
  opacity: 0.55;
  animation: av-whatsapp-pulse 2.6s var(--av-ease) infinite;
}

@keyframes av-whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Tooltip label, desktop hover only (mobile relies on the icon + universal
   WhatsApp recognition, avoiding an always-on label that would crowd the
   corner on small screens). */
.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--av-ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: var(--av-shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--av-ease), transform 0.3s var(--av-ease);
}

.whatsapp-float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--av-ink);
}

@media (hover: hover) {
  .whatsapp-float:hover .whatsapp-float-tooltip,
  .whatsapp-float:focus-visible .whatsapp-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    font-size: 27px;
  }
}
