/*
 Theme Name: Divi Child
 Template: Divi
 Version: 1.1.0
*/

/* =========================================================
   BLOG FEATURE SECTION
   Shortcodes para Divi: desktop y mobile
   ========================================================= */

.cfv-blog-feature {
  padding: 28px 0 8px;
}

.cfv-blog-feature__header {
  margin-bottom: 24px;
}

.cfv-blog-feature__eyebrow {
  margin: 0 0 8px;
  color: #0b79c9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfv-blog-feature__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cfv-blog-feature__intro {
  max-width: 62ch;
  margin: 12px 0 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 17px;
  line-height: 1.6;
}

.cfv-blog-feature__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.55fr);
  gap: 24px;
  align-items: start;
}

.cfv-blog-feature__lead {
  min-width: 0;
}

.cfv-blog-feature__lead-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(11, 121, 201, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 121, 201, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%),
    #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.cfv-blog-feature__lead-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 121, 201, 0.12);
  color: #0b5f93;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cfv-blog-feature__lead-copy {
  margin: 0;
  color: rgba(15, 23, 42, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.cfv-blog-feature__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0b79c9;
  box-shadow: 0 12px 24px rgba(11, 121, 201, 0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.cfv-blog-feature__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.cfv-blog-feature__cta-icon {
  font-size: 18px;
  line-height: 1;
}

.cfv-blog-feature__posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cfv-blog-feature__posts .cfv-blog-card {
  min-width: 0;
}

.cfv-blog-feature--desktop {
  display: block;
}

.cfv-blog-feature--mobile {
  display: none;
}

@media (max-width: 980px) {
  .cfv-blog-feature {
    padding-top: 22px;
  }

  .cfv-blog-feature--mobile {
    display: block;
  }

  .cfv-blog-feature__layout {
    grid-template-columns: 1fr;
  }

  .cfv-blog-feature__lead-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .cfv-blog-feature__posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .cfv-blog-feature__header {
    margin-bottom: 18px;
  }

  .cfv-blog-feature__intro {
    font-size: 15px;
  }

  .cfv-blog-feature__lead-panel {
    padding: 20px;
  }

  .cfv-blog-feature__cta {
    width: 100%;
  }
}

/* ==================================================
   OFFICIAL CARD PROCESS
   Block: cfv-card-process
   ================================================== */

.cfv-card-process {
  --cfv-card-process-blue: #005581;
  --cfv-card-process-light-blue: #0074bd;
  --cfv-card-process-green: #19b967;
  --cfv-card-process-orange: #ff6438;
  --cfv-card-process-white: #ffffff;
  width: 100%;
  color: var(--cfv-card-process-blue);
  font-family: "Montserrat", "Arial", sans-serif;
}

.cfv-card-process__cards,
.cfv-card-process__footer {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.cfv-card-process__cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  gap: 20px;
}

.cfv-card-process__card {
  min-height: 238px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--cfv-card-process-white);
  border-radius: 14px;
  box-shadow: 0 5px 11px rgba(0, 0, 0, 0.16);
}

.cfv-card-process__image-link {
  display: block;
}

.cfv-card-process__image {
  display: block;
  width: 100%;
  height: 143px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.cfv-card-process__content {
  padding: 12px 12px 11px;
}

.cfv-card-process__heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 34px;
}

.cfv-card-process__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: none;
  stroke: var(--cfv-card-process-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cfv-card-process__card-title {
  margin: 1px 0 0;
  padding: 0;
  color: var(--cfv-card-process-blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.25px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cfv-card-process__card-title a {
  color: inherit;
  text-decoration: none;
}

.cfv-card-process__card-title a:hover {
  text-decoration: underline;
}

.cfv-card-process__title-line {
  display: block;
}

.cfv-card-process__description {
  margin: 10px 0 0;
  padding: 0;
  color: var(--cfv-card-process-light-blue);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cfv-card-process__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 37px;
}

.cfv-card-process__main-title {
  margin: 0;
  padding: 0;
  color: var(--cfv-card-process-blue);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.1px;
  white-space: nowrap;
}

.cfv-card-process__highlight {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-weight: 800;
}

.cfv-card-process__highlight::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  left: -2px;
  z-index: -1;
  height: 5px;
  background-color: var(--cfv-card-process-green);
  clip-path: polygon(0 30%,
      92% 10%,
      100% 55%,
      92% 70%,
      0 100%);
  content: "";
}

.cfv-card-process__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  color: var(--cfv-card-process-white) !important;
  background-color: var(--cfv-card-process-orange);
  border: 0;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.cfv-card-process__button:hover {
  color: var(--cfv-card-process-white) !important;
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.cfv-card-process__button:focus-visible {
  outline: 3px solid rgba(255, 100, 56, 0.3);
  outline-offset: 3px;
}

.cfv-card-process--desktop {
  display: block;
}

.cfv-card-process--mobile {
  display: none;
}

@media (max-width: 980px) {
  .cfv-card-process--desktop {
    display: none;
  }

  .cfv-card-process--mobile {
    display: block;
  }

  .cfv-card-process--mobile .cfv-card-process__cards {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 18px;
    padding: 12px 16px 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    box-sizing: border-box;
    scroll-padding-inline: 16px;
  }

  .cfv-card-process--mobile .cfv-card-process__cards::-webkit-scrollbar {
    display: none;
  }

  .cfv-card-process--mobile .cfv-card-process__card {
    flex: 0 0 calc((100% - 18px) / 2);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .cfv-card-process--mobile .cfv-card-process__card-title {
    font-size: 22px;
  }

  .cfv-card-process--mobile .cfv-card-process__description {
    font-size: 15px;
  }

  .cfv-card-process--mobile .cfv-card-process__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 28px;
  }

  .cfv-card-process--mobile .cfv-card-process__main-title {
    white-space: normal;
    font-size: clamp(28px, 4.8vw, 36px);
  }

  .cfv-card-process--mobile .cfv-card-process__button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cfv-card-process--mobile .cfv-card-process__card {
    flex-basis: 100%;
  }

  .cfv-card-process--mobile .cfv-card-process__cards {
    gap: 17px;
  }

  .cfv-card-process--mobile .cfv-card-process__card-title {
    font-size: 20px;
  }

  .cfv-card-process--mobile .cfv-card-process__button {
    height: 46px;
    font-size: 16px;
  }
}