/* ========================================================
   ESTEI TEOLOGÍA & ESTACIÓN DE INVESTIGACIÓN BÍBLICA
   SISTEMA DE DISEÑO ACADÉMICO DE ALTA GAMA (DARK LUXURY)
   ======================================================== */

:root {
  --estei-gold: #c9a84c;
  --estei-gold-light: #e5c365;
  --estei-gold-dark: #9e7f2b;
  --estei-gold-glow: rgba(201, 168, 76, 0.35);
  --estei-navy-deep: #070d17;
  --estei-navy: #0e1726;
  --estei-navy-light: #16243b;
  --estei-navy-surface: #1e314f;
  --estei-parchment: #f9f6f0;
  --estei-slate: #0b111a;
  --estei-text-dark: #1f2937;
  --estei-text-light: #f3f4f6;
  --estei-text-muted: #94a3b8;
  --estei-border: rgba(201, 168, 76, 0.22);
  --estei-border-hover: rgba(201, 168, 76, 0.6);
  --estei-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.55);
  --estei-radius: 16px;
}

/* ========================================================
   PAGE-LEVEL OVERRIDES PARA ESTEI.ORG/ESTUDIO (PAGE 30916)
   ======================================================== */
.page-id-30916 .top_site_main,
.page-id-30916 .page-title,
.page-id-30916 header.entry-header,
.page-id-30916 .breadcrumbs-wrapper,
.page-id-30916 .thim-color {
  display: none !important;
}

.page-id-30916 #main-content,
.page-id-30916 .site-main,
.page-id-30916 .content-area,
.page-id-30916 article,
.page-id-30916 .entry-content {
  background: var(--estei-navy-deep) !important;
  color: var(--estei-text-light) !important;
  padding-top: 10px !important;
  border: none !important;
}

.page-id-30916 .site-main.col-sm-9,
.page-id-30916 .site-main,
.page-id-30916 .col-sm-9,
.page-id-30916 .col-md-9 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  float: none !important;
}

.page-id-30916 aside#secondary,
.page-id-30916 aside.sidebar,
.page-id-30916 aside.widget-area,
.page-id-30916 #sidebar,
.page-id-30916 .col-sm-3,
.page-id-30916 .col-md-3 {
  display: none !important;
}

.page-id-30916 .site-content .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

.page-id-30916 .site-content.container,
.page-id-30916 #main-content .container,
.page-id-30916 .container {
  max-width: 1440px !important;
  width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* ========================================================
   CONTENEDOR MAESTRO DEL PORTAL
   ======================================================== */
.estei-portal,
.estei-theology-portal {
  background: radial-gradient(circle at 50% 0%, #152238 0%, #070d17 100%) !important;
  border: 1px solid var(--estei-border);
  border-radius: var(--estei-radius);
  padding: 36px 28px;
  color: var(--estei-text-light);
  box-shadow: var(--estei-shadow);
  margin: 15px auto 40px auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* HERO SECTION */
.estei-hero,
.estei-hero {
  text-align: center;
  padding: 30px 20px 40px 20px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  margin-bottom: 35px;
}

.estei-hero-badge,
.estei-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--estei-gold);
  border-radius: 30px;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--estei-gold-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.estei-hero-title,
.estei-hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 0 0 16px 0;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.estei-gold-gradient {
  background: linear-gradient(135deg, #f7df94 0%, #c9a84c 50%, #9e7f2b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.estei-hero-subtitle,
.estei-hero-subtitle {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto 30px auto;
  color: #cbd5e1;
}

/* ACTION BUTTONS */
.estei-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
}

.estei-btn-hero-primary,
.estei-btn-hero-secondary,
.estei-btn-hero-tertiary {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.estei-btn-hero-primary {
  background: linear-gradient(135deg, var(--estei-gold) 0%, var(--estei-gold-dark) 100%);
  color: #070d17 !important;
  box-shadow: 0 4px 16px var(--estei-gold-glow);
}
.estei-btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.5);
  color: #070d17 !important;
}

.estei-btn-hero-secondary {
  background: var(--estei-navy-surface);
  border: 1px solid var(--estei-border);
  color: #ffffff !important;
}
.estei-btn-hero-secondary:hover {
  background: #25406b;
  border-color: var(--estei-gold);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.estei-btn-hero-tertiary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1 !important;
}
.estei-btn-hero-tertiary:hover {
  color: #ffffff !important;
  border-color: var(--estei-gold);
  transform: translateY(-2px);
}

/* METRICS BAR */
.estei-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.estei-metric-card {
  background: rgba(22, 36, 59, 0.6);
  border: 1px solid var(--estei-border);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.estei-metric-card:hover {
  border-color: var(--estei-gold);
  transform: translateY(-2px);
}

.estei-metric-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--estei-gold-light);
  line-height: 1.1;
  margin-bottom: 4px;
}

.estei-metric-label {
  font-size: 0.82rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ========================================================
   WORKSTATION TABS NAVIGATION (TIPO SOFTWARE ACADÉMICO)
   ======================================================== */
.estei-workstation-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(14, 23, 38, 0.85);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--estei-border);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.estei-ws-tab-btn {
  flex: 1 1 auto;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.estei-ws-tab-btn:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--estei-gold-light);
  border-color: rgba(201, 168, 76, 0.3);
}

.estei-ws-tab-btn.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2) 0%, rgba(30, 49, 79, 0.8) 100%);
  color: #ffffff;
  border-color: var(--estei-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.estei-ws-tab-icon {
  font-size: 1.15rem;
}

/* PANELS DE LA WORKSTATION */
.estei-ws-panel {
  display: none;
  animation: esteiFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.estei-ws-panel.active {
  display: block;
}

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

/* ========================================================
   TAB 2: INTERLINEAL INVERSO (HEBREO & GRIEGO)
   ======================================================== */
.estei-interlinear-wrapper {
  background: var(--estei-navy);
  border: 1px solid var(--estei-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--estei-shadow);
}

.estei-interlinear-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.estei-interlinear-search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
}

.estei-interlinear-input {
  flex: 1 1 240px;
  background: rgba(7, 13, 23, 0.8);
  border: 1px solid var(--estei-border);
  border-radius: 8px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}
.estei-interlinear-input:focus {
  border-color: var(--estei-gold);
  box-shadow: 0 0 0 2px var(--estei-gold-glow);
}

.estei-quick-verses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.estei-qv-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.estei-qv-pill:hover,
.estei-qv-pill.active {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--estei-gold);
  color: var(--estei-gold-light);
}

.estei-interlinear-passage-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--estei-gold-light);
  margin-bottom: 6px;
}

.estei-interlinear-spanish-full {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e2e8f0;
  font-style: italic;
  padding: 14px 18px;
  background: rgba(7, 13, 23, 0.5);
  border-left: 3px solid var(--estei-gold);
  border-radius: 4px;
  margin-bottom: 24px;
}

/* TABLA INTERLINEAL MORFOLÓGICA */
.estei-table-responsive {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.estei-interlinear-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  background: rgba(14, 23, 38, 0.95);
}

.estei-interlinear-table th {
  background: rgba(30, 49, 79, 0.8);
  color: var(--estei-gold-light);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--estei-border);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.estei-interlinear-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  vertical-align: middle;
}

.estei-interlinear-table tr:hover {
  background: rgba(201, 168, 76, 0.06);
}

.estei-orig-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.estei-orig-greek {
  font-family: 'SBL Greek', 'EB Garamond', serif;
}
.estei-orig-hebrew {
  font-family: 'SBL Hebrew', 'David', serif;
  direction: rtl;
  font-size: 1.35rem;
}

.estei-translit {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #94a3b8;
}

.estei-morph-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.estei-strong-tag {
  display: inline-block;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--estei-gold-light);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ========================================================
   TAB 3: GUÍA EXEGÉTICA & COMENTARIOS (PASSAGE GUIDE)
   ======================================================== */
.estei-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.estei-guide-card {
  background: var(--estei-navy);
  border: 1px solid var(--estei-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.estei-guide-card h4 {
  font-family: 'Cinzel', serif;
  color: var(--estei-gold-light);
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.estei-guide-card p,
.estei-guide-card li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.estei-guide-card ul {
  padding-left: 20px;
  margin: 0;
}

/* ========================================================
   TAB 4: CRONOLOGÍAS & LÍNEAS DE TIEMPO BÍBLICAS
   ======================================================== */
.estei-timeline-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.estei-timeline-tab {
  background: rgba(22, 36, 59, 0.7);
  border: 1px solid var(--estei-border);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.estei-timeline-tab:hover,
.estei-timeline-tab.active {
  background: var(--estei-navy-surface);
  border-color: var(--estei-gold);
  color: var(--estei-gold-light);
}

.estei-timeline-box {
  background: var(--estei-navy);
  border: 1px solid var(--estei-border);
  border-radius: 14px;
  padding: 24px;
  display: none;
}
.estei-timeline-box.active {
  display: block;
  animation: esteiFadeIn 0.3s ease;
}

.estei-timeline-stream {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--estei-gold);
  margin-left: 10px;
}

.estei-timeline-entry {
  position: relative;
  margin-bottom: 24px;
}
.estei-timeline-entry::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--estei-gold);
  box-shadow: 0 0 10px var(--estei-gold);
}

.estei-entry-era {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--estei-gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.estei-entry-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: #ffffff;
  margin: 4px 0 8px 0;
}

.estei-entry-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

/* ========================================================
   TAB 5: BOSQUEJOS HOMILÉTICOS & PREDICACIÓN
   ======================================================== */
.estei-outlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.estei-outline-item {
  background: var(--estei-navy);
  border: 1px solid var(--estei-border);
  border-radius: 12px;
  padding: 22px;
  transition: all 0.25s ease;
}
.estei-outline-item:hover {
  border-color: var(--estei-gold);
  transform: translateY(-2px);
  box-shadow: var(--estei-shadow);
}

.estei-outline-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--estei-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.estei-outline-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #ffffff;
  margin: 6px 0 10px 0;
}

.estei-outline-text-ref {
  font-size: 0.88rem;
  color: var(--estei-gold-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.estei-outline-points {
  padding-left: 18px;
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.estei-btn-use-outline {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--estei-gold);
  color: var(--estei-gold-light);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.estei-btn-use-outline:hover {
  background: var(--estei-gold);
  color: #070d17;
}

/* ========================================================
   TAB 6 / COMPONENT: ASISTENTE TEOLÓGICO IA
   ======================================================== */
.estei-ai-card {
  background: var(--estei-navy);
  border: 1px solid var(--estei-border);
  border-radius: var(--estei-radius);
  padding: 28px;
  box-shadow: var(--estei-shadow);
}

.estei-ai-header {
  margin-bottom: 22px;
}

.estei-ai-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--estei-gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.estei-ai-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.estei-ai-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* WORKSPACE SELECTOR PILLS */
.estei-workspace-selector {
  margin-bottom: 20px;
}

.estei-ws-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.estei-ws-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estei-ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 36, 59, 0.7);
  border: 1px solid var(--estei-border);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.estei-ws-pill:hover {
  background: var(--estei-navy-surface);
  border-color: var(--estei-gold);
  color: #ffffff;
}
.estei-ws-pill.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.25) 0%, rgba(30, 49, 79, 0.9) 100%);
  border-color: var(--estei-gold);
  color: var(--estei-gold-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* CHAT BOX */
.estei-chat-box {
  background: rgba(7, 13, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  min-height: 380px;
  max-height: 520px;
  overflow-y: auto;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estei-msg {
  display: flex;
  gap: 12px;
  max-width: 90%;
}
.estei-msg-user {
  margin-left: auto;
  flex-direction: row-reverse;
}
.estei-msg-bot {
  margin-right: auto;
}

.estei-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: var(--estei-navy-surface);
  border: 1px solid var(--estei-border);
}

.estei-bubble {
  background: rgba(22, 36, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
}
.estei-msg-user .estei-bubble {
  background: linear-gradient(135deg, #1b3356 0%, #16243b 100%);
  border-color: var(--estei-border);
  color: #ffffff;
}

.estei-suggested-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.estei-sugg-btn {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--estei-gold-light);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.estei-sugg-btn:hover {
  background: rgba(201, 168, 76, 0.25);
  border-color: var(--estei-gold);
}

/* CHAT INPUT BAR */
.estei-chat-input-bar {
  display: flex;
  gap: 10px;
}

#esteiChatInput {
  flex: 1;
  background: rgba(7, 13, 23, 0.9);
  border: 1px solid var(--estei-border);
  border-radius: 10px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}
#esteiChatInput:focus {
  border-color: var(--estei-gold);
  box-shadow: 0 0 0 2px var(--estei-gold-glow);
}

#esteiChatSubmit {
  background: linear-gradient(135deg, var(--estei-gold) 0%, var(--estei-gold-dark) 100%);
  color: #070d17;
  border: none;
  border-radius: 10px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
#esteiChatSubmit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--estei-gold-glow);
}

/* ========================================================
   FLOATING AI WIDGET
   ======================================================== */
.estei-float-widget-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
}

.estei-float-trigger-btn {
  background: linear-gradient(135deg, #16243b 0%, #0e1726 100%);
  border: 2px solid var(--estei-gold);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}
.estei-float-trigger-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--estei-gold-light);
  box-shadow: 0 12px 30px var(--estei-gold-glow);
}

.estei-ai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 95vw;
  background: var(--estei-navy-deep);
  border-left: 1px solid var(--estei-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.estei-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
}

.estei-drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--estei-navy);
}

.estei-drawer-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.estei-drawer-close-btn:hover {
  color: #ffffff;
}

.estei-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ========================================================
   RESPONSIVIDAD
   ======================================================== */
@media (max-width: 768px) {
  .estei-hero-title,
  .estei-hero-title {
    font-size: 2rem;
  }
  .estei-ws-tab-btn {
    min-width: 120px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .estei-ai-card,
  .estei-interlinear-wrapper {
    padding: 16px;
  }
  .estei-chat-box {
    min-height: 300px;
    max-height: 400px;
  }
}
