/* Kalop Ficha Conductor v2 — copia fiel al layout Elementor original */

.page-template-elementor_header_footer .site-content .content-area,
.elementor-template-full-width .site-content .content-area {
  width: 100%;
  max-width: 100%;
}
.page-template-elementor_header_footer #right-sidebar,
.elementor-template-full-width #right-sidebar {
  display: none;
}

.kalop-ficha {
  --kfc-text: #4a4a4a;
  --kfc-title: #545454;
  --kfc-btn: #909090;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  color: var(--kfc-text);
  line-height: 1.45;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.kalop-ficha *,
.kalop-ficha *::before,
.kalop-ficha *::after { box-sizing: border-box; }

.kalop-ficha img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.kalop-ficha__picture,
.kalop-ficha__picture img {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* —— HERO ——
   Imagen full-bleed. Títulos #545454 posicionados ABSOLUTOS sobre la imagen
   (en Elementor usan margin negativo; acá absolute para no colapsar el flujo
   de botonera/intro/banner). */
.kalop-ficha__hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.kalop-ficha__hero-media {
  width: 100%;
  line-height: 0;
}

.kalop-ficha__hero-texts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  max-width: none;
  margin: 0;
  padding: 0;
}

.kalop-ficha__hero-titulo {
  position: absolute;
  top: 140px;
  left: 140px;
  margin: 0;
  color: #545454;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
}

.kalop-ficha__hero--stub {
  max-width: 900px;
  margin: 48px auto 80px;
  padding: 0 20px;
}
.kalop-ficha__hero--stub .kalop-ficha__hero-texts {
  position: static;
  inset: auto;
}
.kalop-ficha__hero--stub .kalop-ficha__hero-titulo,
.kalop-ficha__hero--stub .kalop-ficha__hero-marca {
  position: static;
  top: auto;
  left: auto;
  display: block;
  text-align: center;
}
.kalop-ficha__hero--stub .kalop-ficha__hero-media {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.kalop-ficha__hero--stub .kalop-ficha__hero-stub-img {
  max-width: 420px;
  max-height: 360px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.kalop-ficha__hero-marca {
  position: absolute;
  top: 180px;
  left: 144px;
  margin: 0;
  color: #545454;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
}

/* —— BOTONERA desktop (derecha, anchos fijos como Elementor) ——
   Contenedor interno max 1100px (e926906), botones al flex-end. */
.kalop-ficha__botonera {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  max-width: 1100px;
  width: 100%;
  margin: 21px auto 8px;
  padding: 10px 0;
  min-height: 30px;
  box-sizing: border-box;
}

.kalop-ficha__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 165px;
  max-width: 165px;
  background: #909090;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.kalop-ficha__btn:nth-child(2) {
  width: 155px;
  max-width: 155px;
}

.kalop-ficha__btn--pub {
  width: 200px;
  max-width: 200px;
}

.kalop-ficha__btn:hover {
  background: #6e6e6e;
}

.kalop-ficha__botonera-mob {
  display: none;
  max-width: 190px;
  margin: 16px auto;
  padding: 0;
}

.kalop-ficha__botonera-mob details {
  background: #909090;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.kalop-ficha__botonera-mob summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-align: center;
}

.kalop-ficha__botonera-mob summary::-webkit-details-marker { display: none; }

.kalop-ficha__botonera-mob-links {
  display: flex;
  flex-direction: column;
  background: #7a7a7a;
  border-radius: 0 0 10px 10px;
}

.kalop-ficha__botonera-mob-links a {
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 14px;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.15);
}

/* —— INTRO / NORMAS (Elementor: 19px / #636260 / padding-bottom 40) —— */
.kalop-ficha__intro,
.kalop-ficha__texto-sec,
.kalop-ficha__normas {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 200px 40px; /* título medido a x=200 w=1040 @1440 */
  text-align: center;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: #636260;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.kalop-ficha__normas {
  font-size: 18px;
  padding: 0 200px 20px;
}

/* —— BANNER ——
   Título absolute abajo-derecha, color #545454 (sobre zona clara del banner). */
.kalop-ficha__banner {
  position: relative;
  width: 100%;
  margin: 0;
  line-height: 0;
}

.kalop-ficha__banner-titulo {
  position: absolute;
  right: 0;
  bottom: 35%;
  z-index: 2;
  margin: 0;
  width: 60%;
  max-width: 60%;
  padding: 0;
  color: #545454;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1.1em;
  text-align: center;
  text-transform: uppercase;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  pointer-events: none;
}

/* —— CARACTERÍSTICAS: padding doble 100+100 → content 1040 @1440; cols 63/37 —— */
.kalop-ficha__caract {
  max-width: 1440px;
  margin: 40px auto 0;
  padding: 0 200px;
  width: 100%;
  box-sizing: border-box;
}

.kalop-ficha__caract-label {
  margin: 10px 0 10px 12px;
  padding: 0;
  text-align: left;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5em;
  color: #636260;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
}

.kalop-ficha__caract-grid {
  display: grid;
  grid-template-columns: 63% 37%;
  gap: 0;
  align-items: start;
}

.kalop-ficha__caract-media img {
  width: 100%;
  height: auto;
}

.kalop-ficha__caract-img-desk img {
  /* 80% de columna 63% de 1040 ≈ 524px */
  max-width: 80%;
  width: 100%;
}

.kalop-ficha__caract-img-mob { display: none; }
.kalop-ficha__caract-img-desk { display: block; }

/* Galería: custom CSS Elementor fuerza 400px en ≤1440; ancho ~columna 37% */
.kalop-ficha__galeria {
  position: relative;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
}

.kalop-ficha__galeria-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 400px;
  max-height: 400px;
  width: 100%;
}

.kalop-ficha__galeria-track::-webkit-scrollbar { display: none; }

.kalop-ficha__galeria-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}

.kalop-ficha__galeria-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kalop-ficha__galeria-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.kalop-ficha__galeria-dots button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 0;
  /* Elementor: inactive blanco, active #CBCBCB */
  background: #fff;
  box-shadow: inset 0 0 0 1px #cbcbcb;
  padding: 0;
  cursor: pointer;
}

.kalop-ficha__galeria-dots button.is-active {
  background: #cbcbcb;
  box-shadow: none;
}

/* —— NOMINAL / ICONOS: full bleed + margin-top 40 como Elementor —— */
.kalop-ficha__nominal,
.kalop-ficha__iconos {
  width: 100%;
  margin: 40px 0 0;
  line-height: 0;
}

/* —— CERTIFICACIONES (Elementor icon ~64px) —— */
.kalop-ficha__certs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
  max-width: 500px;
  margin: 0 auto;
}

.kalop-ficha__certs img {
  width: 64px;
  height: auto;
}

/* widescreen ≥1920 / default desktop tweaks */
@media (min-width: 1441px) {
  .kalop-ficha__hero-titulo {
    top: 110px;
    left: 115px;
    font-size: 28px;
  }
  .kalop-ficha__hero-marca {
    top: 155px;
    left: 117px;
    font-size: 20px;
  }
  .kalop-ficha__botonera {
    padding: 10px 0;
    max-width: 1100px;
  }
  .kalop-ficha__banner-titulo {
    width: 70%;
    max-width: 70%;
    bottom: 35%;
  }
  .kalop-ficha__galeria-track { height: 100px; }
}

/* laptop ≤1440 — márgenes negativos Elementor convertidos a top/left */
@media (max-width: 1440px) {
  .kalop-ficha__hero-titulo {
    /* margin:-200px 0 0 80px sobre hero 300px → top≈100 */
    top: 100px;
    left: 80px;
  }
  .kalop-ficha__hero-marca {
    /* margin:-162px 0 0 82px → top≈138 */
    top: 138px;
    left: 82px;
  }
  .kalop-ficha__botonera {
    padding: 10px 0;
    max-width: 1100px;
  }
  .kalop-ficha__banner-titulo {
    width: 60%;
    max-width: 60%;
    font-size: 30px;
  }
  .kalop-ficha__caract-label {
    font-size: 25px;
    margin: 10px 0 10px 12px;
  }
  .kalop-ficha__galeria-track {
    height: 400px;
    max-height: 400px;
  }
}

/* tablet_extra ≤1200 */
@media (max-width: 1200px) {
  .kalop-ficha__hero-titulo {
    top: 130px;
    left: 50px;
    font-size: 25px;
  }
  .kalop-ficha__hero-marca {
    top: 165px;
    left: 50px;
  }
  .kalop-ficha__botonera {
    padding: 0 16px;
    justify-content: center;
  }
  .kalop-ficha__intro,
  .kalop-ficha__texto-sec,
  .kalop-ficha__normas {
    padding: 0 24px;
  }
  .kalop-ficha__banner-titulo {
    width: 50%;
    max-width: 50%;
    font-size: 25px;
    right: 40px;
  }
  .kalop-ficha__caract-label { font-size: 23px; }
  .kalop-ficha__galeria-track { height: 300px; max-height: 300px; }
}

/* tablet ≤1024 */
@media (max-width: 1024px) {
  .kalop-ficha__hero-titulo {
    top: 160px;
    left: 100px;
    font-size: 20px;
  }
  .kalop-ficha__hero-marca {
    top: 190px;
    left: 100px;
    font-size: 16px;
  }
  .kalop-ficha__banner-titulo { font-size: 20px; }
  .kalop-ficha__galeria-track { height: 130px; max-height: 130px; }
}

/* mobile_extra ≤880: botonera mobile, stack caract */
@media (max-width: 880px) {
  .kalop-ficha__botonera { display: none; }
  .kalop-ficha__botonera-mob { display: block; }

  .kalop-ficha__hero-titulo {
    top: 185px;
    left: 12px;
    font-size: 28px;
    max-width: 76%;
  }
  .kalop-ficha__hero-marca {
    top: 225px;
    left: 12px;
  }

  .kalop-ficha__caract-grid {
    grid-template-columns: 1fr;
  }
  .kalop-ficha__caract-img-desk { display: none; }
  .kalop-ficha__caract-img-mob { display: block; }
  .kalop-ficha__caract-label {
    text-align: center;
    margin: 15px 0;
    font-size: 20px;
    padding: 0;
  }

  .kalop-ficha__banner-titulo {
    width: 50%;
    max-width: 50%;
    font-size: 28px;
    right: 0;
    bottom: 20%;
  }

  .kalop-ficha__intro,
  .kalop-ficha__texto-sec,
  .kalop-ficha__normas {
    padding: 0 16px;
  }
}

/* mobile ≤767 */
@media (max-width: 767px) {
  .kalop-ficha__hero-titulo {
    top: 175px;
    left: 20px;
    font-size: 19px;
    max-width: 100%;
  }
  .kalop-ficha__hero-marca {
    top: 200px;
    left: 20px;
    font-size: 10px;
  }
  .kalop-ficha__botonera-mob { max-width: 130px; }
  .kalop-ficha__banner-titulo {
    font-size: 14px;
    width: 50%;
    right: 0;
    bottom: 10%;
  }
  .kalop-ficha__galeria-track {
    height: 314px;
    max-height: 314px;
  }
  .kalop-ficha__galeria {
    padding: 10px;
  }
}
