/* ═══════════════════════════════════════════════════════════════════
   FactorGestión CIA. LTDA. — Custom Stylesheet
   Base template: Finlon (overridden)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Palette: garnet red, vivid red, black, cream ── */
  --thm-base:        #8B1A1A;
  --thm-base-rgb:    139, 26, 26;
  --thm-primary:     #C41E1E;
  --thm-primary-rgb: 196, 30, 30;
  --thm-secondary:   #2A2A2A;
  --thm-secondary-rgb: 42, 42, 42;
  --thm-special:     #8B1A1A;
  --thm-special-rgb: 139, 26, 26;
  --thm-black:       #141414;
  --thm-black-rgb:   20, 20, 20;
  --thm-black2:      #0D0D0D;
  --thm-black2-rgb:  13, 13, 13;
  --thm-gray:        #F0ECE6;
  --thm-gray-rgb:    240, 236, 230;
  --thm-border-color: #DFD9D0;
  --thm-border-color-rgb: 223, 217, 208;
  --thm-color:       #555555;
  --thm-color-rgb:   85, 85, 85;

  /* ── Typography: Space Grotesk for headings, Inter for body ── */
  --ff-heading: 'Space Grotesk', 'Inter', sans-serif;
  --ff-body:    'Inter', sans-serif;
}

/* ── Apply heading font globally ── */
h1, h2, h3, h4, h5, h6,
.block-title__title,
.block-title__tagline,
.slider-one__title,
.slider-one__tagline,
.service-card-two__title,
.service-card__title,
.about-four__box__title,
.about-four__feature__title,
.about-four__image__caption__year,
.about-four__image__floated,
.video-one__title,
.how-step h4,
.why-us-card h4,
.blog-card__title,
.call-to-action-two__title,
.call-to-action-two__list li,
.testimonial-card__name,
.fact-one__title,
.fact-one__count,
.footer-widget__title,
.main-footer,
.bottom-footer,
.nav-item,
.dropdown-menu,
.page-header h2,
.topbar,
.main-menu__list > li > a {
  font-family: var(--ff-heading);
}

/* ═══════════════════════════════════════════════════════════════════
   1. SIGNATURE ELEMENT — Diagonal stripe motif
   ═══════════════════════════════════════════════════════════════════ */

/* ── Bold diagonal section header for dark backgrounds ── */
.stripe-header {
  position: relative;
  overflow: hidden;
  background-color: var(--thm-black);
}
.stripe-header::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 14px,
    rgba(196, 30, 30, 0.12) 14px,
    rgba(196, 30, 30, 0.12) 16px,
    transparent 16px,
    transparent 30px,
    rgba(139, 26, 26, 0.08) 30px,
    rgba(139, 26, 26, 0.08) 32px,
    transparent 32px,
    transparent 46px
  );
  pointer-events: none;
  z-index: 0;
}
.stripe-header > * { position: relative; z-index: 1; }

/* ── Light diagonal texture for cream backgrounds (subtle) ── */
.stripe-section {
  position: relative;
}
.stripe-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 5px,
    rgba(139, 26, 26, 0.04) 5px,
    rgba(139, 26, 26, 0.04) 10px
  );
  pointer-events: none;
  z-index: 0;
}
.stripe-section > * { position: relative; z-index: 1; }

/* ── Diagonal stripe divider between sections ── */
.stripe-divider {
  position: relative;
  height: 40px;
  overflow: hidden;
  background: var(--thm-black);
}
.stripe-divider::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: repeating-linear-gradient(
    135deg,
    var(--thm-primary) 0px,
    var(--thm-primary) 6px,
    var(--thm-base) 6px,
    var(--thm-base) 14px,
    var(--thm-black) 14px,
    var(--thm-black) 20px,
    transparent 20px,
    transparent 34px
  );
  pointer-events: none;
}

/* ── Footer top bar — bold diagonal stripes ── */
.main-footer {
  position: relative;
}
.main-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    135deg,
    var(--thm-base) 0px,
    var(--thm-base) 10px,
    var(--thm-primary) 10px,
    var(--thm-primary) 20px,
    var(--thm-black) 20px,
    var(--thm-black) 30px
  );
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   2. BACKGROUND & BODY
   ═══════════════════════════════════════════════════════════════════ */

body { background-color: #FBFAF7; }

/* ── Preloader: FactorGestión logo instead of template loader ── */
.preloader__image {
  background-image: url(../images/favicons/favicon-192x192.png) !important;
  background-size: 80px !important;
}

/* ═══════════════════════════════════════════════════════════════════
   3. TOPBAR
   ═══════════════════════════════════════════════════════════════════ */

.topbar {
  background-color: var(--thm-base);
  color: rgba(255,255,255,0.9);
}
.topbar a { color: rgba(255,255,255,0.85) !important; }
.topbar a:hover { color: #fff !important; }
.topbar__social a { color: rgba(255,255,255,0.75) !important; }
.topbar__social a:hover { color: #fff !important; }

/* ═══════════════════════════════════════════════════════════════════
   4. MAIN NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */

.main-menu {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.main-menu .main-menu__nav .main-menu__list > li > a {
  color: var(--thm-black) !important;
  font-weight: 500;
}
.main-menu .main-menu__nav .main-menu__list > li > a:hover { color: var(--thm-base) !important; }
.main-menu__btn {
  background: var(--thm-base) !important;
  color: #fff !important;
  border-radius: 6px;
  transition: all 0.3s;
}
.main-menu__btn:hover {
  background: var(--thm-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,26,26,0.3);
}
.main-menu__contact__text strong { color: var(--thm-base) !important; }

/* ═══════════════════════════════════════════════════════════════════
   5. HERO SLIDER — Bold black + diagonal red stripes
   ═══════════════════════════════════════════════════════════════════ */

/* Override slider background with our signature pattern */
.slider-one__item {
  position: relative;
}
/* ── Hero slider readability: dark overlay for text contrast ── */
.slider-one__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0.10) 100%);
  pointer-events: none;
  z-index: 11;
}
.slider-one__item .container { position: relative; z-index: 12; }
.slider-one__image { filter: brightness(1.3); }

.slider-one__tagline {
  background: transparent;
  color: #fff;
  border: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.slider-one__tagline i {
  color: var(--thm-primary);
}
.slider-one__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.slider-one__text {
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.slider-one__title span { color: #fff !important; }
.slider-one__title span::before {
  filter: brightness(0.7) sepia(1) saturate(5) hue-rotate(-30deg);
}
.slider-one__box {
  background: var(--thm-base) !important;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Standard buttons */
.thm-btn {
  background: var(--thm-base);
  color: #fff;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 600;
}
.thm-btn:hover {
  background: var(--thm-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,26,26,0.3);
}
.thm-btn--dark-hover:hover { background: var(--thm-black) !important; }

/* ═══════════════════════════════════════════════════════════════════
   6. PAGE HEADERS — Stripe pattern instead of flat black
   ═══════════════════════════════════════════════════════════════════ */

.page-header--fg {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--thm-black);
}
.page-header--fg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 14px,
    rgba(196, 30, 30, 0.12) 14px,
    rgba(196, 30, 30, 0.12) 16px,
    transparent 16px,
    transparent 30px,
    rgba(139, 26, 26, 0.08) 30px,
    rgba(139, 26, 26, 0.08) 32px,
    transparent 32px,
    transparent 46px
  );
  pointer-events: none;
  z-index: 0;
}
.page-header--fg .container { position: relative; z-index: 1; }
.page-header--fg h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header--fg p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0.75rem auto 0;
}
.page-header--fg__meta {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.85rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   7. BLOCK TITLES
   ═══════════════════════════════════════════════════════════════════ */

.block-title__tagline {
  color: var(--thm-base) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.block-title__tagline::before,
.block-title__tagline::after { background: var(--thm-base) !important; }
.block-title__title {
  color: var(--thm-black) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════════
   8. SERVICE CARDS
   ═══════════════════════════════════════════════════════════════════ */

.service-card-two {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  transition: all 0.3s;
}
.service-card-two:hover {
  border-color: rgba(139,26,26,0.2);
  box-shadow: 0 20px 48px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}
.service-card-two__icon i { color: var(--thm-base) !important; }
.service-card-two__link { color: var(--thm-base) !important; font-weight: 600; }
.service-card__icon { background: var(--thm-base) !important; }
.service-card__link { color: var(--thm-base) !important; }
.service-card__image::before { background: rgba(139,26,26,0.7) !important; }

/* ═══════════════════════════════════════════════════════════════════
   9. ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════ */

.about-four__feature__icon {
  background: rgba(139,26,26,0.1) !important;
  color: var(--thm-base) !important;
}
.about-four__image__caption { background: var(--thm-base) !important; }
.about-four__image__floated { color: var(--thm-base) !important; }

/* ═══════════════════════════════════════════════════════════════════
   10. VIDEO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.video-one__btn { background: var(--thm-base) !important; }
.video-one__btn .ripple { border-color: var(--thm-base) !important; }
.video-one__list li i { color: var(--thm-base) !important; }

/* ═══════════════════════════════════════════════════════════════════
   11. TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════ */

.testimonial-card__stars i { color: var(--thm-primary) !important; }
.testimonial-card__line { background: var(--thm-base) !important; }

/* ═══════════════════════════════════════════════════════════════════
   12. COUNTERS / FACTS
   ═══════════════════════════════════════════════════════════════════ */

.fact-one__count { color: var(--thm-base) !important; }
.fact-one__title { color: var(--thm-black) !important; }

/* ═══════════════════════════════════════════════════════════════════
   13. BENEFIT SECTION
   ═══════════════════════════════════════════════════════════════════ */

.benefit-one__box__icon i { color: var(--thm-base) !important; }
.benefit-one__image__caption { background: var(--thm-base) !important; }

/* ═══════════════════════════════════════════════════════════════════
   14. BLOG CARDS
   ═══════════════════════════════════════════════════════════════════ */

.blog-card__date { background: var(--thm-base) !important; }
.blog-card__link { color: var(--thm-base) !important; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   15. CTA SECTION
   ═══════════════════════════════════════════════════════════════════ */

.call-to-action-two__title { color: var(--thm-black); font-weight: 700; }
/* index.html CTA has dark bg, needs white title */
.call-to-action-two:not([style*="FBFAF7"]) .call-to-action-two__title { color: #fff; }
.call-to-action-two__list li { color: var(--thm-base); }

/* ═══════════════════════════════════════════════════════════════════
   16. HOW IT WORKS — Dark section with signature stripes
   ═══════════════════════════════════════════════════════════════════ */

.how-it-works {
  padding: 100px 0;
  background: var(--thm-black);
  color: #fff;
  position: relative;
}
.how-it-works .block-title__tagline { color: rgba(255,255,255,0.6) !important; }
.how-it-works .block-title__title { color: #fff !important; }
.how-step {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}
.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--thm-base);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.how-step h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.how-step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}
/* Connector line with diagonal accent */
@media (min-width: 768px) {
  .how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--thm-primary) 0px,
      var(--thm-primary) 4px,
      rgba(255,255,255,0.15) 4px,
      rgba(255,255,255,0.15) 8px
    );
  }
}

/* ═══════════════════════════════════════════════════════════════════
   17. WHY US CARDS
   ═══════════════════════════════════════════════════════════════════ */

.why-us-section {
  padding: 100px 0;
  background: #FBFAF7;
}
.why-us-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s;
  height: 100%;
}
.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.07);
  border-color: rgba(139,26,26,0.2);
}
.why-us-card__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--thm-base);
}
.why-us-card__icon i,
.contact-info-card .icon i {
  font-style: normal;
  line-height: 1;
  display: inline-block;
}
.why-us-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--thm-black);
  margin-bottom: 0.5rem;
}
.why-us-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   18. REQUIREMENTS CHECKLIST
   ═══════════════════════════════════════════════════════════════════ */

.req-checklist { list-style: none; padding: 0; }
.req-checklist li {
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.2s;
}
.req-checklist li:hover {
  border-color: rgba(139,26,26,0.2);
  transform: translateX(4px);
}
.req-checklist li .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--thm-base);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   19. CONTACT INFO CARDS
   ═══════════════════════════════════════════════════════════════════ */

.contact-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  height: 100%;
  transition: all 0.3s;
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}
.contact-info-card .icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.contact-info-card h4 { font-weight: 700; color: var(--thm-black); margin-bottom: 0.5rem; }
.contact-info-card a, .contact-info-card p { color: #555; font-size: 0.95rem; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════
   20. FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.main-footer { background-color: var(--thm-black); }
.footer-widget__logo img {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.footer-widget__logo a {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  line-height: 0;
}
.footer-widget__logo a img {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.mobile-nav__content .logo-box a {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  line-height: 0;
}
.footer-widget__title { color: #fff !important; }
.footer-widget__social a:hover { background: var(--thm-base) !important; }
.bottom-footer { background: var(--thm-black2); }

/* ═══════════════════════════════════════════════════════════════════
   21. WHATSAPP FLOAT
   ═══════════════════════════════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 85px; right: 24px;
  z-index: 9999;
  width: 48px; height: 48px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  transition: all 0.3s;
  text-decoration: none;
  font-size: 1.7rem;
  color: #fff;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   22. SERVICES SECTION
   ═══════════════════════════════════════════════════════════════════ */

.service-one { background: #FBFAF7; }

/* ═══════════════════════════════════════════════════════════════════
   23. HIDE BUSY TEMPLATE SHAPES
   ═══════════════════════════════════════════════════════════════════ */

.about-four__image__bg,
.service-card-two__shape,
.benefit-one__shape-2 { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   24. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .whatsapp-float { width: 44px; height: 44px; font-size: 1.2rem; bottom: 75px; right: 12px; }
  .page-header--fg { padding: 80px 0 50px; }
  .page-header--fg h2 { font-size: 1.5rem; }
  .stripe-divider { height: 24px; }
  .about-four__image__floated { display: none !important; }
  .slider-one__title { font-size: 1.6rem !important; line-height: 1.2; }
  .slider-one__text { font-size: 0.9rem; }
  .block-title__title { font-size: 1.5rem; }
  .service-card-two { margin-bottom: 1.5rem; }
  .why-us-card { margin-bottom: 1rem; }
  .how-step { margin-bottom: 1.5rem; }
  .how-step:not(:last-child)::after { display: none; }
  .main-footer .row > [class*="col-"] { margin-bottom: 1.5rem; }
  .slider-one__item { padding-top: 100px; padding-bottom: 80px; }
  .video-one { padding-top: 80px !important; padding-bottom: 80px !important; }
  .about-four { padding-top: 80px !important; padding-bottom: 40px !important; }
  .fact-one { padding-top: 60px !important; padding-bottom: 60px !important; }
  .how-it-works { padding: 60px 0; }
  .why-us-section { padding: 60px 0; }
  .main-menu__btn { font-size: 0.8rem; padding: 0.5rem 1rem; }
  .main-menu__contact__text { display: none; }
  .main-menu__contact__icon { margin-right: 0; }
  .call-to-action-two__image { display: none; }
  .scroll-to-top { right: 12px; bottom: 25px; }
}

/* ═══════════════════════════════════════════════════════════════════
   25. UTILITY: text balance for headings
   ═══════════════════════════════════════════════════════════════════ */

.slider-one__title,
.block-title__title,
.page-header--fg h2 {
  text-wrap: balance;
}
