/*
 * Retoques del hero de la portada: los distintivos de certificación se fijan sobre la
 * imagen en vez de caer debajo de ella.
 */


.hero-visual{
  position:relative !important;
}
.hero-certifications{
  position:absolute !important;
  right:22px !important;
  bottom:16px !important;
  z-index:6 !important;
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  pointer-events:none !important;
}
.certification-badge{
  width:78px !important;
  height:78px !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.96) !important;
  border:2px solid #222 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:0 2px 8px rgba(0,0,0,.18) !important;
  box-sizing:border-box !important;
}
.certification-inner{
  width:64px !important;
  height:64px !important;
  border:2px solid #e34a2f !important;
  border-radius:50% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  font-family:Arial,Helvetica,sans-serif !important;
  line-height:1 !important;
  box-sizing:border-box !important;
}
.certification-label{
  font-size:6px !important;
  font-weight:700 !important;
  letter-spacing:.8px !important;
  color:#555 !important;
  margin-bottom:2px !important;
}
.certification-standard{
  font-size:13px !important;
  font-weight:800 !important;
  color:#111 !important;
  letter-spacing:.4px !important;
}
.certification-number{
  font-size:11px !important;
  font-weight:800 !important;
  color:#e34a2f !important;
  margin-top:1px !important;
}
.certification-caption{
  width:52px !important;
  font-size:4.7px !important;
  line-height:1.05 !important;
  font-weight:700 !important;
  color:#555 !important;
  margin-top:3px !important;
}
@media (max-width:900px){
  .hero-certifications{
    right:10px !important;
    bottom:8px !important;
    gap:5px !important;
  }
  .certification-badge{
    width:56px !important;
    height:56px !important;
  }
  .certification-inner{
    width:46px !important;
    height:46px !important;
  }
  .certification-label{font-size:4.5px !important}
  .certification-standard{font-size:9px !important}
  .certification-number{font-size:8px !important}
  .certification-caption{width:38px !important;font-size:3.4px !important}
}


/*
 * Hero en teléfono. El titular, el párrafo y los botones están pintados dentro de la foto, y
 * a 402px la foto mide 138px de alto: el texto queda a unos 4px y los botones a 14, por eso
 * el diseño esconde sus zonas pulsables ahí. Debajo de 680px el hero pasa a ser una banda
 * alta con la foto encuadrada por la derecha —donde no hay texto pintado— y el mensaje
 * encima como texto de verdad.
 */
.hero-mobile {
    display: none;
}

@media (max-width: 680px) {
    .hero-visual {
        position: relative !important;
        display: flex;
        align-items: flex-end;
        min-height: 520px;
        overflow: hidden;
    }

    .hero-visual img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: 86% center;
        transform: none;
    }

    /* Velo para que el texto blanco se lea sobre la planta. */
    .hero-visual::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10, 18, 26, .55) 0%, rgba(10, 18, 26, .82) 52%, rgba(10, 18, 26, .93) 100%);
        z-index: 1;
    }

    .hero-mobile {
        position: relative;
        z-index: 2;
        display: block;
        width: 100%;
        /* El relleno superior deja pasar los sellos, que van fijos arriba a la derecha. */
        padding: 88px 16px 30px;
    }

    .hero-mobile-eyebrow {
        display: block;
        margin-bottom: 14px;
        color: #d6dde2;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.4px;
        line-height: 1.5;
        text-transform: uppercase;
    }

    .hero-mobile-title {
        margin: 0 0 14px;
        color: #fff;
        font-size: 30px;
        font-weight: 900;
        line-height: 1.12;
        letter-spacing: -.3px;
        text-transform: uppercase;
    }

    .hero-mobile-title em {
        display: block;
        color: #ff512b;
        font-style: normal;
    }

    .hero-mobile-lead {
        margin: 0 0 20px;
        color: #cfd7dd;
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-mobile-actions .btn {
        width: 100%;
        min-height: 48px;
        text-align: center;
    }

    .hero-mobile-actions .btn.ghost {
        border: 1px solid rgba(255, 255, 255, .55);
        color: #fff;
    }

    /* Los sellos se encogen y suben, o chocan con los botones. */
    .hero-certifications {
        top: 16px !important;
        right: 16px !important;
        bottom: auto !important;
        z-index: 2 !important;
        gap: 6px !important;
    }

    .certification-badge {
        width: 52px !important;
        height: 52px !important;
    }

    .certification-inner {
        width: 42px !important;
        height: 42px !important;
    }
}

/*
 * Los dos botones del hero están pintados dentro de la foto; encima hay dos zonas
 * transparentes que reciben el clic. Estaban 33 px por encima del botón que se ve, así que
 * sólo respondía su mitad superior. Medido sobre la foto a 1440: el botón ocupa del 78.59 %
 * al 88.48 % del alto, no del 72 % al 83 %. No se toca el horizontal, que sí cuadraba, ni la
 * regla que las oculta por debajo de 680 px.
 */
.hero-hotspot.capabilities,
.hero-hotspot.challenge {
    top: 78.5%;
    height: 10%;
}
