/* ==========================================================================
   ANAVRIN UPC STYLE v2 — diseño limpio inspirado en upc.edu.pe
   ========================================================================== */

:root{
  --upc-red: #E10600;
  --upc-red-dark: #A80000;
  --upc-gray-bg: #F7F7F8;
  --upc-text: #222222;
  --upc-text-light: #777777;
  --upc-border: #ECECEC;
  --upc-font-heading: 'Poppins', sans-serif;
  --upc-font-body: 'Inter', sans-serif;
}

.upc-page *{ box-sizing: border-box; }
.upc-page{ font-family: var(--upc-font-body); color: var(--upc-text); }
.upc-page h1, .upc-page h2, .upc-page h3{
  font-family: var(--upc-font-heading);
  font-weight: 700;
  margin: 0;
  color: var(--upc-text);
}

/* Ajustes ligeros y NO invasivos al resto del sitio (solo detalles puntuales,
   para no pelear con tu theme y evitar que se vea "cargado") */
.custom-logo, .site-logo img, header img.logo{ max-height: 60px; width: auto; }
a{ transition: color .2s ease; }

/* Corrección del listón/franja superior que aparece en azul:
   se recolorea a blanco+texto oscuro o al rojo institucional según el caso.
   Si tras instalar sigue en azul, dime el texto exacto que muestra esa franja
   para apuntar al selector preciso. */
.woocommerce-store-notice,
.storefront-store-notice,
.top-bar, .topbar, .announcement-bar, .announcement, .site-notice,
.header-top-bar, .header-top, .elementor-element[class*="top-bar"]{
  background-color: var(--upc-red) !important;
  border-color: var(--upc-red) !important;
  color: #fff !important;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.upc-hero{
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #fff;
}
.upc-hero__bg{
  position: absolute;
  inset: 0;
  color: rgba(225,6,0,0.08);
  pointer-events: none;
}
.upc-hero__bg svg{ width: 100%; height: 100%; }

.upc-hero__slides{ position: relative; height: 100%; }
.upc-hero__slide{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.upc-hero__slide.is-active{ opacity: 1; visibility: visible; }

.upc-hero__content{
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: 8%;
}
.upc-hero__tag{
  display: inline-block;
  color: var(--upc-red);
  font-family: var(--upc-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.upc-hero__content h1{
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.upc-hero__content p{
  font-size: 15px;
  color: var(--upc-text-light);
  margin: 0 0 22px 0;
}
.upc-btn{
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--upc-red);
  color: #fff !important;
  font-family: var(--upc-font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background .2s ease;
}
.upc-btn:hover{ background: var(--upc-red-dark); }

.upc-hero__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--upc-border);
  color: var(--upc-red);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upc-hero__nav--prev{ left: 16px; }
.upc-hero__nav--next{ right: 16px; }

.upc-hero__dots{
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}
.upc-hero__dots span{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--upc-border);
  cursor: pointer;
}
.upc-hero__dots span.is-active{ background: var(--upc-red); }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.upc-section{ padding: 56px 6%; background: #fff; }
.upc-section--gray{ background: var(--upc-gray-bg); }
.upc-inner{ max-width: 1180px; margin: 0 auto; }
.upc-section__title{
  font-size: 24px;
  text-align: center;
  margin-bottom: 32px;
}

/* Tarjetas de categorías */
.upc-cards{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.upc-card{
  background: #fff;
  border: 1px solid var(--upc-border);
  border-radius: 6px;
  padding: 28px 22px;
  text-decoration: none !important;
  display: block;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.upc-card:hover{
  border-color: var(--upc-red);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.upc-card__icon{ width: 40px; height: 40px; color: var(--upc-red); margin-bottom: 14px; }
.upc-card__icon svg{ width: 100%; height: 100%; }
.upc-card h3{ font-size: 16px; margin-bottom: 6px; }
.upc-card p{ font-size: 13px; color: var(--upc-text-light); line-height: 1.5; margin: 0 0 14px 0; }
.upc-card__link{
  font-family: var(--upc-font-heading);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--upc-red);
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Cifras */
.upc-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.upc-stat{ padding: 0 10px; border-left: 1px solid var(--upc-border); }
.upc-stat:first-child{ border-left: none; }
.upc-stat__num{
  display: block;
  font-family: var(--upc-font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--upc-red);
  margin-bottom: 6px;
}
.upc-stat p{ font-size: 13px; color: var(--upc-text-light); margin: 0; }

/* Accesos directos */
.upc-links{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.upc-links a{
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--upc-border);
  border-top: 3px solid var(--upc-red);
  border-radius: 4px;
  font-family: var(--upc-font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--upc-text) !important;
  text-decoration: none !important;
}
.upc-links a:hover{ color: var(--upc-red) !important; }

/* ==========================================================================
   BOTONES FLOTANTES
   ========================================================================== */
.upc-float{
  position: fixed;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.upc-float--whatsapp{ bottom: 84px; background: #25D366; }
.upc-float--top{ bottom: 22px; background: var(--upc-red); color: #fff; font-size: 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .upc-cards{ grid-template-columns: repeat(2, 1fr); }
  .upc-stats{ grid-template-columns: repeat(2, 1fr); }
  .upc-stat:nth-child(3){ border-left: none; }
  .upc-hero{ height: 360px; }
}
@media (max-width: 560px){
  .upc-cards{ grid-template-columns: 1fr; }
  .upc-hero__content{ margin-left: 6%; max-width: 88%; }
  .upc-hero__content h1{ font-size: 24px; }
  .upc-stat{ border-left: none !important; }
}
