/* ══════════════════════════════════════════
   ACADEMIA MAT – CSS ADICIONAL COMPLETO
   ══════════════════════════════════════════ */

/* ── OCULTAR TÍTULO Y HUECO ── */
.entry-title, .page-title, h1.title { display: none !important; }
.fusion-page-title-bar { display: none !important; }
.post-content, .entry-content, .fusion-post-content,
.fusion-page-title-wrapper, .fusion-page-title-row,
.wp-block-html, .wp-block, .is-root-container > *:first-child {
  padding-top: 0 !important; margin-top: 0 !important;
}

/* ── FIX HUECO GLOBAL EN TODAS LAS PÁGINAS ── */
html { margin-top: 0 !important; }
body { margin-top: 0 !important; padding-top: 0 !important; }
#main, #content, .fusion-row,
#wrapper, #boxed-wrapper,
.fusion-wrapper { padding-top: 0 !important; margin-top: 0 !important; }
.fusion-tb-header + #sliders-container { margin-top: 0 !important; }
#sliders-container { min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
.fusion-page-title-bar,
.fusion-page-title-wrapper,
.fusion-page-title-row { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }

/* ── SCROLL ANCLAS UNIVERSIDADES ── */
.mat-uni-block { scroll-margin-top: 80px; }

/* ── HERO ESCRITORIO ── */
@media (min-width: 769px) {
  .hero-inner { align-items: center !important; }
  .hero-badge { display: inline-block !important; }
  .hero-bottom {
    display: flex !important; flex-direction: row !important;
    align-items: center !important; justify-content: center !important;
    gap: 80px !important;
  }
  .hero-text {
    flex: 1 !important; max-width: 560px !important;
    align-items: flex-start !important; text-align: left !important;
  }
  .hero-btns { justify-content: flex-start !important; flex-direction: row !important; }
  .hero-stats-desktop {
    display: flex !important; flex-direction: column !important;
    gap: 16px !important; align-items: center !important;
    width: 200px !important; flex-shrink: 0 !important;
  }
  .hero-stats-mobile { display: none !important; }
}

/* ── HERO MÓVIL ── */
@media (max-width: 768px) {
  .hero-stats-desktop { display: none !important; }
  .hero-bottom { flex-direction: column !important; }
  .hero-stats-mobile {
    display: flex !important; flex-direction: row !important;
    flex-wrap: wrap !important; justify-content: center !important;
    gap: 10px !important; width: 100% !important;
  }
  .hero h1, .hero-h1, h1.hero-h1 { font-size: 32px !important; font-weight: 900 !important; }
  .hero p { font-size: 18px !important; }
  .hero-text {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; text-align: center !important; width: 100% !important;
  }
  .hero-btns {
    flex-direction: column !important; align-items: center !important; width: 100% !important;
  }
  .hero-btns a {
    font-size: 17px !important; padding: 14px 20px !important;
    width: 100% !important; text-align: center !important; display: block !important;
  }
  .stat-card .num { font-size: 28px !important; }
  .stat-card .lbl { font-size: 13px !important; }
  .section-title { font-size: 28px !important; }
  .section-sub { font-size: 18px !important; }
  .pilar-card h3, .modal-card h3 { font-size: 20px !important; }
  .pilar-card p, .modal-card p { font-size: 17px !important; }
  .urgency { font-size: 15px !important; }

  /* ── TABLAS WP DATA TABLES ── */
  body *:not(.wpdt-c):not(.wpdtSimpleTable):not(div[id^="wpdatatable_"]) { overflow-x: visible !important; }
  .wpdt-c, .wpdtSimpleTable, div[id^="wpdatatable_"] {
    overflow-x: scroll !important; -webkit-overflow-scrolling: touch !important;
    display: block !important; width: 100% !important;
    max-width: 100vw !important; padding-left: 0 !important; margin-left: 0 !important;
  }
  .wpdt-c table, .wpdtSimpleTable table, div[id^="wpdatatable_"] table {
    min-width: 600px !important; display: table !important;
    width: max-content !important; margin-left: 0 !important; table-layout: auto !important;
  }
  .wpdt-c td, .wpdt-c th, .wpdtSimpleTable td, .wpdtSimpleTable th {
    white-space: nowrap !important; font-size: 13px !important; padding: 8px 10px !important;
  }
  .wpdt-c td:first-child, .wpdt-c th:first-child,
  .wpdtSimpleTable td:first-child, .wpdtSimpleTable th:first-child { padding-left: 12px !important; }

  /* ── TABLA UNIVERSIDADES ── */
  .fusion-text table { width: 100% !important; table-layout: fixed !important; }
  .fusion-text table td, .fusion-text table th, .fusion-text table a {
    white-space: normal !important; word-break: break-word !important;
    overflow-wrap: break-word !important; max-width: 160px !important;
    font-size: 13px !important; padding: 8px !important; vertical-align: top !important;
  }

  /* ── PÁGINA UNIVERSIDAD – ZOOM MÓVIL ── */
  .fusion-page-content,
  .post-content,
  .entry-content {
    width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important;
  }
  .fusion-text p, .fusion-text li,
  .fusion-text td, .fusion-text th { font-size: 16px !important; line-height: 1.6 !important; }
  .fusion-text h1, .fusion-text h2 { font-size: 28px !important; }
  .fusion-text h3, .fusion-text h4 { font-size: 22px !important; }
}