/*
 * DigiLivo Visual Theme Override
 * Establishes color hierarchy, section rhythm, and light/dark alternation
 * Load AFTER style.css and all module CSS files
 */

/* ============================================================
   DESIGN TOKENS — extended palette
   ============================================================ */
:root {
  /* Light section backgrounds */
  --dgl-bg-white:   #ffffff;
  --dgl-bg-light:   #F4F8F2;   /* light gray-green */
  --dgl-bg-tint:    #EBF5E5;   /* soft green tint */

  /* Text on light backgrounds */
  --dgl-heading:    #0d200d;   /* near-black, green-tinted */
  --dgl-body:       #3d4f3d;   /* dark body text */
  --dgl-muted:      #627562;   /* subdued paragraph text */

  /* Structural elements on light backgrounds */
  --dgl-border:     #cde3c4;   /* subtle green border */
  --dgl-border-mid: #a8ceA0;   /* medium border */
  --dgl-card:       #ffffff;
  --dgl-card-alt:   #f0f7ec;   /* alternate card on light bg */
  --dgl-shadow:     0 4px 28px rgba(91, 191, 53, 0.10), 0 1px 6px rgba(0,0,0,0.06);
  --dgl-shadow-lg:  0 8px 48px rgba(91, 191, 53, 0.14), 0 2px 12px rgba(0,0,0,0.08);
}


/* ============================================================
   GLOBAL CORRECTIONS
   ============================================================ */

/* Section taglines: blue → DigiLivo green */
.section-title__tagline {
  background: linear-gradient(270deg, #5BBF35 0%, #3D9020 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title__tagline-shape-1,
.section-title__tagline-shape-2 {
  background: linear-gradient(270deg, #5BBF35 0%, #3D9020 100%);
}

/* Counter-two: replace old navy-to-blue gradient with deep forest green */
.counter-two {
  background: linear-gradient(90deg, #071a02 0%, #1a5008 45.5%, #071a02 100%) !important;
}

/* Counter-two icon ring: update old pink/purple rgba glow ring */
.counter-two__icon-inner {
  background: linear-gradient(270deg, rgba(61,144,32,0.18) 0%, rgba(91,191,53,0.18) 100%) !important;
}

/* Secondary outline button — for secondary actions inside light sections */
.thm-btn--outline {
  background: transparent;
  border: 2px solid var(--techguru-base);
  color: var(--techguru-base);
  padding: 16px 25px 15px;
}
.thm-btn--outline:hover {
  background: linear-gradient(270deg, #3D9020 0%, #5BBF35 100%);
  color: #ffffff;
  border-color: transparent;
}


/* ============================================================
   SECTION 1 — ABOUT TWO — White
   ============================================================ */
.about-two {
  background-color: var(--dgl-bg-white) !important;
}

/* Kill the purple radial glow (now forest green tint, still too loud on white) */
.about-two__shape-2 { opacity: 0.04; }

/* Headings */
.about-two h2,
.about-two h3,
.about-two h4,
.about-two h5,
.about-two .section-title__title {
  color: var(--dgl-heading) !important;
}
/* Span accents inside titles keep green */
.about-two .section-title__title span {
  color: var(--techguru-base) !important;
  -webkit-text-fill-color: unset;
  background: none;
  background-clip: unset;
}

/* Body text */
.about-two p,
.about-two__text,
.about-two__points-list li p {
  color: var(--dgl-body) !important;
}
.about-two .section-title__tagline {
  background: linear-gradient(270deg, #5BBF35 0%, #3D9020 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bullet point icons — keep green */
.about-two__points-list li .icon span {
  color: var(--techguru-base) !important;
}

/* Divider borders between bullet lists */
.about-two__points-box {
  border-top-color: var(--dgl-border) !important;
  border-bottom-color: var(--dgl-border) !important;
}

/* Experience badge */
.about-two__experience-box h3,
.about-two__experience-box span,
.about-two__experience-count-box h3,
.about-two__experience-count-box span,
.about-two__experience-text {
  color: var(--dgl-heading) !important;
}

/* Call box */
.about-two__call-box .about-two__call-content span {
  color: var(--dgl-muted) !important;
}
.about-two__call-box .about-two__call-content p a {
  color: var(--dgl-heading) !important;
}
.about-two__call-box .about-two__call-content p a:hover {
  color: var(--techguru-base) !important;
}
.about-two__call-icon span {
  color: var(--techguru-base) !important;
}

/* Client box: on white bg, give it the tint card style */
.about-two__client-box {
  background-color: var(--dgl-bg-tint) !important;
  box-shadow: var(--dgl-shadow);
}
.about-two__client-box::before {
  background: linear-gradient(90deg, #5BBF35, #3D9020) border-box !important;
}
.about-two__client-text,
.about-two__client-text span {
  color: var(--dgl-heading) !important;
}

/* Avatar borders on white background */
.about-two__client-img img {
  border-color: var(--dgl-border) !important;
}
.about-two__client-img-list li a {
  border-color: var(--dgl-border) !important;
}


/* ============================================================
   SECTION 2 — SERVICES TWO — Light Gray
   ============================================================ */
.services-two {
  background-color: var(--dgl-bg-light) !important;
}
/* Suppress decorative magenta glow */
.services-two__shape-1 { opacity: 0.05; }

/* Headings */
.services-two h2,
.services-two h3,
.services-two .section-title__title {
  color: var(--dgl-heading) !important;
}
.services-two .section-title__title span {
  color: var(--techguru-base) !important;
  -webkit-text-fill-color: unset;
  background: none;
  background-clip: unset;
}
.services-two .section-title__tagline {
  background: linear-gradient(270deg, #5BBF35 0%, #3D9020 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Service list items: title text */
.services-two__title a {
  color: var(--dgl-heading) !important;
}
.services-two__services-list-single:hover .services-two__title a {
  background: linear-gradient(270deg, #3D9020 0%, #5BBF35 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body text inside service list */
.services-two p,
.services-two__services-list-inner li p {
  color: var(--dgl-body) !important;
}

/* Divider lines — green-tinted on light */
.services-two__services-list-single::before,
.services-two__services-list-single-1::after {
  background: linear-gradient(270deg, rgba(91,191,53,0.6) 0%, rgba(61,144,32,0.6) 100%) !important;
  opacity: 0.30 !important;
}

/* Rotating text element color */
.services-two__curved-circle {
  color: var(--techguru-base) !important;
}

/* Counter number inside service list */
.services-two__count::after {
  color: var(--dgl-heading) !important;
}


/* ============================================================
   SECTION 3 — WHY CHOOSE ONE — Green Tint
   ============================================================ */
.why-choose-one {
  background-color: var(--dgl-bg-tint) !important;
}
/* Remove old purple/pink glows — they're now green tints but still too bright on light bg */
.why-choose-one__shape-4,
.why-choose-one__shape-5 { opacity: 0.04; }

/* Headings */
.why-choose-one h2,
.why-choose-one h3,
.why-choose-one h4,
.why-choose-one .section-title__title,
.why-choose-one__progress-title {
  color: var(--dgl-heading) !important;
}
.why-choose-one .section-title__title span {
  color: var(--techguru-base) !important;
  -webkit-text-fill-color: unset;
  background: none;
  background-clip: unset;
}
.why-choose-one .section-title__tagline {
  background: linear-gradient(270deg, #5BBF35 0%, #3D9020 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body text */
.why-choose-one p,
.why-choose-one__text {
  color: var(--dgl-body) !important;
}

/* Progress bar count label */
.why-choose-one__progress .count-text {
  color: var(--dgl-heading) !important;
}
/* Progress bar track on light bg */
.why-choose-one__progress .bar {
  background-color: rgba(91,191,53,0.12) !important;
}

/* Client info text */
.why-choose-one__client-content h3,
.why-choose-one__client-content span {
  color: var(--dgl-heading) !important;
}


/* ============================================================
   SECTION 4 — PORTFOLIO TWO — White
   ============================================================ */
.portfolio-two {
  background-color: var(--dgl-bg-white) !important;
}
/* Suppress decorative glow shapes */
.portfolio-two__shape-2,
.portfolio-two__shape-3,
.portfolio-two__shape-4 { opacity: 0.04; }

/* Section header */
.portfolio-two h2,
.portfolio-two .section-title__title {
  color: var(--dgl-heading) !important;
}
.portfolio-two .section-title__title span {
  color: var(--techguru-base) !important;
  -webkit-text-fill-color: unset;
  background: none;
  background-clip: unset;
}
.portfolio-two .section-title__tagline {
  background: linear-gradient(270deg, #5BBF35 0%, #3D9020 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Portfolio items themselves are image-based with dark overlays — keep them as is */


/* ============================================================
   SECTION 5 — PROCESS TWO — Deep Forest Green (dark, but green)
   ============================================================ */
.process-two__bg::before {
  background: linear-gradient(180deg, rgba(7,26,2,0.78) 0%, rgba(7,26,2,0.97) 100%) !important;
}

/* Process step headings and text stay white (dark section) */


/* ============================================================
   SECTION 6 — BLOG TWO — Light Gray
   ============================================================ */
.blog-two {
  background-color: var(--dgl-bg-light) !important;
}
/* Suppress old purple/pink glow decoratives */
.blog-two__shape-1,
.blog-two__shape-2 { opacity: 0.04; }

/* Section header */
.blog-two h2,
.blog-two h3,
.blog-two h4,
.blog-two .section-title__title {
  color: var(--dgl-heading) !important;
}
.blog-two .section-title__title span {
  color: var(--techguru-base) !important;
  -webkit-text-fill-color: unset;
  background: none;
  background-clip: unset;
}
.blog-two .section-title__tagline {
  background: linear-gradient(270deg, #5BBF35 0%, #3D9020 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Blog card titles and text on light bg */
.blog-two .blog-two__title a,
.blog-two h3 a {
  color: var(--dgl-heading) !important;
}
.blog-two .blog-two__title a:hover,
.blog-two h3 a:hover {
  color: var(--techguru-base) !important;
}
.blog-two p,
.blog-two__text,
.blog-two__meta-info p,
.blog-two__meta-info span,
.blog-two__meta-info a {
  color: var(--dgl-body) !important;
}
.blog-two__meta-info a:hover { color: var(--techguru-base) !important; }

/* Blog cards on light bg — white card with shadow */
.blog-two .blog-two__single {
  background-color: var(--dgl-card) !important;
  border-radius: 20px;
  box-shadow: var(--dgl-shadow);
}


/* ============================================================
   SECTION 7 — NEWSLETTER TWO — Keep rich green gradient
   ============================================================ */
/* Already correct — no changes needed */


/* ============================================================
   BREADCRUMB / PAGE HEADER — texto claro sobre imagen de fondo
   ============================================================ */
.page-header h2,
.page-header .page-header__title {
  color: var(--techguru-white) !important;
}
.thm-breadcrumb li,
.thm-breadcrumb li a {
  color: var(--techguru-white) !important;
}
.thm-breadcrumb li.active,
.thm-breadcrumb li a:hover {
  color: var(--techguru-base) !important;
}


/* ============================================================
   GLOBAL — Section title span accent color fix
   Ensure spans inside section titles on any background
   show the green accent without gradient text-fill clash
   ============================================================ */
.section-title__title span {
  color: var(--techguru-base);
  /* Keep the Marcellus serif weight for elegance */
}


/* ============================================================
   GLOBAL — Progress bar track background
   ============================================================ */
.bar {
  background: rgba(91, 191, 53, 0.10);
}


/* ============================================================
   GLOBAL — Smooth section transitions
   Adds subtle top border accent to signal section changes
   ============================================================ */
.about-two,
.portfolio-two {
  border-top: 3px solid rgba(91, 191, 53, 0.12);
}
.counter-two {
  border-top: none;
  border-bottom: none;
}
.services-two,
.why-choose-one,
.blog-two {
  border-top: 3px solid rgba(91, 191, 53, 0.15);
  border-bottom: 3px solid rgba(91, 191, 53, 0.15);
}


/* ============================================================
   RESPONSIVE — ensure light sections read well on mobile
   ============================================================ */
@media (max-width: 768px) {
  .about-two,
  .services-two,
  .why-choose-one,
  .portfolio-two,
  .blog-two {
    border-top-width: 2px;
    border-bottom-width: 2px;
  }
}


/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.dgl-whatsapp {
  position: fixed;
  bottom: var(--dgl-fab-inset, 28px);
  right: var(--dgl-fab-inset, 28px);
  z-index: 9998;
  width: var(--dgl-fab-size, 58px);
  height: var(--dgl-fab-size, 58px);
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.dgl-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55), 0 3px 10px rgba(0,0,0,0.22);
}
.dgl-whatsapp i {
  font-size: 30px;
  color: #ffffff;
  line-height: 1;
}
/* Pulse ring animation */
.dgl-whatsapp::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: whatsapp-pulse 2.2s ease-out infinite;
}
@keyframes whatsapp-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* ============================================================
   SCROLL-TO-TOP FAB (DigiLivo-only — no legacy .scroll-to-top class)
   ============================================================ */
.dgl-scroll-top {
  width: var(--dgl-fab-scroll-size, 48px);
  height: var(--dgl-fab-scroll-size, 48px);
  right: calc(var(--dgl-fab-inset, 28px) + (var(--dgl-fab-size, 58px) - var(--dgl-fab-scroll-size, 48px)) / 2);
  bottom: calc(var(--dgl-fab-inset, 28px) + var(--dgl-fab-size, 58px) + var(--dgl-fab-gap, 18px));
  background: var(--dgl-fab-scroll-bg);
  transform: none;
}

/* Brand logo sizing in partner carousel */
.brand-two__img img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.25s ease;
}
.brand-two__img img:hover {
  filter: grayscale(0%);
}

/* ============================================================
   HOME — Testimonials header
   ============================================================ */
.testimonial-two--home .testimonial-two__header {
  position: relative;
  z-index: 2;
  margin-bottom: 56px;
  padding-bottom: 28px;
}

.testimonial-two--home .testimonial-two__header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(280px, 70%);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--techguru-base-rgb), 0.35) 20%,
    rgba(var(--techguru-base-rgb), 0.95) 50%,
    rgba(var(--techguru-base-rgb), 0.35) 80%,
    transparent
  );
  box-shadow: 0 0 20px rgba(var(--techguru-base-rgb), 0.35);
}

.testimonial-two--home .section-title__tagline-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--techguru-base-rgb), 0.28);
  background: rgba(var(--techguru-base-rgb), 0.08);
  box-shadow:
    0 0 24px rgba(var(--techguru-base-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.testimonial-two--home .section-title__tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8ef06a 0%, #5bbf35 50%, #3d9020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonial-two--home .section-title__tagline-shape-1,
.testimonial-two--home .section-title__tagline-shape-2 {
  width: 28px;
  height: 2px;
  opacity: 0.9;
}

.testimonial-two--home .section-title__title {
  color: var(--techguru-white);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
  margin-top: 12px;
}

.testimonial-two--home .section-title__title span {
  display: inline-block;
  margin-top: 4px;
  background: linear-gradient(90deg, #5bbf35 0%, #8ef06a 40%, #c8f7a8 55%, #3d9020 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: dgl-title-shine 7s linear infinite;
}

@keyframes dgl-title-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.testimonial-two--home .testimonial-two__carousel {
  margin-top: 8px;
}

.testimonial-two--home .testimonial-two__single {
  background: linear-gradient(
    145deg,
    rgba(29, 37, 63, 0.95) 0%,
    rgba(36, 46, 75, 0.88) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(var(--techguru-base-rgb), 0.06);
}

.testimonial-two--home .testimonial-two__single:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 32px rgba(var(--techguru-base-rgb), 0.12);
}

.testimonial-two--home .testimonial-two__single--linked {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.testimonial-two--home .testimonial-two__star span {
  color: var(--techguru-base);
  opacity: 1;
}

.testimonial-two--home .testimonial-two__client-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.testimonial-two--home .testimonial-two__client-logos img {
  height: 32px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-two--home .section-title__title span {
    animation: none;
    -webkit-text-fill-color: unset;
    color: var(--techguru-base);
  }
}

/* Brand logo marquee — home */
.brand-marquee {
  position: relative;
  display: block;
  background-color: transparent;
  padding: 48px 0 40px;
  overflow: hidden;
  z-index: 1;
}

.brand-marquee__header {
  position: relative;
  z-index: 2;
  margin-bottom: 44px;
  padding-bottom: 24px;
}

.brand-marquee__header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(240px, 60%);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--techguru-base-rgb), 0.4) 30%,
    rgba(var(--techguru-base-rgb), 0.75) 50%,
    rgba(var(--techguru-base-rgb), 0.4) 70%,
    transparent
  );
}

.brand-marquee--home .section-title__tagline-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--techguru-base-rgb), 0.22);
  background: rgba(var(--techguru-base-rgb), 0.06);
}

.brand-marquee--home .section-title__tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8ef06a 0%, #5bbf35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-marquee--home .section-title__title {
  color: var(--techguru-white);
  line-height: 1.25;
  margin-top: 8px;
}

.brand-marquee--home .section-title__title span {
  color: var(--techguru-base);
  -webkit-text-fill-color: unset;
  background: none;
  animation: none;
}

.brand-marquee__text {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(var(--techguru-white-rgb), 0.78);
}

/* Logo track — subtle band only */
.brand-marquee__track {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 100%;
  padding: 28px 0;
  background: rgba(var(--techguru-black-rgb), 0.25);
  border-top: 1px solid rgba(var(--techguru-base-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--techguru-base-rgb), 0.15);
}

.brand-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.brand-marquee__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--techguru-black) 0%, transparent 100%);
}

.brand-marquee__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--techguru-black) 0%, transparent 100%);
}

.brand-marquee__wrap {
  position: relative;
  display: block;
  overflow: hidden;
  z-index: 2;
}

.brand-marquee__list {
  position: relative;
  display: block;
  width: fit-content;
}

.brand-marquee__list li {
  position: relative;
  display: block;
  float: left;
}

.brand-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0 32px;
  position: relative;
}

.brand-marquee__item img {
  max-height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.88;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-marquee__list li:hover .brand-marquee__item img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-two--home .section-title__title span {
    animation: none;
  }
}

/* About Four — team photos (Ceo-equipo + Ayudante) */
.about-four__img-box--team .about-four__img {
  aspect-ratio: 4 / 3;
  min-height: 360px;
  overflow: hidden;
  border-radius: 40px;
}

.about-four__img-box--team .about-four__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.about-four__img-box--team .about-four__img-2 {
  aspect-ratio: 3 / 4;
  max-width: 280px;
  overflow: hidden;
  border-radius: 40px;
  z-index: 2;
}

.about-four__img-box--team .about-four__img-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-four__img-box--team .about-four__experience {
  top: auto;
  bottom: 56px;
  left: -48px;
  right: auto;
  z-index: 3;
}

@media (max-width: 991px) {
  .about-four__img-box--team .about-four__img-2 {
    max-width: 240px;
    right: -50px;
    bottom: -120px;
  }

  .about-four__img-box--team .about-four__experience {
    bottom: 40px;
    left: -32px;
  }
}

@media (max-width: 767px) {
  .about-four__img-box--team .about-four__img {
    min-height: 280px;
    margin-bottom: 24px;
  }

  .about-four__img-box--team .about-four__img-2 {
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }

  .about-four__img-box--team .about-four__experience {
    top: 16px;
    bottom: auto;
    left: 16px;
    right: auto;
  }
}
