/* =====================================================
   EULEN THEME COMPONENT STYLES — Local version
   Reconstructed to replicate the original layout &
   behaviour of eulen.com/pe (used by FAVESA S.A.C.)
   ===================================================== */

/* ----- RESET / BASE --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ----- SEARCH OVERLAY ------------------------------- */
#buscador {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: #002664;
  padding: 18px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
#buscador.activo { display: block; }

#buscador .container { padding: 0 15px; }

#buscador .contenedor_buscador {
  display: flex;
  align-items: center;
  gap: 16px;
}
#buscador .search-form { flex: 1; }
#buscador .search-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 1.125rem;
  padding: 6px 0;
  outline: none;
  transition: border-color .2s;
}
#buscador .search-field::placeholder { color: rgba(255,255,255,.5); }
#buscador .search-field:focus { border-bottom-color: #fff; }

#buscador .derecha {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
#buscador #lupa_buscador path,
#buscador #cerrar_buscador path { fill: #fff; }
#buscador #lupa_buscador,
#buscador #cerrar_buscador { cursor: pointer; opacity: .85; transition: opacity .2s; }
#buscador #lupa_buscador:hover,
#buscador #cerrar_buscador:hover { opacity: 1; }
#buscador .separacion {
  width: 1px; height: 26px;
  background: rgba(255,255,255,.35);
}

/* ----- HEADER --------------------------------------- */
#header {
  position: relative;
  z-index: 500;
  background: #002664;
}

#header .container { padding: 0 15px; }

.header_principal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 6px 0;
}

/* Logo */
.logo_principal {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo_principal img.claro {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hamburger */
#hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 600;
}
#hamburguesa .linea1,
#hamburguesa .linea2,
#hamburguesa .linea3 {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
#hamburguesa.activo .linea1 { transform: rotate(45deg) translate(5.5px, 5.5px); }
#hamburguesa.activo .linea2 { opacity: 0; transform: scaleX(0); }
#hamburguesa.activo .linea3 { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* Right side wrapper */
#derecha {
  display: flex;
  align-items: center;
  gap: 28px;
}
.contenedor_menus {
  display: flex;
  align-items: center;
  gap: 36px;
}
.contenedor_opciones { display: flex; align-items: center; }

/* ----- TOP MENU ------------------------------------- */
.menu_top { display: flex; }
.menu_top .menu {
  display: flex;
  list-style: none;
  gap: 22px;
  margin: 0; padding: 0;
}
.menu_top .menu-item a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.menu_top .menu-item a:hover,
.menu_top .menu-item.current-menu-item a {
  color: #fff;
}

/* ----- MEGA MENU ------------------------------------ */
.mega_menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mega_menu .primer_nivel {
  position: relative;
}
.mega_menu .titulo_primer_nivel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F9FAFB;
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.mega_menu .titulo_primer_nivel svg {
  transition: transform .25s;
  flex-shrink: 0;
}
.mega_menu .primer_nivel:hover .titulo_primer_nivel svg,
.mega_menu .primer_nivel.activo .titulo_primer_nivel svg {
  transform: rotate(180deg);
}

/* Dropdown */
.contenedor_segundo_nivel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,38,100,.2), 0 2px 8px rgba(0,0,0,.1);
  z-index: 600;
  padding: 14px 0;
  animation: fadeDropdown .18s ease;
}
@keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mega_menu .primer_nivel:hover .contenedor_segundo_nivel,
.mega_menu .primer_nivel.activo .contenedor_segundo_nivel {
  display: block;
}
.contenedor_segundo_nivel .descripcion {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #9CA3AF;
  padding: 0 20px 10px;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 6px;
}
.segundo_nivel { display: flex; flex-direction: column; }
.titulo_segundo_nivel {
  display: block;
  padding: 9px 20px;
  color: #1e3a5f;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: background .18s, color .18s;
}
.titulo_segundo_nivel:hover {
  background: #f0f6ff;
  color: #12A0DC;
}

/* Search icon in header */
#abrir_buscador { cursor: pointer; }
#abrir_buscador svg path { stroke: #002664; }
.buscador_y_clientes { display: flex; align-items: center; gap: 12px; }
.buscador { cursor: pointer; display: flex; align-items: center; }

/* ----- PAGE WRAPPER --------------------------------- */
#pagina { display: block; }
.pagina_distributiva { display: block; }

/* ----- HERO / CABECERA SECTION ---------------------- */
.seccion_cabecera {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  margin-bottom: 0;
}

.contenedor_slide {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  background-color: #0B2A5B; /* fallback */
  padding: 64px 0 48px;
}
.contenedor_slide .container { position: relative; z-index: 3; }

/* SVG animation overlay */
#animacion_svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Breadcrumb */
.migas {
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.migas a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.migas a:hover { color: #fff; text-decoration: underline; }

/* Heading */
.titulo_1 { margin-bottom: 20px; }
.titulo_1 h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
}

/* Body text */
.texto_16 {
  font-size: 1rem;
  line-height: 1.75;
}
.texto_16 p { margin: 0 0 1em; }
.texto_16 p:last-child { margin-bottom: 0; }

/* ----- FLEXIBLE CONTENT WRAPPER --------------------- */
.contenido_flexible {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ----- FOTO + TEXTO SECTION ------------------------- */
.seccion_foto_texto {
  padding: 56px 0;
  background: #fff;
}
.fila_contenedor_centrar {
  -ms-flex-align: center;
  align-items: center;
}

.contenedor_columna { position: relative; }
.contenedor_columna .contenedor_texto { padding: 0 8px; }

.contenedor_imagen {
  position: relative;
  overflow: visible;
}
.imagen_comun {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  max-width: 100%;
}

/* Subtitle */
.titulo_sub { margin-bottom: 18px; }
.titulo_sub h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #002664;
}
.titulo_sub u {
  text-decoration-color: #12A0DC;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* ----- ANIMATION SYSTEM ----------------------------- */
.animar {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
/* Stagger children */
.animar:nth-child(1) { transition-delay: .05s; }
.animar:nth-child(2) { transition-delay: .15s; }
.animar:nth-child(3) { transition-delay: .25s; }

.contenedor_animaciones.activo .animar,
.activo .animar {
  opacity: 1;
  transform: translateY(0);
}

/* Rocket lazyload placeholder */
.rocket-lazyload { display: block; }

/* ----- STICKY HEADER -------------------------------- */
#header.fijo,
#header.sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  animation: slideDownHeader .28s ease forwards;
  box-shadow: 0 2px 18px rgba(0,38,100,.22);
}
@keyframes slideDownHeader {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Offset body when sticky */
body.sticky-active #pagina {
  padding-top: 80px;
}

/* ----- FOOTER --------------------------------------- */
#footer {
  background: #002664;
  color: #fff;
}

#footer .primera_parte {
  padding: 52px 0 40px;
}
#footer .segunda_parte {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.logo_footer {
  display: block;
  height: 72px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.titulo_columna {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 14px;
}

#footer .contenedor_menu .menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
#footer .contenedor_menu .menu li a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.9;
  transition: color .2s;
}
#footer .contenedor_menu .menu li a:hover { color: #12A0DC; }

#footer .contenedor_rrss { margin-top: 4px; }
#footer .contenedor_rrss a {
  display: inline-block;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.9;
  transition: color .2s;
}
#footer .contenedor_rrss a:hover { color: #12A0DC; }

#footer .texto_18.texto_consultar {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.85;
  margin-top: 20px;
}
#footer .texto_18.texto_consultar a {
  color: #12A0DC;
  text-decoration: none;
}
#footer .texto_18.texto_consultar a:hover { text-decoration: underline; }

#footer .contenedor_segunda {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ----- UTILITIES ------------------------------------ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {

  /* Show hamburger */
  #hamburguesa { display: flex; }

  /* Collapse right side */
  #derecha {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #002664;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 28px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 499;
  }
  #derecha.activo { display: flex; }

  /* Header must be relative so the dropdown stays under it */
  #header { position: relative; }

  .contenedor_menus {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  /* Top menu */
  .menu_top { width: 100%; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 12px; margin-bottom: 8px; }
  .menu_top .menu { flex-direction: column; gap: 6px; }
  .menu_top .menu-item a { font-size: .9rem; padding: 4px 0; display: block; }

  /* Mega menu */
  .mega_menu { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .mega_menu .primer_nivel { width: 100%; }
  .mega_menu .titulo_primer_nivel {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .875rem;
  }

  .contenedor_segundo_nivel {
    position: static;
    display: none;
    background: rgba(255,255,255,.06);
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 12px 16px;
    animation: none;
  }
  .mega_menu .primer_nivel.activo .contenedor_segundo_nivel { display: block; }
  /* disable hover on mobile */
  .mega_menu .primer_nivel:hover .contenedor_segundo_nivel { display: none; }
  .mega_menu .primer_nivel.activo .contenedor_segundo_nivel { display: block; }

  .contenedor_segundo_nivel .descripcion { color: rgba(255,255,255,.55); border-bottom-color: rgba(255,255,255,.15); }
  .titulo_segundo_nivel { color: rgba(255,255,255,.8); }
  .titulo_segundo_nivel:hover { background: rgba(255,255,255,.08); color: #12A0DC; }

  /* Hero */
  .contenedor_slide { padding: 48px 0 36px; min-height: 320px; }
  .titulo_1 h1 { font-size: 2rem; }

  /* Sections */
  .seccion_foto_texto { padding: 40px 0; }
  .imagen_comun { height: 320px !important; }

  /* Footer */
  #footer .primera_parte { padding: 36px 0 28px; }
  #footer .col-md-4 { margin-bottom: 24px; }
  #footer .col-md-5, #footer .col-7 { margin-bottom: 16px; }
  .logo_footer { height: 56px; }
}

@media (max-width: 575px) {
  .logo_principal img.claro { height: 54px; }
  .header_principal { min-height: 64px !important; }
  .contenedor_slide { min-height: 260px; }
  .titulo_1 h1 { font-size: 1.65rem; }
  .seccion_foto_texto { padding: 28px 0; }
}
