/* ==========================================================================
   FASTURA PRO 8 - CSS ADD-ON
   Designed in absolute compliance with Buho Design System guidelines.
   Uses tokens.css and brands.css variables natively.
   ========================================================================== */

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 132px; 
}

/* --- Global Button Rounded Border (100% / Pill capsule) --- */
.btn {
  border-radius: var(--radius-full) !important;
}

/* --- Nav Adjustments (Canonical Design compliance, No Glassmorphism) --- */
.nav {
  background: var(--white) !important;
  border-bottom: 1px solid var(--color-border) !important;
  backdrop-filter: none !important;
  padding: var(--space-5) var(--space-8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-text .title {
  font-size: var(--fs-h5);
  font-weight: 800;
  color: var(--color-primary);
}

.nav-brand-text .by {
  font-size: var(--fs-micro);
  color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: var(--space-2);
}

/* --- Hero Layout --- */
.hero {
  padding: var(--space-24) 0;
  background: radial-gradient(circle at top right, rgba(0, 191, 165, 0.04) 0%, transparent 60%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__mockup {
  position: relative;
}

.hero__img {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-slow) var(--ease-out);
}

.hero__mockup:hover .hero__img {
  transform: translateY(-4px);
}

/* --- Section Padding --- */
.section {
  padding: var(--space-24) 0;
}

.section--muted {
  background-color: var(--color-bg-subtle);
}

/* --- Features Grid (Módulos Base) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* --- Video Feature Showcase --- */
.showcase {
  margin-bottom: var(--space-24);
}

.showcase:last-child {
  margin-bottom: 0;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase__grid--reverse .showcase__col-media {
  order: -1;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-wrapper {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.media-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Section Heads --- */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12) auto;
}

/* --- Pricing Section --- */
.price-section {
  padding: var(--space-24) 0;
  background-color: var(--color-bg-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--dur-base) var(--ease-out);
}

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

.price-card--featured {
  border: 2px solid var(--fastura-teal);
  box-shadow: var(--shadow-md);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--fastura-teal);
  color: var(--fastura-navy);
  font-size: var(--fs-micro);
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.25);
}

.price-card__title {
  margin-bottom: var(--space-2);
  text-align: center;
}

.price-card__desc {
  text-align: center;
  margin-bottom: var(--space-6);
  min-height: 48px;
}

.price-card__selector {
  margin-bottom: var(--space-6);
  text-align: center;
  display: flex;
  justify-content: center;
}

.price-card__selector .btn-group {
  display: inline-flex;
  background-color: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  gap: 2px;
  align-items: stretch;
}

.price-card__selector .btn-group button {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.price-card__selector .btn-group button:hover {
  color: var(--color-text);
}

.price-card__selector .btn-group button.active {
  background-color: var(--white) !important;
  color: var(--color-primary) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-sm) !important;
}

.price-card__selector .btn-group button .period-duration {
  font-size: calc(var(--fs-caption) + 2px);
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}

.price-card__price-box {
  text-align: center;
  margin-bottom: var(--space-8);
  min-height: 80px;
}

.price-card__original-price {
  font-size: var(--fs-body);
  color: var(--color-text-subtle);
  text-decoration: line-through;
  display: block;
  margin-bottom: var(--space-1);
}

.price-card__price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.price-card__monthly-eq {
  font-size: var(--fs-body-sm);
  color: var(--color-danger);
  font-weight: 700;
  margin-top: var(--space-2);
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-10) 0;
  flex-grow: 1;
}

.price-card__features li {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.price-card__features li i {
  color: var(--fastura-teal-ink);
  font-size: 1.15rem;
  margin-top: 2px;
}

.price-card__features li small {
  display: block;
  color: var(--color-text-muted);
}

.price-card__features li.price-offer {
  background-color: var(--fastura-teal-l);
  border: 1px dashed var(--fastura-teal);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--fastura-teal-ink);
}

.price-card__action {
  margin-top: auto;
}

/* --- Banner Ad / Promo Blocks --- */
.banner-ad {
  background: radial-gradient(circle at center, var(--fastura-teal-l) 0%, var(--white) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  margin-bottom: var(--space-16);
  text-align: center;
}

.banner-ad__title {
  margin-bottom: var(--space-3);
}

.banner-ad__desc {
  max-width: 700px;
  margin: 0 auto var(--space-8) auto;
}

/* --- Tech Stack Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-5);
}

.tech-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.tech-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--fastura-teal);
}

.tech-card__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.tech-card__name {
  margin: 0;
}

/* --- Timeline updates --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.timeline-card__header {
  background-color: var(--color-bg-muted);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-card__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.timeline-card__date {
  font-size: var(--fs-caption);
  font-weight: 800;
  background: var(--fastura-teal);
  color: var(--fastura-navy);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  transition: all var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  box-shadow: 0 2px 6px rgba(0, 191, 165, 0.15);
}

.timeline-card__date:hover {
  background: var(--fastura-navy);
  color: var(--fastura-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 17, 68, 0.25);
}

.timeline-card__body {
  padding: var(--space-8) var(--space-6);
}

.update-group {
  margin-bottom: var(--space-6);
}

.update-group:last-child {
  margin-bottom: 0;
}

.update-group__title {
  color: var(--fastura-teal-ink);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.update-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-group__list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
}

.update-group__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fastura-teal);
  font-weight: 700;
}

/* --- FAQ Accordion --- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-3) 0;
  cursor: pointer;
}

.faq-item__question i {
  font-size: var(--fs-h4);
  transition: transform var(--dur-base) var(--ease-out);
  color: var(--fastura-teal);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out), padding var(--dur-slow) var(--ease-out);
  padding: 0;
}

.faq-item__answer p {
  margin: 0;
  padding-bottom: var(--space-4);
}

.faq-item.active .faq-item__question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
  padding-top: var(--space-2);
}

/* --- Promotion Banner Upper Confetti --- */
.promo-banner {
  position: relative;
  width: 100%;
  color: var(--white);
  text-align: center;
  font-weight: 600;
  z-index: 1000;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

.promo-banner__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  z-index: 2;
  font-size: var(--fs-body-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.promo-banner__svg {
  display: block;
  width: 100%;
  height: 48px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.promo-banner .btn-danger {
  background-color: var(--color-danger);
  color: var(--white);
  border: none;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-micro);
  text-decoration: none;
  transition: transform var(--dur-fast), background-color var(--dur-fast);
  box-shadow: 0 2px 8px rgba(240, 68, 56, 0.4);
}

.promo-banner .btn-danger:hover {
  background-color: #d93025;
  transform: translateY(-1px);
}

/* --- WhatsApp Float Button (wa-fab) --- */
.wa-fab {
  position: fixed;
  right: var(--space-8);
  bottom: var(--space-8);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50% 50% 50% 14px;
  background-color: #25D366;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.wa-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

/* --- Footer (Fastura Navy Dark theme) --- */
.footer {
  background-color: var(--fastura-navy);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-16) 0;
}

.footer p.t-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
}

.footer__social-link:hover {
  background-color: var(--fastura-teal);
  color: var(--fastura-navy);
  border-color: var(--fastura-teal);
  transform: translateY(-2px);
}

.footer__copy {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* --- Mobile / Responsiveness Override --- */
@media (max-width: 991px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__mockup {
    margin-top: var(--space-8);
  }
  
  .showcase__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .showcase__grid--reverse .showcase__col-media {
    order: 0;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-8);
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    border-radius: var(--radius-sm);
  }
  
  .nav .btn {
    display: none; /* Ocultar botón principal en mobile nav */
  }

  .nav-toggle {
    display: block;
    order: 2;
  }
  
  .footer__grid {
    flex-direction: column;
    text-align: center;
  }
}
