
.page-template-page-marcadores .custom-header {
  background-color: white; /* solo en página Patógenos */
  position: absolute;
}
.page-template-page-marcadores .nav-menu li a {
color: #033840;
}

.page-template-page-marcadores .nav-menu li.current-menu-item a{
  background-color: #033840!important;
  color: white!important;
}
.page-template-page-marcadores .nav-menu li a:hover {
  background-color: #0e00da !important;
  color: white !important;
}
.page-template-page-marcadores .login-icon a,
.page-template-page-marcadores .cart-icon a,
.page-template-page-marcadores .nav-menu li a[href*="/contacto"]::before {
  color: #033840;
}
.page-template-page-marcadores .login-icon a:hover,
.page-template-page-marcadores .cart-icon a:hover,
.page-template-page-marcadores .nav-menu li a[href*="/contacto"]:hover {
  background-color: #0e00da!important;
  color: white!important;
}

.page-template-page-marcadores .marcadores-hero {
  background-image: url('../images/ccplab5.webp');
  background-size: cover;
  background-position: center;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: white;
}.page-template-page-marcadores .marcadores-hero {
  position: relative;
  overflow: hidden;
}

.page-template-page-marcadores .marcadores-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(5, 1, 62, 0.35); /* o blanco: rgba(255,255,255,0.3) */
  z-index: 1;
}

.page-template-page-marcadores .marcadores-hero .hero-content {
  position: relative;
  z-index: 2;
}
.page-template-page-marcadores .hero-content {
  text-align: center;
}

.page-template-page-marcadores .marcadores-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-template-page-marcadores .marcadores-hero p {
  font-size: 30px;
  margin-bottom: 5rem;
  margin-top: 0.5rem;
}


.eg-pagination { margin-top: 2rem; text-align:center; }
.eg-pagination .page-numbers { display:inline-flex; gap:.5rem; }
.eg-pagination .page-numbers li a,
.eg-pagination .page-numbers li span {
  padding:.5rem .8rem; border:1px solid #ddd; border-radius:6px;
}
.eg-pagination .page-numbers .current { font-weight:700; border-color:#033840; }
.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-js nav.woocommerce-pagination ul li {
  border: none !important;
}
/* === TABLA DE MARCADORES GENÉTICOS === */
.wc-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.wc-product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  font-size: 15px;
  line-height: 1.35;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.wc-product-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0e5268; /* azul corporativo */
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
}

.wc-product-table tbody td {
  border-bottom: 1px solid #e7eef2;
  padding: 14px 16px;
  vertical-align: top;
}

.wc-product-table tbody tr:nth-child(odd){
  background: #f9fcfd; /* gris azulado claro */
}

.wc-product-table .col-price {
  white-space: nowrap;
  font-weight: 700;
  color: #0e5268;
}

.wc-product-table .col-cart .button {
  border-radius: 999px;
  padding: .55rem 1rem;
  background: #0e5268;
  color: #fff;
  font-weight: 600;
  transition: all .2s ease;
}
.wc-product-table .col-cart .button:hover {
  background: #093847;
}

/* Botón PDF arriba */
.eg-pdf-btn {
  display: inline-block;
  padding: .8rem 1.2rem;
  border-radius: 10px;
  background: #0e5268;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
}
.eg-pdf-btn:hover {
  background: #093847;
}
.tax-product_cat #primary {
  margin: 0 !important;
}

/* === Responsive: tabla colapsada en móviles === */
/* ===========================
   TABLETS (≤ 1024px)
   =========================== */
@media (max-width: 1024px) {
  /* Hero más compacto */
  .page-template-page-marcadores .marcadores-hero {
    min-height: 60vh;
    padding: 0 24px;
    background-position: 50% 70%;
  }
  .page-template-page-marcadores .marcadores-hero h1 { font-size: 2.4rem; }
  .page-template-page-marcadores .marcadores-hero p  { font-size: 1.25rem; margin-bottom: 3rem; }

  /* Tabla más compacta */
  .wc-product-table { font-size: 14.5px; }
  .wc-product-table thead th,
  .wc-product-table tbody td { padding: 12px 14px; }

  /* Botón PDF */
  .eg-pdf-btn { padding: .9rem 1.4rem; font-size: 1rem; }
}

/* ===========================
   TELÉFONOS (≤ 768px)
   =========================== */
@media (max-width: 768px) {
  /* Header absoluto → respiro arriba del hero */
  .page-template-page-marcadores .marcadores-hero {
    min-height: 52vh;
    padding-top: 5rem;   /* evita superposición del header */
    padding-left: 18px;
    padding-right: 18px;
    background-position: 50% 72%;
  }
  .page-template-page-marcadores .marcadores-hero h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
    text-align: center;
  }
  .page-template-page-marcadores .marcadores-hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  /* Botón PDF ancho completo */
  .eg-pdf-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin: .5rem 0 1.25rem;
  }

  /* Paginación adaptable */
  .eg-pagination .page-numbers {
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
  }
  .eg-pagination .page-numbers li a,
  .eg-pagination .page-numbers li span {
    padding: .65rem .9rem;
    border-radius: 8px;
  }

  /* Tabla con scroll horizontal */
  .wc-table-wrapper { margin-top: 1.25rem; }
  .wc-product-table {
    font-size: 14px;
    min-width: 700px; /* reduce ancho mínimo para móvil apaisado */
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
  }
  .wc-product-table thead th { position: sticky; top: 0; }
  .wc-product-table thead th,
  .wc-product-table tbody td { padding: 10px 12px; }

  /* Botón dentro de tabla */
  .wc-product-table .col-cart .button {
    width: 100%;
    text-align: center;
    padding: .6rem 1rem;
  }

  /* Contenedor principal sin márgenes extra */
  .tax-product_cat #primary { margin: 0 !important; }
}

/* ===========================
   TELÉFONOS PEQUEÑOS (≤ 480px)
   =========================== */
@media (max-width: 480px) {
  /* Hero compacto */
  .page-template-page-marcadores .marcadores-hero {
    min-height: 46vh;
    padding-top: 4.5rem;
    background-position: 50% 75%;
  }
  .page-template-page-marcadores .marcadores-hero h1 { font-size: 1.7rem; }
  .page-template-page-marcadores .marcadores-hero p  { font-size: .98rem; margin-bottom: 1.5rem; }

  /* PDF */
  .eg-pdf-btn { padding: .8rem 1rem; font-size: .95rem; }

  /* Tabla compacta + scroll */
  .wc-product-table { min-width: 620px; }
  .wc-product-table thead th,
  .wc-product-table tbody td {
    padding: 9px 10px;
    font-size: 13.5px;
    line-height: 1.35;
  }

  /* Paginación más pequeña */
  .eg-pagination .page-numbers { gap: .35rem; }
  .eg-pagination .page-numbers li a,
  .eg-pagination .page-numbers li span {
    padding: .5rem .7rem;
    border-radius: 6px;
    font-size: .92rem;
  }
}
.eg-pdf-btn {
  display: none !important;
}