:root {
  --primary: #1C70B8;
  --dark: #1C244B;
  --text: #475569;
  --bg-tab: #f1f5f9;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================
🎯 BLOQUE NUEVO (GX)
===================================== */

.gx-detalle-1 {
  padding: 2rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
}

/* TABS */
.gx-detalle-tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.gx-detalle-tabs::-webkit-scrollbar {
  display: none;
}

.gx-detalle-tab {
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: var(--bg-tab);
  transition: var(--transition);
  border: 1px solid transparent;
}

.gx-detalle-tab:hover {
  background: #e2e8f0;
  color: var(--dark);
}

.gx-detalle-tab.active {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(28, 112, 184, 0.15);
}

/* BODY */
.gx-detalle-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* CONTENIDO */
.gx-detalle-panel {
  display: none;
  animation: slideUp 0.4s ease-out;
}

.gx-detalle-panel.active {
  display: block;
}

.gx-detalle-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.gx-detalle-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

/* IMAGEN */
.gx-detalle-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gx-detalle-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gx-detalle-media:hover img {
  transform: scale(1.03);
}

.gx-detalle-ion {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(28, 36, 75, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =====================================
🧩 BLOQUE ANTIGUO (COMPATIBILIDAD)
===================================== */

.detalle-detalle {
  padding: 2rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* LAYOUT */
.detalle-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* TABS */
.tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.tabs li {
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: var(--bg-tab);
  transition: var(--transition);
}

.tabs li.active {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* CONTENIDO */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.detalle-texto h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.tab-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

/* IMAGEN */
.detalle-imagen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detalle-imagen img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.detalle-imagen:hover img {
  transform: scale(1.03);
}

/* =====================================
✨ ANIMACIONES
===================================== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
💻 DESKTOP (AMBOS BLOQUES)
===================================== */

@media (min-width: 768px) {

  .gx-detalle-body,
  .detalle-container {
    grid-template-columns: 1fr 400px;
    align-items: center;
    gap: 4rem;
  }

  /* GX tabs */
  .gx-detalle-tabs {
    overflow-x: visible;
    flex-wrap: wrap;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
    gap: 0;
  }

  .gx-detalle-tab {
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
  }

  .gx-detalle-tab.active {
    border-bottom: 2px solid var(--primary);
  }

  /* OLD tabs */
  .tabs {
    overflow: visible;
    flex-wrap: wrap;
    border-bottom: 2px solid #f1f5f9;
    gap: 0;
  }

  .tabs li {
    background: transparent;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
  }

  .tabs li.active {
    border-bottom: 2px solid var(--primary);
  }

}

.gx-detalle-content{
  text-align: justify;
}