/* ============================================================
   CRL PARTS · FOOTER · CONSOLIDADO v2
   ------------------------------------------------------------
   Reemplaza por completo la version anterior.
   Sin caracteres "menor que" -> apto para FluentSnippets.
   ------------------------------------------------------------
   INDICE
   1. Base del footer
   2. Logo y descripcion
   3. Redes sociales
   4. Titulos de columna
   5. Enlaces de columna
   6. Contacto (shortcode crl_contacto)
   7. Barra inferior
   8. RESPONSIVE MOVIL · layout
   9. RESPONSIVE MOVIL · acordeon
   ============================================================ */


/* ============================================================
   1. BASE DEL FOOTER
   ============================================================ */

html body .crl-footer{
  color: #FFFFFF !important;
}


/* ============================================================
   2. LOGO Y DESCRIPCION
   ============================================================ */

html body .crl-footer-desc,
html body .crl-footer-desc p{
  color: #94A3B8 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin-top: 18px !important;
  margin-bottom: 20px !important;
  max-width: 320px !important;
}


/* ============================================================
   3. REDES SOCIALES
   Neutraliza el box border blanco del widget Social Links
   ============================================================ */

html body .crl-footer-social,
html body .crl-footer-social .fusion-social-networks-wrapper,
html body .crl-footer-social .fusion-social-networks,
html body .crl-footer-social .fusion-social-network-icon,
html body .crl-footer-social a{
  border: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  --awb-box-border-color: transparent !important;
  --awb-box-border-color-hover: transparent !important;
  --awb-box-colors: transparent !important;
  --awb-box-colors-hover: transparent !important;
  --awb-box-border-radius-top-left: 0 !important;
  --awb-box-border-radius-top-right: 0 !important;
  --awb-box-border-radius-bottom-right: 0 !important;
  --awb-box-border-radius-bottom-left: 0 !important;
}

html body .crl-footer-social a{
  color: #FFFFFF !important;
  margin-right: 14px !important;
  transition: color 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
}

html body .crl-footer-social a:hover{
  color: #2688E4 !important;
}

html body .crl-footer-social a i,
html body .crl-footer-social a svg{
  color: inherit !important;
  fill: currentColor !important;
  font-size: 18px !important;
}


/* ============================================================
   4. TITULOS DE COLUMNA
   CATALOGO · PUNTOS DE VENTA · CONTACTO
   ============================================================ */

html body .crl-footer-title,
html body .crl-footer-title p{
  color: #2688E4 !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.3 !important;
}


/* ============================================================
   5. ENLACES DE COLUMNA
   ============================================================ */

html body .crl-footer-links,
html body .crl-footer-links p{
  color: #94A3B8 !important;
  font-size: 14px !important;
  line-height: 2.2 !important;
  margin: 0 !important;
}

html body .crl-footer-links p{
  margin: 0 0 8px 0 !important;
}

html body .crl-footer-links a{
  color: #94A3B8 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  display: block !important;
}

html body .crl-footer-links a:hover{
  color: #FFFFFF !important;
}

/* Text Blocks del footer: espaciado entre enlaces */
html body .fusion-footer .fusion-text a{
  display: block !important;
  margin: 0 0 14px 0 !important;
  line-height: 1.4 !important;
}

html body .fusion-footer .fusion-text a:last-child{
  margin-bottom: 0 !important;
}

html body .fusion-footer .fusion-text p{
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

html body .fusion-footer .fusion-text p:last-child{
  margin-bottom: 0 !important;
}


/* ============================================================
   6. CONTACTO
   Renderizado por el shortcode [crl_contacto]
   Los iconos vienen como SVG dentro de .crl-fc-ico
   ============================================================ */

html body .crl-footer-contact,
html body ul.crl-footer-contact{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body ul.crl-footer-contact li{
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: #94A3B8 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

html body ul.crl-footer-contact li:last-child{
  margin-bottom: 0 !important;
}

html body ul.crl-footer-contact li::marker{
  content: '' !important;
}

html body ul.crl-footer-contact li br{
  display: block !important;
}

html body ul.crl-footer-contact .crl-fc-ico{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 1px !important;
  color: #2688E4 !important;
}

html body ul.crl-footer-contact .crl-fc-ico svg{
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  fill: none !important;
}

html body ul.crl-footer-contact li a,
html body ul.crl-footer-contact li span:not(.crl-fc-ico){
  color: #94A3B8 !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  flex: 1 !important;
}

html body ul.crl-footer-contact li a:hover{
  color: #FFFFFF !important;
}


/* ============================================================
   7. BARRA INFERIOR
   Copyright + enlaces legales + divisor
   ============================================================ */

html body .crl-footer-bar{
  position: relative !important;
  padding-top: 10px !important;
  padding-bottom: 14px !important;
  margin-top: 1px !important;
}

/* Divisor como pseudo-elemento: ninguna cache lo elimina */
html body .crl-footer-bar::before{
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 250px !important;
  right: 250px !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  display: block !important;
}

html body .crl-footer-copyright,
html body .crl-footer-copyright p{
  color: #6B7280 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

html body .crl-footer-legal,
html body .crl-footer-legal p{
  color: #6B7280 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

html body .crl-footer-legal a{
  color: #6B7280 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

html body .crl-footer-legal a:hover{
  color: #FFFFFF !important;
  text-decoration: underline !important;
}

html body .crl-footer-legal a + a::before{
  content: ' · ' !important;
  color: #6B7280 !important;
  margin: 0 6px !important;
}


/* ============================================================
   8. RESPONSIVE MOVIL · LAYOUT
   Breakpoint small de Avada: 800px
   ============================================================ */

@media only screen and (max-width: 800px){

  /* ---- 8.1 Containers ---- */
  html body .crl-footer,
  html body .crl-footer-bar{
    --awb-flex-wrap: wrap !important;
    --awb-padding-left-small: 0px !important;
    --awb-padding-right-small: 0px !important;
    overflow: hidden !important;
  }

  html body .crl-footer{
    padding-top: 38px !important;
    padding-bottom: 26px !important;
  }

  /* Espacio para el boton flotante de WhatsApp */
  html body .crl-footer-bar{
    padding-top: 20px !important;
    padding-bottom: 90px !important;
  }

  /* Divisor: los 250px fijos lo hacen desaparecer en movil */
  html body .crl-footer-bar::before{
    left: 20px !important;
    right: 20px !important;
  }

  /* ---- 8.2 Filas apiladas ---- */
  html body .crl-footer .fusion-row,
  html body .crl-footer .fusion-builder-row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 20px !important;
    padding: 0 !important;
  }

  html body .crl-footer-bar .fusion-row,
  html body .crl-footer-bar .fusion-builder-row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 20px !important;
    padding: 0 !important;
  }

  html body .crl-footer .fusion-clearfix,
  html body .crl-footer-bar .fusion-clearfix{
    display: none !important;
  }

  /* ---- 8.3 Reset de columnas: causa del encimado ---- */
  html body .crl-footer .fusion-layout-column,
  html body .crl-footer .fusion-builder-column,
  html body .crl-footer-bar .fusion-layout-column,
  html body .crl-footer-bar .fusion-builder-column{
    --awb-width-small: 100% !important;
    --awb-spacing-right-small: 0px !important;
    --awb-spacing-left-small: 0px !important;
    --awb-margin-bottom-small: 0px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body .crl-footer .fusion-column-wrapper,
  html body .crl-footer-bar .fusion-column-wrapper{
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Solo las columnas que NO son acordeon llevan separacion */
  html body .crl-footer .fusion-layout-column:not(.crl-f-acc){
    margin-bottom: 26px !important;
  }

  /* ---- 8.4 Logo y descripcion ---- */
  html body .crl-footer .fusion-image-element img,
  html body .crl-footer .fusion-imageframe img{
    max-width: 150px !important;
    height: auto !important;
  }

  html body .crl-footer-desc,
  html body .crl-footer-desc p{
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /* ---- 8.5 Enlaces con area tactil suficiente ---- */
  html body .crl-footer .fusion-text a,
  html body .crl-footer-links a{
    padding: 7px 0 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* ---- 8.6 Redes sociales ---- */
  html body .crl-footer-social{
    margin-top: 14px !important;
    text-align: left !important;
  }

  html body .crl-footer-social .fusion-social-networks{
    justify-content: flex-start !important;
  }

  /* ---- 8.7 Barra inferior centrada ---- */
  html body .crl-footer-legal,
  html body .crl-footer-legal p,
  html body .crl-footer-legal a{
    text-align: center !important;
  }

  html body .crl-footer-copyright p,
  html body .crl-footer-legal p{
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
}


/* ============================================================
   9. RESPONSIVE MOVIL · ACORDEON
   ------------------------------------------------------------
   Columnas con clase crl-f-acc se colapsan.
   Anadir crl-f-acc-open para que arranque abierta.
   El JS (snippet "CRL - Footer acordeon") envuelve el contenido
   y solo responde al tap por debajo de 800px.
   ------------------------------------------------------------
   CRITICO: todo este bloque DEBE vivir dentro del media query.
   Fuera de el, el acordeon se activa en escritorio y queda
   cerrado sin posibilidad de abrirse.
   ============================================================ */

@media only screen and (max-width: 800px){

  /* ---- 9.1 Cabecera ---- */
  html body .crl-footer .crl-f-acc{
    border-bottom: 1px solid rgba(255,255,255,0.10) !important;
    padding-bottom: 0 !important;
  }

  html body .crl-footer .crl-f-acc-head{
    position: relative !important;
    cursor: pointer !important;
    padding: 15px 34px 15px 0 !important;
    margin: 0 !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body .crl-footer .crl-f-acc-head p,
  html body .crl-footer .crl-f-acc-head h3,
  html body .crl-footer .crl-f-acc-head h4{
    margin: 0 !important;
  }

  /* ---- 9.2 Chevron ---- */
  html body .crl-footer .crl-f-acc-head::after{
    content: '' !important;
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #2688E4 !important;
    border-bottom: 2px solid #2688E4 !important;
    transform: translateY(-70%) rotate(45deg) !important;
    transition: transform 0.28s ease !important;
    pointer-events: none !important;
  }

  html body .crl-footer .crl-f-acc.is-open .crl-f-acc-head::after{
    transform: translateY(-20%) rotate(-135deg) !important;
  }

  /* ---- 9.3 Cuerpo con animacion a altura automatica ---- */
  html body .crl-footer .crl-f-acc-body{
    display: grid !important;
    grid-template-rows: 0fr !important;
    transition: grid-template-rows 0.3s ease !important;
  }

  html body .crl-footer .crl-f-acc.is-open .crl-f-acc-body{
    grid-template-rows: 1fr !important;
  }

  /* min-height 0 es obligatorio para que el truco 0fr funcione */
  html body .crl-footer .crl-f-acc-inner{
    overflow: hidden !important;
    min-height: 0 !important;
  }

  html body .crl-footer .crl-f-acc.is-open .crl-f-acc-inner{
    padding-bottom: 14px !important;
  }
}