:root {
  --eliv-media-h: clamp(30.5rem, calc(35vw + 4.25rem), 45.8125rem);
  --fade-rgb: 230, 247, 252;
  --fade-bg: rgb(var(--fade-rgb));
  --fade-bg-0: rgba(var(--fade-rgb), 0);
}

/* ====== CONTENEDOR PRINCIPAL ====== */
.eliv-tabs-main {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
}

.eliv-tabs-left {
  width: 45%;
  display: flex;
  flex-direction: column;
  min-height: var(--eliv-media-h);
}

.eliv-headline {
  color: #057dab;
  line-height: 1.4;
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.75rem, 1.1vw + 1rem, 3rem);
}

.eliv-left-bottom {
  margin-top: auto;
  width: 87%;
}

/* ====== TITULOS Y NAVEGACIÓN ====== */
.eliv-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.eliv-subtitle {
  color: #007cae;
  margin: 0;
  font-weight: 600;
  font-size: clamp(0.8875rem, 0.7vw + 0.5rem, 1.33125rem);
}

.eliv-nav-buttons {
  display: flex;
  gap: 8px;
}

.eliv-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dedede;
  background: #fff;
  color: #077dab;
  font-weight: bold;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.eliv-nav-btn:hover {
  background: #f0f8fb;
  transform: scale(1.05);
}

button.eliv-nav-btn {
    background: #fff;
    border: none;
    border-radius: 100px;
    width: 40px;
    height: 40px;
    display: flex
;
    justify-content: center;
    color: blue;
}

/* ====== SLIDER ====== */
.eliv-slider-frame {
  position: relative;
  overflow: hidden;
  padding-bottom: 24px;
  background: var(--fade-bg);
}

/* Gradientes laterales */
.eliv-gradient-left,
.eliv-gradient-right {
  position: absolute;
  top: -1rem;
  bottom: -1rem;
  width: clamp(1.666rem, 4vw, 3.25rem);
  pointer-events: none;
  z-index: 3;
}

.eliv-gradient-left {
  left: 0;
  background: linear-gradient(90deg, var(--fade-bg) 0%, var(--fade-bg-0) 100%);
}

.eliv-gradient-right {
  right: 0;
  background: linear-gradient(270deg, var(--fade-bg) 0%, var(--fade-bg-0) 100%);
}

/* ====== TABS ====== */
.eliv-tabs-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.eliv-tabs-slider::-webkit-scrollbar {
  display: none;
}

.eliv-tab-btn {
  flex: 0 0 auto;
  width: clamp(80px, 9vw, 133px);
  text-align: center;
  border: none;
  background: transparent;
  opacity: 0.6;
  transition: opacity 0.25s ease;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ✅ mantiene alineación superior */
}

.eliv-tab-btn.active {
  opacity: 1;
}

.eliv-thumb {
  width: 100%;
  height: clamp(70px, 5.5vw, 110px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eliv-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover; /* en lugar de contain */
  border-radius: 12px !important;
}


.eliv-tab-btn:hover .eliv-thumb img {
  transform: scale(1.05);
}

.eliv-tab-label {
  display: block;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  font-size: clamp(0.6875rem, 0.5vw + 0.4rem, 1rem);
  text-align: center;
  margin-top: 6px;
  margin-bottom: 10px;
  font-weight: 400;
  color: #057dab;
  line-height: 1.3;
  height: auto;
  min-height: 2.6em; /* ✅ espacio para 2 líneas */
}

/* ====== LÍNEA INFERIOR ====== */
.eliv-line {
  position: relative;
  margin-top: 10px;
  height: 1px;
  background: #c9dbe1;
  border-radius: 2px;
}

.eliv-indicator {
  position: absolute;
  bottom: 0;
  height: 6px;
  left: 0;
  width: 0;
  background: #007cae;
  border-top-left-radius: 5.3px;
  border-top-right-radius: 5.3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== CONTENIDO PRINCIPAL ====== */
.eliv-tabs-right {
  width: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eliv-tab-content {
  display: none;
  position: relative;
  width: 100%;
  height: var(--eliv-media-h);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 20px 0 0 20px;
}

.eliv-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

/* ====== OVERLAY ====== */
.eliv-overlay {
  display: none;
  position: absolute;
  top: 50%;
  left: -20%;
  transform: translateY(-50%);
  background-color: rgba(5, 125, 171, 0.6);
  color: #fff;
  padding: 20px;
  border-radius: 25px;
  width: auto;
  max-width: 400px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.eliv-overlay.active {
  display: block;
}

.eliv-title {
  font-size: clamp(1.3rem, 0.95vw + 0.9rem, 2.7rem);
  margin-bottom: 10px;
  max-width: 240px;
}

.eliv-desc {
  font-size: clamp(0.6875rem, 0.5vw + 0.4rem, 1rem);
  line-height: 1.6;
}

.eliv-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: white;
  color: #004e79;
  font-weight: bold;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(0.775rem, 0.6vw + 0.5rem, 1.1625rem);
}

/* ====== ANIMACIONES ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .eliv-tabs-main {
    flex-direction: column;
    gap: 30px;
  }

  .eliv-tabs-left,
  .eliv-tabs-right {
    width: 100%;
  }

  .eliv-left-bottom {
    margin-top: 16px;
  }

  .eliv-overlay {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    max-width: none;
    border-radius: 0;
  }
}

@media (min-width: 1150px) and (max-width: 1399px) {
  .eliv-overlay { max-width: 290px; }
}

@media (min-width: 1400px) and (max-width: 2399px) {
  .eliv-overlay { max-width: 360px; }
}

@media (min-width: 2400px) {
  .eliv-overlay { max-width: 420px; }
}

button.eliv-tab-btn:hover,
button.eliv-tab-btn:focus,
button.eliv-tab-btn:focus-visible {
  background-color: transparent;
  outline: none;
}


