/* Kabuku — Hero v2 (estructura referencia hero.png) */

body.kabuku-hero-v2-page .wpr-banner-area.kabuku-hero {
  display: none;
}

body.kabuku-hero-v2-page {
  background: #fff;
}

.kabuku-hero-v2 {
  position: relative;
  margin: 0;
  padding: 0;
  background: #fff;
}

.kabuku-hero-v2__top {
  position: relative;
  padding: 56px 0 48px;
  background-color: var(--kabuku-surface-bg, #f0efec);
  background-image:
    linear-gradient(rgba(13, 13, 13, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 13, 0.04) 1px, transparent 1px);
  background-size: var(--kabuku-grid-size, 48px 48px);
}

.kabuku-hero-v2__eyebrow {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--kabuku-gray);
}

.kabuku-hero-v2__main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 40px 40px;
  align-items: start;
}

.kabuku-hero-v2__headline-wrap {
  position: relative;
  min-width: 0;
  padding-bottom: 28px; /* aire para badge flotante */
}

.kabuku-hero-v2__title {
  position: relative;
  display: block;
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--kabuku-black);
  text-transform: none;
}

.kabuku-hero-v2__title-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.kabuku-hero-v2__title-word {
  display: block;
  line-height: 0.92;
}

.kabuku-hero-v2__badge {
  position: absolute;
  left: clamp(400px, 18vw, 540px);
  bottom: clamp(-31px, calc(1vw - 35px), -23px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--kabuku-red);
  color: #fff;
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-3deg);
  transform-origin: center center;
  box-shadow: 0 8px 24px rgba(232, 49, 42, 0.22);
  z-index: 2;
}

.kabuku-hero-v2__aside {
  padding-top: 6px; /* alinear con H1 */
  max-width: 340px;
  justify-self: end;
}

.kabuku-hero-v2__desc {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(13, 13, 13, 0.58);
}

.kabuku-hero-v2__btn-services {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid var(--kabuku-red, #E8312A);
  border-radius: 9999px;
  background: var(--kabuku-black, #0D0D0D);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  /* Pulse elegante y constante (llama la atención sin gritar) */
  animation: kabukuBtnPulse 2.4s ease-in-out infinite;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease,
    letter-spacing 0.28s ease;
}

.kabuku-hero-v2__btn-services > * {
  position: relative;
  z-index: 1;
}

.kabuku-hero-v2__btn-services i {
  color: var(--kabuku-red, #E8312A);
  font-size: 1em;
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.kabuku-hero-v2__btn-services:hover {
  color: #fff;
  background: #141414;
  border-color: var(--kabuku-red, #E8312A);
  animation: none;
  transform: translateY(-3px) scale(1.02);
  letter-spacing: 0.035em;
  box-shadow:
    0 14px 36px rgba(13, 13, 13, 0.2),
    0 0 0 1px rgba(232, 49, 42, 0.35),
    0 0 28px rgba(232, 49, 42, 0.22);
}

.kabuku-hero-v2__btn-services:hover i {
  color: var(--kabuku-red, #E8312A);
  transform: translateX(6px);
}

.kabuku-hero-v2__btn-services:active {
  transform: translateY(-1px) scale(0.98);
  animation: none;
}

/* Escala suave + respiro del borde/halo rojo */
@keyframes kabukuBtnPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(232, 49, 42, 0),
      0 6px 18px rgba(13, 13, 13, 0.1);
  }
  50% {
    transform: scale(1.035);
    box-shadow:
      0 0 0 6px rgba(232, 49, 42, 0.1),
      0 0 22px rgba(232, 49, 42, 0.22),
      0 10px 28px rgba(13, 13, 13, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kabuku-hero-v2__btn-services {
    animation: none !important;
  }

  .kabuku-hero-v2__btn-services:hover {
    transform: none;
  }

  .kabuku-hero-v2__btn-services:hover i {
    transform: none;
  }
}

.kabuku-hero-v2__proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 52px;
  width: 100%;
}

.kabuku-hero-v2__proof-protocolo {
  display: flex;
  align-items: center;
  gap: 18px 22px;
  min-width: 0;
}

.kabuku-hero-v2__proof .kabuku-hero-v2__proof-circle {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  z-index: 1;
}

.kabuku-hero-v2__protocolo-copy {
  min-width: 0;
}

.kabuku-hero-v2__protocolo-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kabuku-red);
  line-height: 1.2;
}

.kabuku-hero-v2__protocolo-desc {
  margin: 0;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--kabuku-black);
}

.kabuku-hero-v2__proof-trust {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-left: auto;
}

.kabuku-hero-v2__trust-text {
  margin: 0;
  max-width: 280px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(13, 13, 13, 0.55);
  text-align: right;
}

/* Provisional: ocultar iconos/círculos de marcas */
.kabuku-hero-v2__trust-logos {
  display: none !important;
}

.kabuku-hero-v2__trust-logo {
  display: block;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 58%;
}

.kabuku-hero-v2__trust-logo:first-child {
  margin-left: 0;
}

.kabuku-hero-v2__trust-logo--1 {
  background-color: #2f6bff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 18h3.5l1.2-3h6.6l1.2 3H20L14 6h-4L4 18zm6.1-5 2.4-6.2L15 13h-4.9z'/%3E%3C/svg%3E");
}

.kabuku-hero-v2__trust-logo--2 {
  background-color: #7b3fe4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 4c-3.3 0-6 2.2-6 5.5 0 2.1 1.2 3.9 3 4.8V20h6v-5.7c1.8-.9 3-2.7 3-4.8C18 6.2 15.3 4 12 4z'/%3E%3C/svg%3E");
}

.kabuku-hero-v2__trust-logo--3 {
  background-color: #1fbf75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 7h10v2H7V7zm0 4h10v2H7v-2zm0 4h7v2H7v-2z'/%3E%3C/svg%3E");
}

.kabuku-hero-v2__explore--protocolo {
  position: relative;
  right: auto;
  bottom: auto;
}

.kabuku-hero-v2__proof-circle .kabuku-hero-v2__explore-arrow {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.kabuku-hero-v2__media {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.kabuku-hero-v2__media > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  min-height: 0;
  max-height: min(52vh, 620px);
  object-fit: cover;
  object-position: center 35%;
  vertical-align: bottom;
}

body.kabuku-hero-v2-page .kabuku-brand-band {
  margin: 0;
  background: #fff;
}

.kabuku-hero-v2__explore {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--kabuku-black);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s ease, background 0.35s ease;
}

.kabuku-hero-v2__explore:hover {
  transform: scale(1.05);
  background: #1a1a1a;
  color: #fff;
}

.kabuku-hero-v2__explore-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #fff;
  font-family: var(--font-primary);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: kabuku-hero-v2-spin 16s linear infinite;
}

@keyframes kabuku-hero-v2-spin {
  to {
    transform: rotate(360deg);
  }
}

.kabuku-hero-v2__explore-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kabuku-red);
  font-size: 18px;
}

@media (max-width: 1199px) {
  .kabuku-hero-v2__main {
    grid-template-columns: 1fr;
  }

  .kabuku-hero-v2__aside {
    max-width: 520px;
    justify-self: start;
    padding-top: 0;
  }
}

@media (max-width: 991px) {
  .kabuku-hero-v2__badge {
    position: relative;
    left: auto;
    bottom: auto;
    display: inline-flex;
    margin-top: 16px;
    max-width: 100%;
    font-size: 13px;
    padding: 9px 14px;
    white-space: normal;
    transform: rotate(-2deg);
  }
}

@media (max-width: 767px) {
  .kabuku-hero-v2__top {
    padding: 28px 0 24px;
  }

  .kabuku-hero-v2__top .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .kabuku-hero-v2__eyebrow {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .kabuku-hero-v2__title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .kabuku-hero-v2__headline-wrap {
    padding-bottom: 8px;
  }

  .kabuku-hero-v2__title-lines {
    gap: 4px;
  }

  .kabuku-hero-v2__aside {
    max-width: none;
    width: 100%;
    padding-top: 0;
    margin-top: 8px;
  }

  .kabuku-hero-v2__desc {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .kabuku-hero-v2__btn-services {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .kabuku-hero-v2__proof {
    margin-top: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .kabuku-hero-v2__proof-trust {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .kabuku-hero-v2__trust-text {
    max-width: none;
    flex: 1 1 auto;
    text-align: left;
    font-size: 13px;
  }

  .kabuku-hero-v2__proof .kabuku-hero-v2__proof-circle {
    width: 80px;
    height: 80px;
  }

  .kabuku-hero-v2__proof-circle .kabuku-hero-v2__explore-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .kabuku-hero-v2__protocolo-label {
    font-size: 12px;
  }

  .kabuku-hero-v2__protocolo-desc {
    font-size: 14px;
  }

  .kabuku-hero-v2__media > img {
    max-height: min(44vh, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kabuku-hero-v2__explore-ring {
    animation: none;
  }
}