/* Pseudoelements */
.w-tabs:before,
.w-tabs:after,
.w-nav:before,
.w-nav:after,
.w-richtext:before,
.w-richtext:after,
.w-container:before,
.w-container:after {
  display: none !important;
}

/* Global Styles */
p a {
  text-decoration: underline;
}

.w-dropdown {
  z-index: 0;
}

sub,
sup {
  font-size: 50% !important;
}

/* Timed Tabs */
.timed-tab-link .timed-tab-content {
  height: 0px;
  opacity: 0;
}

.timed-tab-link.w--current .timed-tab-content {
  height: auto;
  opacity: 1;
}

.timed-tab-link.w--current .timed-tab-background.is-active {
  display: block;
}

.card.is-person:hover .image-mask.is-ratio-square.is-person-card {
  border-bottom-right-radius: var(--_sizing---border-radius--2xl) !important;
}

option {
  color: var(--color-primary--midnight-blue);
  background-color: white;
}

.table-of-contents {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer y Edge */
}

.table-of-contents::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}


/* Use Case Blocks */
@media screen and (min-width: 768px) {
  .w-dyn-item:nth-child(even) .grid.is-tab-grid .image-mask {
    order: -1;
  }

  /* Cancela el efecto dentro de .tabs */
  .tabs .w-dyn-item:nth-child(even) .grid.is-tab-grid .image-mask {
    order: 0;
  }
}

/* Swiper */
.swiper-wrapper {
  display: block !important;
  width: 100% !important;
  transform: none !important;
}

.swiper-slide {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.swiper-slide.swiper-slide-active {
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 2;
}

.swiper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Richtext */
.richtext> :last-child {
  margin-bottom: 0;
}

.richtext ul ul,
.richtext ul ol,
.richtext ol ul,
.richtext ol ol {
  margin-bottom: 0;
  margin-top: var(--_sizing---spacing--3xs);
}

/* ============================================================
   RICHTEXT — Orbus Software
   Aplica a todos los tags posibles dentro de un .richtext
   de Webflow.
   ============================================================ */


/* --- Headings ---
   Ya tienen color, font-size y semibold definidos en Webflow.
   Lo que falta: margin-top cuando un heading viene después
   de otro bloque que NO es el primero del richtext,
   y asegurar line-height legible. ----------------------- */

.richtext h1,
.richtext h2,
.richtext h3,
.richtext h4,
.richtext h5,
.richtext h6 {
  margin-top: var(--sizes-absolute--1-75rem);
  /* 28px — igual que margin-bottom del <p> */
  line-height: var(--_font-styles---line-height--l);
  /* 1.4 — los globales usan 1.1, demasiado apretado para richtext */
}

/* El primer elemento del richtext no necesita margin-top */
.richtext> :first-child {
  margin-top: 0 !important;
}

.richtext p {
  line-height: var(--_font-styles---line-height--l);
  /* 1.4 — más legible que el global 1.28 */
}


/* --- Listas (ul / ol) --------------------------------- */
.richtext ul,
.richtext ol {
  margin-top: 0;
  margin-bottom: var(--sizes-absolute--1-75rem);
  /* 28px — FIX: sube de 16px a 28px para igualar <p> */
  padding-left: var(--sizes-absolute--1-75rem);
  /* 28px — mantiene lo actual */
  display: flex;
  /* mantiene el flex del sistema global */
  flex-flow: column;
  overflow: hidden;
  /* mantenemos el de .w-richtext */
}

/* Tipo de viñeta por nivel — ul */
.richtext ul {
  list-style-type: disc;
}

.richtext ul ul {
  list-style-type: circle;
}

.richtext ul ul ul {
  list-style-type: square;
}

/* Numeración por nivel — ol */
.richtext ol {
  list-style-type: decimal;
}

.richtext ol ol {
  list-style-type: lower-alpha;
}

.richtext ol ol ol {
  list-style-type: lower-roman;
}

/* Listas anidadas: menos espacio inferior, indentación reducida */
.richtext ul ul,
.richtext ul ol,
.richtext ol ul,
.richtext ol ol {
  margin-top: var(--_sizing---spacing--3xs);
  /* 4px — pequeña separación visual al anidar */
  margin-bottom: 0;
  /* sin margen inferior; el padre ya lo gestiona */
  padding-left: var(--sizes-absolute--1rem);
  /* 16px — menos indentación en sub-niveles */
}


/* --- Items de lista ----------------------------------- */
.richtext li {
  margin-bottom: var(--_sizing---spacing--3xs);
  /* 4px — igual al global actual */
  line-height: var(--_font-styles---line-height--l);
  /* 1.4 — más cómodo que 1.28 en listas */
  padding-left: 0;
}

.richtext li:last-child {
  margin-bottom: 0;
  /* el margin-bottom del ul/ol ya da el espacio al bloque siguiente */
}


/* --- Blockquote -------------------------------------- */
.richtext blockquote {
  margin-top: var(--sizes-absolute--1-75rem);
  /* 28px — consistente con el ritmo del richtext */
  margin-bottom: var(--sizes-absolute--1-75rem);
  padding-left: var(--sizes-absolute--1rem);
  /* 16px — indentación visual */
  padding-right: 0;
  padding-top: var(--_sizing---spacing--xs);
  /* 12px */
  padding-bottom: var(--_sizing---spacing--xs);
  border-left: 3px solid var(--_color-schemes---layout--accent-primary);
  /* acento visual */
  font-size: var(--sizes-absolute--1-25rem);
  /* 20px — más contenido que los 32px actuales */
  line-height: var(--_font-styles---line-height--l);
  /* 1.4 */
  font-style: italic;
  color: var(--_color-schemes---layout--accent-primary);
}


/* --- Links ------------------------------------------- */

/* Ya definido en Webflow: color accent, weight 500, underline.
   Solo añadimos hover. */

.richtext a:hover {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

/* --- Code inline ------------------------------------- */
.richtext code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875em;
  /* relativo al tamaño del contexto */
  background-color: var(--_color-schemes---layout--background-secondary);
  /* #151e470d — gris muy suave */
  color: var(--_color-schemes---layout--accent-primary);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}


/* --- Code block (pre) -------------------------------- */
.richtext pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  background-color: var(--_color-schemes---layout--background-secondary);
  color: var(--color-site--text-primary);
  padding: var(--_sizing---spacing--m);
  /* 16px */
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 0;
  margin-bottom: var(--sizes-absolute--1-75rem);
  /* 28px — consistente con p */
  line-height: 1.6;
  white-space: pre;
}

.richtext pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  border-radius: 0;
}


/* --- Imágenes ---------------------------------------- */

.richtext img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-top: 0;
  margin-bottom: var(--sizes-absolute--1-75rem);
  /* 28px — ritmo consistente */
}


/* --- Figure (imágenes con caption en Webflow) -------- */

.richtext figure {
  margin: 0 0 var(--sizes-absolute--1-75rem) 0;
  /* 28px inferior */
}

.richtext figcaption {
  font-size: var(--_font-styles---body--3xs);
  /* 0.75rem */
  color: var(--_color-schemes---text--secondary);
  /* #646986 — gris secundario */
  margin-top: var(--_sizing---spacing--2xs);
  /* 8px */
  line-height: var(--_font-styles---line-height--l);
}


/* --- HR ---------------------------------------------- */

.richtext hr {
  border: none;
  border-top: 1px solid var(--_color-schemes---layout--border-secondary);
  /* #646986 */
  margin-top: var(--sizes-absolute--1-75rem);
  /* 28px */
  margin-bottom: var(--sizes-absolute--1-75rem);
}

/* Forms */
[data-wf--form-general--settings-color="midnight-blue"] .check-box.w--redirected-checked {
  background-image: url('https://cdn.prod.website-files.com/681531280e4363604984fc48/6881263495b7e6443e0af6bc_Group%2086%20(1).svg') !important;
}

.w-checkbox.check.is-pricing:has(.w-checkbox-input.w--redirected-checked) {
  background-color: var(--color-neutral--midnight-blue-05) !important;
}

/* Custom Checkboxes */
.check-box {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid currentcolor;
  border-radius: 2px;
  background-color: transparent;
  box-sizing: border-box;
  cursor: pointer;
}

.check-box:checked {
  background-color: #151e47 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5l2.5 2.5 4.5-4.5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.check-box:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6) !important;
  outline-offset: 2px !important;
}


/* Tooltips */
.tippy-box[data-theme~='custom'] {
  background: transparent !important;
  padding: 0px !important;
}

.tippy-box[data-animation='fade-scale'][data-state='hidden'] {
  opacity: 0;
  transform: scale(0.95);
}

.tippy-box[data-animation='fade-scale'][data-state='visible'] {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tippy-content .tooltip-content-wrapper {
  display: block;
}

/* Richtext Tables */
.richtext .w-embed table {
  overflow: hidden;
  margin-bottom: var(--sizes-absolute--1rem);
  width: 100%;
}

table {
  font-size: var(--_font-styles---body--3xs);
  width: auto;
  overflow: auto;
}

table th {
  font-weight: var(--_font-styles---weights--semibold);
  padding: var(--_sizing---spacing--3xs);
}

table td {
  font-size: var(--_font-styles---body--3xs);
  padding: var(--_sizing---spacing--3xs);
}

.rt-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
}

.rt {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.rt th,
.rt td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.rt thead th {
  background: #f3f4f6;
  font-weight: 600;
  border-bottom: 2px solid #d1d5db;
}

.rt tbody tr:nth-child(even) td {
  background: #fafafa;
}

.rt p {
  margin: 0 0 0.5rem;
}

.rt p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .rt-wrap {
    overflow-x: visible;
  }

  .rt,
  .rt thead,
  .rt tbody,
  .rt tr,
  .rt th,
  .rt td {
    display: block;
    width: 100%;
  }

  .rt thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  .rt tr {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
  }

  .rt tbody tr:nth-child(even) td {
    background: transparent;
  }

  .rt td {
    border: none;
    padding: 0.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .rt td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 600;
  }
}

/* Timed Tabs */
[data-wf-domain] [fs-tabs-instance] {
  opacity: 0;
}

.timed-tab-link.is-tab-active .timed-tab-content {
  max-height: 1000px;
  opacity: 1;
  height: auto;
}

.timed-tab-link.is-tab-active .timed-tab-border,
.timed-tab-link:hover .timed-tab-border {
  background-color: var(--color-neutral--storm-grey-60);
}

/* Richtext */
.richtext-list-letter ol {
  list-style-type: lower-alpha;
}

/* Richtext Formula (Downtime) */
.formula {
  display: inline-block;
  padding: .75rem 1rem;
  margin-bottom: 0.5rem;
  font-weight: var(--_font-styles---weights--bold);
}

.formula__row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.formula__frac {
  display: inline-grid;
  grid-template-rows: auto auto;
  align-items: center;
}

.formula__num,
.formula__den {
  text-align: center;
  white-space: nowrap;
  padding: 0 .25rem;
}

.formula__num {
  border-bottom: 2px solid currentColor;
  padding-bottom: .2rem;
}

.formula__den {
  padding-top: .2rem;
}

.formula__eqsign {
  padding: 0 .1rem;
}

/* Sections with empty dynamic lists */
#events:has(.w-dyn-empty) {
  display: none;
}

/* Flip Cards 
.card.is-flip:hover .flip-card-content {
  transform: rotateY(180deg);
} */
.card.is-flip-card.is-flipped {
  transform: rotateY(180deg);
}

/* Tabs: Vertical */
.tab-link.is-vertical.w-dyn-item.is-tab-active {
  background-color: var(--_color-schemes---background--gradient-step-2) !important;
  color: var(--_color-schemes---text--primary) !important;
}

.tab-link.is-vertical:hover .icon.is-tab-link, .tab-link.is-vertical.w-dyn-item.is-tab-active .icon.is-tab-link {
  background-color: var(--_color-schemes---button-dark--background) !important;
  color: var(--_color-schemes---button-dark--text) !important;
}

@media screen and (max-width: 767px) {
  .tab-link.is-vertical.w-dyn-item.is-tab-active .division.is-relative.is-vertical-tab-pane-content.is-mobile {
    max-height: 1000px;
    opacity: 1;
    display: block;
  }
}