/* ==========================================================================
   tabsDataPane - Torrelavega
   ========================================================================== */

/* ==========================================================================
   Título
   ========================================================================== */

.nexods-tabsdatapane__title {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  text-transform: none;
  color: #2f3135;
  max-width: var(--flow-container-max-width);
  margin: 0 auto 48px auto;
  line-height: 1;
  letter-spacing: -0.045em;
}

@media (max-width: 768px) {
  .nexods-tabsdatapane__title {
    font-size: 36px;
    margin-bottom: 36px;
  }
}

/* ==========================================================================
   Contenedor principal
   ========================================================================== */

.section-panel {
  max-width: var(--flow-container-max-width);
  margin: 0 auto;
}

/* ==========================================================================
   Tabs Torrelavega
   ========================================================================== */

.section-panel .section-panel__tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: solid 2px var(--color-primary, #2C8943);
}

.section-panel .section-panel__tabs::-webkit-scrollbar {
  display: none;
}

.section-panel .tab-button {
  min-height: 52px;
  padding: 16px 24px !important;
  border: 1px solid rgba(47, 49, 53, 0.12) !important;
  border-bottom: none !important;
  background-color: #ffffff;
  color: #4b4d52;
  font-family: var(--body-400-font-family-400, var(--nexo-font-family, Arial, sans-serif));
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.section-panel .tab-button:hover {
  cursor: pointer;
  background-color: rgba(44, 137, 67, 0.08) !important;
  color: var(--color-primary, #2C8943) !important;
}

.section-panel .tabs-content {
  border-color: var(--color-primary, #2C8943);
  margin-top: 0;
  border-top: 2px solid var(--color-primary, #2C8943);
}

/* Animaciones suaves para las transiciones */
.section-panel .tabs-data-pane button,
.section-panel .tab-button {
  transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   Flechas navegación tabs
   ========================================================================== */

.section-panel .scroll-arrow {
  height: calc(100%) !important;
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(4px);
}

.section-panel .scroll-arrow:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.section-panel .scroll-arrow svg {
  color: var(--color-primary, #2C8943);
  font-weight: 800;
  transition: transform 0.2s ease-in-out;
}

.section-panel .scroll-arrow:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   Botón volver
   ========================================================================== */

.tabsdatapane__back-row {
  width: 100%;
  padding: 28px 0 24px;
  background: #ffffff;
}

.tabsdatapane__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 112px;
  min-height: 48px;
  padding: 12px 26px;

  border: 1px solid var(--color-primary, #2C8943);
  border-radius: 8px;
  background: #ffffff;

  color: var(--color-primary, #2C8943);
  font-family: var(--body-400-font-family-400, var(--nexo-font-family, Arial, sans-serif));
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.tabsdatapane__back:hover,
.tabsdatapane__back:focus-visible {
  background: var(--color-primary, #2C8943);
  color: #ffffff;
  border-color: var(--color-primary, #2C8943);
  transform: translateY(-1px);
  outline: none;
}

/* Por defecto mostramos ES y ocultamos EN */
.tabsdatapane__back--en {
  display: none;
}

/* En idioma inglés mostramos EN y ocultamos ES */
html[lang^="en"] .tabsdatapane__back--es {
  display: none;
}

html[lang^="en"] .tabsdatapane__back--en {
  display: inline-flex;
}

/* ==========================================================================
   Iframe
   ========================================================================== */

.section-panel .iframe-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #dbeee0 100%);
}

.tabsdatapane__panel {
  position: relative;
}

.tabsdatapane__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   Estado vacío / sin URL de iframe
   ========================================================================== */

.tabsdatapane__empty {
  min-height: 420px;
  padding: 72px 32px;
  background:
    radial-gradient(circle at top left, rgba(66, 194, 98, 0.10), transparent 34%),
    linear-gradient(135deg, #f7fbf8 0%, #ffffff 72%);
  border: 1px solid rgba(44, 137, 67, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabsdatapane__empty-inner {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.tabsdatapane__empty-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 28px auto;
  border-radius: 999px;
  background: rgba(66, 194, 98, 0.14);
  color: var(--color-primary, #2C8943);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabsdatapane__empty-icon svg {
  width: 38px;
  height: 38px;
  display: block;
}

.tabsdatapane__empty-kicker {
  margin: 0 0 10px 0;
  color: var(--color-primary, #2C8943);
  font-family: var(--body-400-font-family-400, var(--nexo-font-family, Arial, sans-serif));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tabsdatapane__empty-title {
  margin: 0 0 16px 0;
  color: #14572b;
  font-family: var(--title-300-font-family-300, var(--nexo-font-family, Arial, sans-serif));
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.tabsdatapane__empty-text {
  margin: 0 auto;
  max-width: 560px;
  color: #4b4d52;
  font-family: var(--body-400-font-family-400, var(--nexo-font-family, Arial, sans-serif));
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
}

.tabsdatapane__empty-note {
  margin: 24px auto 0 auto;
  max-width: 520px;
  color: #607066;
  font-family: var(--body-400-font-family-400, var(--nexo-font-family, Arial, sans-serif));
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* ==========================================================================
   Scrollbar helper
   ========================================================================== */

.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .section-panel .tabs-data-pane .flex {
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .section-panel .scroll-arrow {
    width: 2.5rem;
  }

  .section-panel .tab-button {
    min-height: 48px;
    padding: 14px 20px !important;
    font-size: 16px;
  }

  .tabsdatapane__back-row {
    padding: 22px 0 20px;
  }

  .tabsdatapane__back {
    min-width: 104px;
    min-height: 44px;
    padding: 11px 22px;
    font-size: 15px;
  }

  .tabsdatapane__empty {
    min-height: 360px;
    padding: 48px 24px;
  }

  .tabsdatapane__empty-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 22px;
  }

  .tabsdatapane__empty-icon svg {
    width: 32px;
    height: 32px;
  }

  .tabsdatapane__empty-text {
    font-size: 16px;
  }
}

/* ==========================================================================
   Loader
   ========================================================================== */

.tab-loader {
  color: var(--color-primary, #2C8943);
  font-size: 45px;
  text-indent: -9999em;
  overflow: hidden;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  transform: translateZ(0);
  animation: mltShdSpin 1.7s infinite ease, round 1.7s infinite ease;
}

@keyframes mltShdSpin {
  0% {
    box-shadow:
      0 -0.83em 0 -0.4em,
      0 -0.83em 0 -0.42em,
      0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em,
      0 -0.83em 0 -0.477em;
  }

  5%,
  95% {
    box-shadow:
      0 -0.83em 0 -0.4em,
      0 -0.83em 0 -0.42em,
      0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em,
      0 -0.83em 0 -0.477em;
  }

  10%,
  59% {
    box-shadow:
      0 -0.83em 0 -0.4em,
      -0.087em -0.825em 0 -0.42em,
      -0.173em -0.812em 0 -0.44em,
      -0.256em -0.789em 0 -0.46em,
      -0.297em -0.775em 0 -0.477em;
  }

  20% {
    box-shadow:
      0 -0.83em 0 -0.4em,
      -0.338em -0.758em 0 -0.42em,
      -0.555em -0.617em 0 -0.44em,
      -0.671em -0.488em 0 -0.46em,
      -0.749em -0.34em 0 -0.477em;
  }

  38% {
    box-shadow:
      0 -0.83em 0 -0.4em,
      -0.377em -0.74em 0 -0.42em,
      -0.645em -0.522em 0 -0.44em,
      -0.775em -0.297em 0 -0.46em,
      -0.82em -0.09em 0 -0.477em;
  }

  100% {
    box-shadow:
      0 -0.83em 0 -0.4em,
      0 -0.83em 0 -0.42em,
      0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em,
      0 -0.83em 0 -0.477em;
  }
}

@keyframes round {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Override final Torrelavega
   Evita que otros CSS posteriores mantengan el título en amarillo
   ========================================================================== */

.theme-torrelavega .nexods-tabsdatapane__title,
.nexods-tabsdatapane__title {
  color: #2f3135 !important;
  text-transform: none !important;
  font-size: clamp(38px, 4vw, 52px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
}