/* Reset márgenes y paddings para html y body */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}
/* 🔴 Barra roja fija */
.barra-superior-fija {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
/* Centrar verticalmente el texto */
  background-color: #a31c1c;
  color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: Arial, sans-serif;
  padding: 0 20px;
  box-sizing: border-box;
}
/* Contenedor sticky-wrapper sin padding vertical para no recortar */
div.sticky-wrapper {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 calc(-50vw + 50%) !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 9998 !important;
  padding: 0 !important; /* Quitar padding vertical */
}
/* ⬇️ Empujar el header para que no se tape con la barra roja */
.menu-area {
  margin-top: 40px !important; /* Altura barra roja */
  background-color: #ffffff !important;
  z-index: 9999 !important;
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
  padding: 0 20px !important; /* Solo padding lateral */
}
/* Centrar y limitar ancho del contenido interno */
.menu-area .elementor-container,
.menu-area .elementor-row,
.menu-area .elementor-column,
.menu-area .elementor-widget-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}
/* Texto y enlaces del menú en negro */
.menu-area .main-menu a,
.menu-area .header-logo a h2 {
  color: #000000 !important;
}
/* Banner sin margen ni padding para evitar recortes */
.breadcrumb-section {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 600px; /* Ajusta la altura mínima que quieres que tenga el banner */
}
/* Para asegurar que la imagen de fondo cubra el contenedor */
.breadcrumb-section .bg {
  background-image: url('https://laboratoriroiser.com/wp-content/uploads/2025/06/banner.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
  height: 100% !important;
}
/* Fondo transparente para pseudo-elemento */
.breadcrumb-section .bg::before {
  background: transparent !important;
}
/* Muestra tu logo como fondo en el mismo lugar */
.menu-area .header-logo a {
  display: block !important;
  width: 190px; /* Ajusta según el tamaño que quieras */
  height: 85px; /* Ajusta según la proporción del logo */
  background-image: url('https://laboratoriroiser.com/wp-content/uploads/2025/06/logo-removebg-preview.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
	margin-left: 200px;
	
	
}
.menu-area .main-menu {
  display: flex !important;
  justify-content: flex-start !important; /* Alinea todo a la izquierda */
  margin-left: -1100px !important; /* Ajusta aquí también */
}
/* Estilo para el botón Ver menos */
#verMenos {
  background-color: #ffffff;    /* fondo blanco */
  color: #333333;               /* color del texto */
  padding: 12px 25px;           /* tamaño del botón */
  border-radius: 25px;          /* bordes redondeados */
  font-weight: bold;            /* texto en negrita */
  font-size: 16px;              /* tamaño del texto */
  border: 2px solid #f2295b;   /* borde del color que quieras */
  transition: all 0.3s ease;    /* animación suave */
  display: inline-flex;         /* para alinear icono y texto */
  align-items: center;
  gap: 8px;                     /* espacio entre icono y texto */
  text-decoration: none;        /* quitar subrayado */
  margin: 20px auto 0 auto;     /* centrar horizontalmente y margen superior */
  cursor: pointer;
}
/* Hover */
#verMenos:hover {
  background-color: #f2295b;   /* cambiar fondo al pasar el mouse */
  color: #ffffff;               /* cambiar texto al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* Centrar el botón */
#verMenos {
  text-align: center;
} 
/* Contenedor principal de archivos */
.private-files-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  width: 100%;
}
/* Cada archivo como fila */
.private-files-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 8px 0;
}
/* Columnas dentro de la fila */
.private-files-list li a.private-file-title,
.private-files-list li span.private-file-date,
.private-files-list li span.private-file-size,
.private-files-list li span.private-file-type,
.private-files-list li a.private-file-download {
  flex: 1 1 20%;
  padding: 4px 8px;
  text-align: left;
  min-width: 100px;
}
/* Título más destacado */
.private-files-list li a.private-file-title {
  font-weight: bold;
}
/* Botón de descarga */
.private-files-list li a.private-file-download {
  background-color: #28a745;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  padding: 5px 10px;
  text-align: center;
  transition: 0.3s;
}
.private-files-list li a.private-file-download:hover {
  background-color: #218838;
}
/* Alternar colores de fila */
.private-files-list li:nth-child(even) {
  background-color: #fafafa;
}
/* Cabecera simulada */
.private-files-list li.header {
  font-weight: bold;
  background-color: #f2f2f2;
  border-bottom: 2px solid #ccc;
}
/* Cabecera visual con ::before */
.private-files-list li:first-child a.private-file-title::before { content: "Título"; font-weight: bold; }
.private-files-list li:first-child span.private-file-date::before { content: "Fecha"; font-weight: bold; }
.private-files-list li:first-child span.private-file-size::before { content: "Tamaño"; font-weight: bold; }
.private-files-list li:first-child span.private-file-type::before { content: "Tipo"; font-weight: bold; }
.private-files-list li:first-child a.private-file-download::before { content: "Descargar"; font-weight: bold; }
/* Responsive: apilar columnas en móvil */
@media (max-width: 768px) {
  .private-files-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  .private-files-list li a.private-file-title,
  .private-files-list li span.private-file-date,
  .private-files-list li span.private-file-size,
  .private-files-list li span.private-file-type,
  .private-files-list li a.private-file-download {
    flex: 1 1 100%;
    padding: 4px 0;
  }
}
/*color del 0*/
.odometer.odometer-auto-theme .odometer-digit .odometer-value,
.odometer.odometer-theme-default .odometer-digit .odometer-value {
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    color: white !important;
}
/* Banner personalizado para la página con ID 1196 */
body.page-id-1196 .bg.bg-image {
    background-image: url('https://laboratoriroiser.com/wp-content/uploads/2025/06/7-1724921881-1920x1920-1.jpg') !important;
    background-size: cover;      
    background-position: center; 
    background-repeat: no-repeat;
}
/* Banner personalizado para la página con ID 6163 */
body.page-id-6163 .bg.bg-image {
    background-image: url('https://laboratoriroiser.com/wp-content/uploads/2025/10/banener.jpg') !important;
    background-size: cover;      
    background-position: center; 
    background-repeat: no-repeat;
}
.stat-box.bg-theme {
    background-color: transparent !important;
}
.odometer-value {
    display: none !important;  /* desaparece completamente */
}

/* =========================================
   CARRUSEL CON CLASE ESPECIAL (Zoom + Cortina + Textos)
========================================= */

/* Solo afecta a carruseles con la clase "carrusel-especial" */
.carrusel-especial .swiper-slide {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Imagen con zoom suave */
.carrusel-especial .swiper-slide img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.carrusel-especial .swiper-slide:hover img {
  transform: scale(1.05);
}

/* Cortina desde abajo */
.carrusel-especial .swiper-slide::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 5;
}

.carrusel-especial .swiper-slide:hover::before {
  transform: translateY(0);
}

/* Texto siempre visible abajo */
.carrusel-especial .swiper-slide::after {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  background: rgba(0,0,0,0.5);
  padding: 5px 0;
  transition: all 0.4s ease;
  z-index: 10;
  display: block;
}

/* Hover: centrar texto y quitar fondo */
.carrusel-especial .swiper-slide:hover::after {
  bottom: 50%;
  transform: translateY(50%);
  background: transparent;
}

/* =========================================
   DETECCIÓN POR IDIOMA (SOLO CARRUSEL ESPECIAL)
========================================= */

/* CASTELLANO */
html[lang="es-ES"] .carrusel-especial .swiper-slide[data-swiper-slide-index="0"]::after { content: "AGROALIMENTARIO"; }
html[lang="es-ES"] .carrusel-especial .swiper-slide[data-swiper-slide-index="1"]::after { content: "PAPELERO"; }
html[lang="es-ES"] .carrusel-especial .swiper-slide[data-swiper-slide-index="2"]::after { content: "COSMÉTICO Y FARMACÉUTICO"; }
html[lang="es-ES"] .carrusel-especial .swiper-slide[data-swiper-slide-index="3"]::after { content: "INDUSTRIA QUÍMICA"; }
html[lang="es-ES"] .carrusel-especial .swiper-slide[data-swiper-slide-index="4"]::after { content: "TURÍSTICO"; }
html[lang="es-ES"] .carrusel-especial .swiper-slide[data-swiper-slide-index="5"]::after { content: "PÚBLICO"; }
html[lang="es-ES"] .carrusel-especial .swiper-slide[data-swiper-slide-index="6"]::after { content: "SANITARIO"; }

/* CATALÁN */
html[lang="ca"] .carrusel-especial .swiper-slide[data-swiper-slide-index="0"]::after { content: "AGROALIMENTARI"; }
html[lang="ca"] .carrusel-especial .swiper-slide[data-swiper-slide-index="1"]::after { content: "PAPERER"; }
html[lang="ca"] .carrusel-especial .swiper-slide[data-swiper-slide-index="2"]::after { content: "COSMÈTIC I FARMACÈUTIC"; }
html[lang="ca"] .carrusel-especial .swiper-slide[data-swiper-slide-index="3"]::after { content: "INDÚSTRIA QUÍMICA"; }
html[lang="ca"] .carrusel-especial .swiper-slide[data-swiper-slide-index="4"]::after { content: "TURÍSTIC"; }
html[lang="ca"] .carrusel-especial .swiper-slide[data-swiper-slide-index="5"]::after { content: "PÚBLIC"; }
html[lang="ca"] .carrusel-especial .swiper-slide[data-swiper-slide-index="6"]::after { content: "SANITARI"; }
/* Hover: centrar texto y quitar fondo */
.elementor-widget-image-carousel .swiper-slide:hover::after {
  bottom: 50%;
  transform: translateY(50%);
  background: transparent;
}


/* Hover: centrar texto y quitar fondo */
.elementor-widget-image-carousel .swiper-slide:hover::after {
  bottom: 50%;
  transform: translateY(50%);
  background: transparent;
}



#cuar-table-view {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: Arial, sans‑serif;
}
#cuar-table-view th, #cuar-table-view td {
  border-bottom: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}
#cuar-table-view th {
  background: #f2f2f2;
  font-weight: bold;
  cursor: pointer;
}
#cuar-table-view tr:hover {
  background-color: #f9f9f9;
}
#cuar-table-view img {
  width: 40px;
  height: auto;
}
#cuar-table-view a.btn‑view,
#cuar-table-view a.btn‑download {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 13px;
}
#cuar-table-view a.btn‑view {
  background-color: #0073aa;
}
#cuar-table-view a.btn‑download {
  background-color: #28a745;
}
#cuar-table-view a.btn‑view:hover {
  background-color: #005f8d;
}
#cuar-table-view a.btn‑download:hover {
  background-color: #1e7e34;
}
.sub-title {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 36px !important;
    height: 100px !important;        /* Ajusta según tu diseño */
    color: black !important;       /* Texto en blanco */
}
/* Quitar la estrella si viene de pseudo-elementos */
.sub-title::before,
.sub-title::after {
    content: none !important;
}
/* Quitar la estrella si está dentro de un span */
.sub-title span.estrella {
    display: none !important;
}
.sec-title {
    font-size: 18px !important;       /* Tamaño más pequeño */
    color: #ffffff !important;        /* Texto blanco */
    text-align: center !important;    /* Centrado horizontal */
    margin: 0 auto !important;        /* Asegura centrado si es bloque */
}
/* --- ESTILOS PARA LA FICHA DE DESCARGA WCA --- */
.descarga-ficha-wca {
    display: flex; /* Para poner el icono y el texto uno al lado del otro */
    align-items: center; /* Centrar verticalmente */
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.descarga-ficha-wca img {
    margin-right: 25px;
    width: 80px; 
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.descarga-info-wca h2 {
    margin: 0 0 8px 0;
    font-size: 1.8em;
    color: #0073aa; /* Puedes cambiar este color */
}
.descarga-info-wca p {
    margin: 0;
    color: #555;
}
/* Estilos para el Botón de Descarga Nativo de WCA */
.cuar-download-button a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0073aa; /* Puedes cambiar este color */
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cuar-download-button a:hover {
    background-color: #005180; /* Color al pasar el ratón */
}
/* --- OCULTAR EL H2 DUPLICADO QUE APARECE FUERA DEL LOGO --- */
/* Este selector apunta al h2 que se genera en el área del header (nav-header) */
.header-logo h2, 
.header-logo h2 a {
    /* Ocultar completamente el elemento */
    display: none !important; 
    visibility: hidden !important;
}
/* Opcional: Si el texto está fuera del contenedor del logo pero dentro del nav */
.nav-header h2 {
    display: none !important;
    visibility: hidden !important;
}
/* --- CÓDIGO SEGURO PARA EL TEXTO DEL ENCABEZADO --- */
/* 1. Usar la clase más específica del contenedor superior para limitar el alcance */
.title-area.three .sub-title {
    color: #FFFFFF !important; /* Forzar el color blanco */
}
/* 2. Si el texto "ANÁLISIS" es el único que está suelto en ese div,
   apuntamos directamente al div hijo: */
.title-area.three > .sub-title {
    color: #FFFFFF !important;
}
/* --- EFECTO FINAL: SOLO ZOOM SUAVE --- */
/* 1. Contenedor de cada elemento de la galería */
.elementor-image-gallery .gallery-item {
    position: relative; 
    overflow: hidden; /* Clave para el efecto: Recorta el zoom de la imagen */
    cursor: pointer;
    border-radius: 10px; 
}
/* 2. La imagen (Aplicar la transición para el zoom) */
.elementor-image-gallery .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out; /* Transición suave */
}
/* 3. El Efecto al pasar el ratón (Hover) */
.elementor-image-gallery .gallery-item:hover img {
    transform: scale(1.08); /* La imagen se agranda un 8% */
}
/* 4. Limpieza: Asegurarnos de que no haya capas de texto/cortina */
.elementor-image-gallery .gallery-item a::before, 
.elementor-image-gallery .gallery-item .gallery-overlay-text {
    /* Ocultar cualquier remanente de capas o texto inyectado con display: none; */
    display: none !important;
}
/* 5. Asegurar que el título original (en la franja de la imagen) quede visible */
.elementor-image-gallery .gallery-item .gallery-caption {
    /* Si tienes un pie de foto nativo, asegúrate de que no esté oculto */
    opacity: 1 !important;
}
/* --- ESTILOS VISUALES FINALES: BOTONES INTERACTIVOS CON BORDE --- */

/* 1. Limpieza y Contenedor Principal (GRID y SCROLL) */
#cuar-terms-tree-cuar_private_file_categories.cuar-tree {
    /* Usamos una sola columna para que parezcan botones apilados, más limpios */
    display: flex !important; 
    flex-direction: column !important; /* Apilados verticalmente */
    gap: 5px; /* Espacio mínimo entre los botones */
    padding: 10px 0 !important; /* Espacio superior/inferior */
    
    max-height: 450px !important; /* Mantenemos la barra de desplazamiento */
    overflow-y: auto !important; 
    border: 1px solid #ddd; /* Borde sutil alrededor de todo el contenedor de botones */
    border-radius: 8px;
}
/* 2. Estilo de Cada Caja de Categoría (el nodo Fancytree) */
#cuar-terms-tree-cuar_private_file_categories .fancytree-node {
    /* Estilo de Botón / Fila */
    display: block !important; /* Ocupa todo el ancho */
    text-align: left !important;
    padding: 10px 15px !important; /* Espacio interno grande */
    min-height: auto; /* Altura flexible */
    
    /* Fondo base y Transición */
    background-color: transparent !important; 
    border: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out;
}

/* 3. Estilo del Título / Texto */
#cuar-terms-tree-cuar_private_file_categories .fancytree-title {
    color: #333 !important;
    font-size: 1.1em !important;
    font-weight: normal !important;
    text-decoration: none !important;
    display: inline !important;
}
/* 4. EFECTO HOVER: CAMBIO COMPLETO DE COLOR */
#cuar-terms-tree-cuar_private_file_categories .fancytree-node:hover {
    background-color: #A52A2A !important; /* Fondo cambia a color de marca */
    transform: none !important; /* Sin animación de lift */
    box-shadow: none !important;
}
/* Al hacer hover, el texto se vuelve blanco */
#cuar-terms-tree-cuar_private_file_categories .fancytree-node:hover .fancytree-title {
    color: white !important;
}
/* 5. LIMPIEZA: Ocultar Iconos y Elementos Innecesarios */
/* Ocultar el icono genérico y la flecha de expansión */
#cuar-terms-tree-cuar_private_file_categories .fancytree-icon,
.fancytree-expander {
    display: none !important; 
}
/* --- Modifica este bloque para limitar la altura de la Rejilla de Categorías --- */
#cuar-terms-tree-cuar_private_file_categories.cuar-tree {
    display: grid !important; 
    /* ... (otras propiedades GRID se mantienen) ... */
    /* ESTA ES LA PROPIEDAD CLAVE QUE DEBES AJUSTAR */
    max-height: 250px !important; /* <--- AJUSTA ESTE VALOR (250px mostrará 2 o 3 filas) */
    overflow-y: auto !important; /* Forzar la ruedita */
    scrollbar-width: thin;
    scrollbar-color: #A52A2A #f1f1f1;
}

/* ESTO ELIMINA EL COMENTARIO AUTOMÁTICO DE LA PÁGINA (FRONT-END) */
.cuar-auto-comment {
    display: none !important; 
}





/* =========================================
   FIX REAL HEADER MOVIL (CON MENU-TOGGLE)
========================================= */
@media (max-width: 768px) {

  /* 1️⃣ Evitar scroll horizontal */
  html, body {
    overflow-x: hidden !important;
  }

  /* 2️⃣ Header: forzar altura real */
  .menu-area {
    position: relative !important;
    min-height: 70px !important;
    padding: 10px 15px !important;
    z-index: 1000 !important;
  }

  /* 3️⃣ OCULTAR logo y menú de escritorio */
  .menu-area .header-logo,
  .menu-area .main-menu {
    display: none !important;
  }

  /* 4️⃣ BOTÓN HAMBURGUESA (EL TUYO) */
  .menu-toggle.sidebar-btn {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 10px !important;
    z-index: 1001 !important;
  }

  /* Líneas del botón */
  .menu-toggle.sidebar-btn .line {
    background-color: #000 !important;
  }

  /* 5️⃣ EVITAR QUE EL BANNER SE META DEBAJO */
  .breadcrumb-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 260px !important;
  }

  .breadcrumb-section .bg {
    position: relative !important;
    z-index: 1 !important;
  }

  /* 6️⃣ Texto del banner (Home / Equipo) */
  .breadcrumb-section h1,
  .breadcrumb-section .breadcrumb-text,
  .breadcrumb-section .page-title {
    position: relative !important;
    z-index: 2 !important;
  }
}




/* 📱 RESPONSIVE MÓVIL – CON LOGO SIEMPRE VISIBLE */
@media (max-width: 768px) {

  /* Evitar scroll horizontal */
  html, body {
    overflow-x: hidden !important;
  }

  /* Barra roja */
  .barra-superior-fija {
    height: auto !important;
    line-height: normal !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  /* Header móvil */
  .menu-area {
    margin-top: 40px !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  /* LOGO SIEMPRE VISIBLE (3 posibles ubicaciones) */
  .menu-area .header-logo,
  .nav-header .header-logo,
  .header-logo {
    display: block !important;
  }

  .menu-area .header-logo a,
  .nav-header .header-logo a,
  .header-logo a {
    display: block !important;
    width: 150px !important;
    height: 60px !important;
    margin: 0 !important;
    background-image: url('https://laboratoriroiser.com/wp-content/uploads/2025/06/logo-removebg-preview.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
  }

  /* No ocultar el logo nunca */
  .menu-area .header-logo,
  .header-logo {
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Menú escritorio oculto */
  .menu-area .main-menu {
    display: none !important;
  }

  /* Botón hamburguesa */
  .menu-toggle.sidebar-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    z-index: 10001 !important;
  }

  /* Banner móvil */
  .breadcrumb-section,
  .breadcrumb-section .bg,
  .breadcrumb-section .bg.bg-image {
    min-height: 320px !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center center !important;
    overflow: visible !important;
  }

  /* Texto del banner */
  .breadcrumb-section h1,
  .breadcrumb-section .breadcrumb-text,
  .breadcrumb-section .page-title {
    font-size: 22px !important;
    padding: 10px 15px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Botón Ver Menos */
  #verMenos {
    margin: 20px auto !important;
    font-size: 15px !important;
    padding: 10px 20px !important;
  }

  /* Archivos */
  .private-files-list li {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .private-files-list li a,
  .private-files-list li span {
    flex: 1 1 100% !important;
    padding: 4px 0 !important;
  }

  /* Galería */
  .elementor-image-gallery .gallery-item img {
    transform: none !important;
  }

  .elementor-image-gallery .gallery-item:hover img {
    transform: scale(1.05) !important;
  }

  /* Tabla */
  #cuar-table-view {
    font-size: 13px !important;
    overflow-x: auto !important;
    display: block !important;
  }

  #cuar-table-view a.btn‑view,
  #cuar-table-view a.btn‑download {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
}




/* 📱 Asegurar que el header se ve igual logeado o no */
@media (max-width: 768px) {

  body.logged-in .menu-area,
  body.admin-bar .menu-area,
  body.cuar-logged-in .menu-area {
    margin-top: 40px !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  body.logged-in .header-logo a,
  body.admin-bar .header-logo a,
  body.cuar-logged-in .header-logo a {
    display: block !important;
    width: 150px !important;
    height: 60px !important;
    background-image: url('https://laboratoriroiser.com/wp-content/uploads/2025/06/logo-removebg-preview.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
  }
}


/* =========================================
   FIX DEFINITIVO BANNER + HEADER EN MÓVIL
========================================= */
@media (max-width: 768px) {

  /* 1️⃣ Altura real de la barra roja en móvil */
  .barra-superior-fija {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: auto !important;
    padding: 8px 10px !important;
    line-height: normal !important;
    z-index: 10000 !important;
  }

  /* 2️⃣ Empujar TODO el sitio debajo de la barra roja */
  body {
    padding-top: 56px !important; /* barra roja real en móvil */
  }

  /* 3️⃣ Header móvil limpio (sin empujes raros) */
  .menu-area {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  /* 4️⃣ EL FIX CLAVE → el banner ya no se rompe */
  .breadcrumb-section {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 300px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .breadcrumb-section .bg,
  .breadcrumb-section .bg.bg-image {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* 5️⃣ Texto del banner bien centrado */
  .breadcrumb-section h1,
  .breadcrumb-section .page-title,
  .breadcrumb-section .breadcrumb-text {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    padding: 10px 15px !important;
  }

  /* 6️⃣ Evitar desplazamientos laterales */
  html, body {
    overflow-x: hidden !important;
  }
}



/* 1. Ocultamos el bloque vacío del segundo título y el punto naranja */
.nexta-team-section-title-wrap {
    display: none !important;
}

/* 2. Ajustamos el título principal para que no ocupe espacio extra */
.sub-title {
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Forzamos a que el bloque de fotos suba eliminando su margen superior */
.member-stats-box {
    margin-top: 0 !important;
    padding-top: 0 !important;
}




/* Animación de scroll suave y emergente */
.team-single-box {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.6s ease-out;
}

/* Cuando entra en pantalla */
.team-single-box.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hover muy suave en desktop (opcional) */
@media(min-width: 992px) {
  .team-single-box:hover {
    transform: translateY(-3px) scale(1.01);
    transition: transform 0.3s ease;
  }
}

/* Limitar texto descriptivo a 3 líneas */
.team-single-box .team-content p:last-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* En móvil, mostrar todo el texto */
@media (max-width: 767px) {
  .team-single-box .team-content p:last-of-type {
    -webkit-line-clamp: unset;
    display: block;
  }
}




