/* ==========================================================================
   #3. PÁGINA HOME 
========================================================================== */
/* #region HERO + Carrusel Fondo */
.hero-section {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.hero-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: background-image 0.7s cubic-bezier(.7,.2,.3,1);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(0, 11, 64, 0.6), rgba(129, 149, 248, 0.6));
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  width: 90%;
  text-align: center;
  color: white;
  margin-top: 4rem;
  z-index: 3;
  position: relative;
}
.hero-texts {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
  position: absolute; /* Asegura que se superpongan sin desorden */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-texts.visible {
  opacity: 1;
  pointer-events: all;
}


.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 50px;
  color: #fefefe;
}
.hero-subtitle {
  font-size: 19.2px;
  font-weight: 700;
  margin-bottom: 2.8rem;
  line-height: 23px;
}
.hero-button {
  background-color: #6265fe;
  color: #fefefe;
  padding: 0.9rem 3rem;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  font-size: 25px;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 14rem;
  z-index: 3;
  position: relative;
}
.hero-button:hover {
  background-color: #7aa9ff;
  color: #fefefe;
}

/* Carrusel flechas y puntitos adaptados para el hero */
.carrusel-prev,
.carrusel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #b6baff;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  box-shadow: 0 2px 8px #022e47;
  transition: background 0.2s;
  color: white;
}
.carrusel-prev{
  padding: 0.3rem 1.1rem 0.3rem 0.8rem;
}
.carrusel-next {
  padding: 0.3rem 0.8rem 0.3rem 1.1rem;
}
.carrusel-prev:hover,
.carrusel-next:hover,
.carrusel-prev:active,
.carrusel-next:active {
  background: #6265fe;
  color: #fff;
}
.carrusel-prev:focus,
.carrusel-next:focus {
  background: #b6baff !important;
  color: white !important;
  outline: none;
}
.carrusel-prev { left: 40px; }
.carrusel-next { right: 40px; }

/* Indicadores */
.carrusel-indicators {
  text-align: center;
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  z-index: 6;
}
.carrusel-indicators button {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 7px;
  background: #b6baff;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.carrusel-indicators button.active,
.carrusel-indicators button:hover,
.carrusel-indicators button:focus {
  background: #6265fe; /* Tu azul principal */
}


/* #endregion */

/* #region CATEGORÍAS */
.categories-section {
  padding: 6rem 2rem;
  background-color: #f4f5f5;
  zoom: 1.05;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 1.5rem auto;
}

.intro-left h2 {
  color: #6265fe;
  font-weight: 700;
  font-size: 40px;
  margin-left: 3rem;
  text-align: justify;
  word-spacing: 0.4rem;
}

.intro-right p {
  max-width: 370px;
  margin-right: 3rem;
  font-size: 1rem;
  font-weight: 100;
  line-height: 1.3;
  word-spacing: 0rem;
  text-align: justify;
  color: #022e47;
}


.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.category-card {
  height: 150px;
  border-radius: 12px;
  background-color: #fefefe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #6265fe;
  transition: background-color 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 20px;
}

.category-icon {
  width: 65px;
  height: 65px;
  margin-top: 2.2rem;
  margin-bottom: 0.3rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  transition: filter 0.3s, transform 0.3s;
  /* Si tus SVGs son monocromáticos, puedes usar filter para cambiar su color. */
}

.category-card.water .category-icon {
  width: 60px !important;  /* o el tamaño que prefieras */
  height: 60px !important;
}

.category-card:hover .category-icon {
  filter: brightness(0) invert(1); /* Esto hace blanco el SVG si originalmente es negro o de un solo color */
  transform: scale(1.1);
}

.category-card.agroindustrial:hover { background-color: #52d2a5; color: #fefefe;}
.category-card.bioterios:hover     { background-color: #3798a7; color: #fefefe;}
.category-card.human:hover       { background-color: #f46380; color: #fefefe;}
.category-card.alimentos:hover   { background-color: #f39f6f; color: #fefefe;}
.category-card.veterinary:hover   { background-color: #9654ec; color: #fefefe;}
.category-card.water:hover        { background-color: #2ccde3; color: #fefefe;}
.category-card.marcadorestumorales:hover        { background-color: #55c466; color: #fefefe;}
.category-card.multiplex:hover        { background-color: #4845b3; color: #fefefe;}
.category-card.geneticallymodifiedorganism:hover        { background-color: #fe73e5; color: #fefefe;}

.submenu {
  display: none;
  position: absolute;
  top: 80%;
  left: 2rem;
  width: 80%;
  background: white;
  border-radius: 12px;
  padding: 1rem 1rem 0.5rem 1.5rem; /* top right bottom left */
  text-align: left;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  color: #6265fe;
  font-size: 0.9rem;
  font-weight: 400;
  
}

.submenu p {
  margin: 0px 5px 5px 5px;           /* ← evita espacio extra abajo */
  line-height: 1.1;    /* ← opcional: controla altura entre líneas */
}
.category-card.agroindustrial:hover .submenu {
  display: block;
}
.category-card.bioterios:hover .submenu {
  display: block;
}
.category-card.human:hover .submenu {
  display: block;
}
.category-card.alimentos:hover .submenu {
  display: block;
}
.category-card.veterinary:hover .submenu {
  display: block;
}
.category-card.water:hover .submenu {
  display: block;
}
.category-card.marcadorestumorales:hover .submenu {
  display: block;
}
.category-card.multiplex:hover .submenu {
  display: block;
}
.category-card.geneticallymodifiedorganism:hover .submenu {
  display: block;
}

/* #endregion */

/* #region POR QUÉ ELEGIRNOS */
.why-pcr-section {
  background-color: #f4f5f5;
  padding: 2.5rem 3rem 1.5rem 3rem;
}

.why-pcr-title {
  color: #6265fe;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;

}

.why-pcr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
}

.why-pcr-card {
  background-color: #ffffff;
  padding: 2rem 2rem;
  color: #022e47;
  transition: all 0.3s ease;
  font-size: 10px;
  text-align: center; /* Alinea todo el contenido de la tarjeta */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra los íconos */
}
/* Primer card (izquierda) */
.why-pcr-card:first-child {
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}

/* Última card (derecha) */
.why-pcr-card:last-child {
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}
.why-pcr-card:hover {
  background-color: #022e47;
  color: white;
  border-radius: 12px;
  transform: translateY(-10px);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;

}

.icon-svg {
  width: 70px;       /* Ajusta el tamaño a gusto */
  height: 70px;
  display: block;
  margin: 0 auto 1rem auto; /* Centrado y espacio abajo */
  transition: filter 0.3s;
}

.icon-svg--large {
  transform: scale(1.5);
}
.icon-svg--laarge {
  transform: scale(1.6);
}
.why-pcr-card:hover .icon-svg {
  filter: brightness(0) invert(1);
}


.why-pcr-card h3 {
  color: #6265fe;
  font-size: 20px;
  font-weight: 700;
  text-align: center; /* Alinea el título a la izquierda */
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  width: 100%; /* Hace que el h3 ocupe todo el ancho disponible */
}

.why-pcr-card:hover h3 {
  color: #fefefe;
}

.why-pcr-card p {/* Justifica el texto */
  margin-bottom: 1rem;/* Separación entre el párrafo y el siguiente elemento */
  font-size: 16px;
  margin-top: 1rem;
  word-spacing: 2px;
}


/* #endregion */

/* #region TESTIMONIALS */
.testimonials-section {
  padding: 5rem 1rem;
  background-color: #f4f5f5;
  text-align: center;
}
.testimonials-title {
  color: #6265fe;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 2rem;
}
.testimonial-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  color: #022e47;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.testimonial-card .fa-circle-user {
  font-size: 80px;
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  color: #022e47;
}

.testimonials-section .splide__pagination__page {
  background-color: #022e47;
}

.testimonials-section .splide__pagination__page.is-active {
    background: #76a6ef
}
.testimonial-card blockquote {
  border-left: 5px solid #6265fe;
}
.testimonials-section .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #b6baff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  box-shadow: 0 2px 8px #022e47;
  transition: background 0.2s;
  color: white!important;
  display: flex;
  justify-content: center;
  align-items: center;
}
.testimonials-section .splide__arrow svg {
  fill: white!important;
}
.testimonials-section .splide__arrow:hover {
  background: #6265fe;
  color: #fff;
}

.testimonials-section .splide__arrow--prev {
  padding: 0.3rem 0.5rem 0.3rem 0.3em;
}

.testimonials-section .splide__arrow--next {
  padding: 0.3rem 0.3rem 0.3rem 0.4em;
}
/* #endregion */

/* #region CERTIFICACIONES  */

.kitpcr-credentials {
  padding: 2.5rem 0.7rem;
  background-color: #f4f5f5;
  text-align: center;
}
.kitpcr-credentials h2 {
  color: #6265fe;
  font-size: 40px !important;
  margin-bottom: 2.5rem !important;
  margin-top: 1.5rem;
  font-weight: 700;
}
.certifications {
  display: flex;
  justify-content: center;
  gap: 7rem;
  flex-wrap: wrap;
}
.cert-box h3 {
  color: white;            /* ← Esto asegura que sea blanco */
  font-size: 40px;       /* ← Ajusta el tamaño como desees */
  margin: 0;
  font-weight: bold;
}
.cert-box h3 span {
  font-size: 40px;
  font-weight: bold;
  display: block;
  line-height: 1;
}
.cert-box p {
  font-size: 20px;
  margin-top: 1.5rem; /* ← Ajusta aquí para más o menos espacio */
}

.cert-box {
  background-color: #022e47;
  color: white;
  padding: 2.8rem 4.5rem;
  border-radius: 16px;
  min-width: 350px;
  max-width: 350px;
  position: relative;
  text-align:center;
  font-weight:600;;
}

.cert-box::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  background-color: #6b63ff;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}
section.certifications {
  background-color: #f4f5f5;
  padding: 2.5rem 1rem;
  margin-top: -2rem;
}

.cert-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background-color: #6265fe;
  color: #f4f5f5;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cert-btn:hover {
  background-color: #f4f5f5;
  color: #022e47;
}


/* #endregion */

/* #region RESPONSIVE */
/* ========== TABLETS (≤992px) ========== */
@media (max-width: 992px) {
  /* HERO */
  .hero-title {
    font-size: 36px;
    line-height: 42px;
  }
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 2rem;
  }
  .hero-button {
    font-size: 20px;
    margin-top: 10rem;
    padding: 0.8rem 2rem;
  }

  /* FLECHAS */
  .carrusel-prev,
  .carrusel-next {
    font-size: 2rem;
    padding: 0.3rem 1rem;
  }

  /* CATEGORÍAS */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-intro {
    flex-direction: column;
    align-items: center;
  }
  .intro-left h2,
  .intro-right p {
    margin: 1rem auto;
    text-align: center;
  }

  /* WHY PCR */
  .why-pcr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* CERTIFICACIONES */
  .certifications {
    gap: 3rem;
  }
  .cert-box {
    padding: 2rem 2.5rem;
  }
  .cert-box h3,
  .cert-box h3 span {
    font-size: 30px;
  }
  .cert-box p {
    font-size: 16px;
  }
}


/* ========== MÓVILES (≤768px) ========== */
@media (max-width: 768px) {
  /* HERO */
  .hero-title {
    font-size: 25px;
    line-height: 36px;
    margin-bottom: 60px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .hero-button {
    margin-top: 13rem!important;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
  .hero-section,
  .hero-bg {
    height: 60vh;
    min-height: 320px;
  }
  .carrusel-prev { left: 12px; }
  .carrusel-next { right: 12px; }
  .carrusel-indicators {
    bottom: 20px;
  }

  /* CATEGORÍAS */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .category-card {
    font-size: 18px;
  }

  /* WHY PCR */
  .why-pcr-title {
    font-size: 30px;
  }
  .why-pcr-grid {
    grid-template-columns: 1fr;
  }
  .why-pcr-card h3 {
    font-size: 18px;
  }
  .why-pcr-card p {
    font-size: 15px;
  }

  /* TESTIMONIOS */
  .testimonials-title {
    font-size: 30px;
  }
  .testimonial-card {
    padding: 1.5rem;
  }
  .testimonial-card blockquote {
    font-size: 15px;
  }

  /* CERTIFICACIONES */
  .kitpcr-credentials h2 {
    font-size: 30px !important;
  }
  .cert-box {
    padding: 2rem;
  }
  .cert-btn {
    font-size: 0.8rem;
  }
}


/* ========== ESCRITORIOS GRANDES (≥1440px) ========== */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 56px;
  }
  .hero-subtitle {
    font-size: 22px;
  }
  .hero-button {
    font-size: 28px;
  }

  .category-card {
    font-size: 22px;
  }

  .why-pcr-card h3 {
    font-size: 24px;
  }

  .testimonial-card {
    max-width: 700px;
    padding: 2.5rem;
  }

  .cert-box h3,
  .cert-box h3 span {
    font-size: 44px;
  }

  .cert-box p {
    font-size: 24px;
  }

  .cert-btn {
    font-size: 1.1rem;
    padding: 0.7rem 1.8rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 2rem;
    right: 2rem;
  }
}
/* #endregion */

body .categories-grid a.category-card,
body .categories-grid a.category-card *,
body .categories-grid a.category-card :after,
body .categories-grid a.category-card :before {
  text-decoration: none !important;
}
@media (min-width: 1600px) {
  body {
    font-size: 18px;
  }

  .hero-title {
    font-size: 60px;
    line-height: 70px;
  }

  .hero-subtitle {
    font-size: 24px;
    line-height: 32px;
  }

  .hero-button {
    font-size: 30px;
    padding: 1.2rem 3.5rem;
    margin-top: 15rem;
  }

  .category-card {
    font-size: 24px;
  }

  .why-pcr-card h3 {
    font-size: 26px;
  }

  .why-pcr-card p {
    font-size: 18px;
  }

  .testimonial-card blockquote {
    font-size: 18px;
  }

  .cert-box h3,
  .cert-box h3 span {
    font-size: 48px;
  }

  .cert-box p {
    font-size: 26px;
  }

  .cert-btn {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
  }
}
