/**
 * Campaña SIN IVA — update 22-9-26
 * Etapa: sección "Nueva Ley del IVA" + cards beneficios + cierre
 */

.leyIva {
  --ley-rojo: #e52528;
  --ley-negro: #111;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-family: "Inter", "Lato", sans-serif;
}

.leyIva__fondoNegro {
  /* 90% negro / resto blanco → las cards quedan a caballo del corte */
  /* Fondo completamente negro (sin gradiente, según indicaciones) */
  background: #000;
  padding: 72px 0 48px;
  /* Necesario: las cards con margin negativo deben quedar POR ENCIMA del fondoBlanco */
  position: relative;
  z-index: 2;
}

.leyIva__fondoBlanco {
  background: #fff;
  padding: 0 0 64px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.leyIva__inner {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* --- Intro: texto + video --- */
.leyIva__intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.leyIva__titulo {
  margin: 0;
  color: #fff;
  font-family: "gallient", Georgia, serif;
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.leyIva__script {
  display: block;
  margin: -0.18em 0 36px;
  color: var(--ley-rojo);
  font-family: "beyond", cursive;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

/* Bloques de texto: fit-content alineados a la derecha del copy */
.leyIva__bloques {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  width: 100%;
}

.leyIva__bloque {
  width: fit-content;
  max-width: 420px;
  margin: 0;
  text-align: left;
}

.leyIva__bloqueTitulo {
  margin: 0 0 10px;
  color: #fff;
  font-family: "gallient", Georgia, serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.leyIva__bloqueTexto {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

/* Video / placeholder listo para URL real */
.leyIva__video {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #cfcfcf;
  cursor: pointer;
}

.leyIva__videoPoster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leyIva__videoPlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: none; /* el click lo captura .leyIva__video */
}

.leyIva__videoPlay::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.leyIva__video.is-playing .leyIva__videoPoster,
.leyIva__video.is-playing .leyIva__videoPlay {
  display: none;
}

.leyIva__videoFrame,
.leyIva__videoEl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
}

/* --- Maximiza --- */
.leyIva__maximiza {
  margin: 56px 0 40px;
  text-align: center;
}

.leyIva__maximizaTitulo {
  margin: 0;
  color: #fff;
  font-family: "gallient", Georgia, serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
}

/* PC / iPad: una sola línea */
.leyIva__maximizaL1,
.leyIva__maximizaL2 {
  display: inline;
}

.leyIva__maximizaSep {
  display: inline;
}

.leyIva__maximizaScript {
  display: block;
  margin: -0.12em 0 0;
  color: var(--ley-rojo);
  font-family: "beyond", cursive;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1;
}

/* --- Cards beneficios --- */
.leyIva__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  /* !important: el reset global hace ul { margin: 0 !important } */
  margin: 0 0 -140px !important;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}

.leyIva__card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 20px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  min-height: 100%;
  text-align: center;
}

.leyIva__cardTitulo {
  margin: 0 0 2px;
  color: #111;
  font-family: "gallient", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.leyIva__cardScript {
  display: block;
  margin: 0 0 16px;
  color: var(--ley-rojo);
  font-family: "beyond", cursive;
  font-size: 28px;
  line-height: 1.1;
}

.leyIva__cardLista {
  margin: 0 auto!important;
  padding: 0;
  list-style: none;
  text-align: left;
  width: fit-content;
  max-width: 88%;
}

.leyIva__cardLista li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 16px;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
}

.leyIva__cardLista li:last-child {
  margin-bottom: 0;
}

.leyIva__cardLista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ley-rojo);
  border-radius: 50%;
  box-sizing: border-box;
}

/* Owl en mobile — oculto en PC */
.leyIva__cardsOwl {
  display: none;
}

/* Legal debajo de las cards (zona blanca) */
.leyIva__legal {
  margin: 0 auto;
  padding-top: 135px; /* espacio = mitad cards (~140) + aire */
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  max-width: 640px;
}

/* PC / iPad: una sola línea (sin salto) */
.leyIva__legalBr {
  display: none;
}

/* --- Cierre logo --- */
.leyIva__cierre {
  margin: 48px auto 0;
  width: min(856px, 90%);
  text-align: center;
}

.leyIva__cierreLogo {
  display: block;
  width: min(864px, 100%);
  height: auto;
  margin: 0 auto;
}

/* PC angosto: logo de cierre más chico */
@media (max-width: 1399.98px) {
  .leyIva__cierreLogo {
    width: min(580px, 100%);
  }
}

/* --- Tablet --- */
@media (max-width: 991.98px) {
  .leyIva__fondoNegro {
    padding: 56px 0 40px;
  }

  .leyIva__intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .leyIva__video {
    margin: 0 auto;
    max-width: 360px;
  }

  .leyIva__cards {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: -120px !important;
  }

  .leyIva__legal {
    padding-top: 148px;
  }
  .leyIva__bloques {
  
    align-items: center;
   
   }
}

/* --- Mobile: carousel 1.25 items --- */
@media (max-width: 767.98px) {
  .leyIva__fondoNegro {
    padding: 48px 0 36px;
  }

  .leyIva__fondoBlanco {
    padding-bottom: 48px;
  }

  .leyIva__titulo {
    font-size: clamp(22px, 6vw, 28px);
  }

  .leyIva__script {
    font-size: clamp(40px, 9.5vw, 52px);
    margin-bottom: 22px;
    white-space: normal;
  }

  .leyIva__bloques {
    align-items: stretch;
  }

  .leyIva__bloque {
    max-width: none;
    width: 100%;
  }

  .leyIva__bloqueTexto {
    font-size: 13px;
  }

  .leyIva__video {
    max-width: 100%;
    aspect-ratio: 3 / 4;
  }

  .leyIva__maximiza {
    margin: 40px 0 28px;
  }

  /* Mobile: MAXIMIZA / TU INVERSIÓN / script (foto 2) */
  .leyIva__maximizaTitulo {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1;
  }

  .leyIva__maximizaL1,
  .leyIva__maximizaL2 {
    display: block;
  }

  .leyIva__maximizaSep {
    display: none;
  }

  .leyIva__maximizaScript {
    font-size: clamp(34px, 10vw, 48px);
    margin-top: -0.28em;
  }

  /* Grid PC oculto; Owl visible */
  .leyIva__cards {
    display: none;
  }

  .leyIva__cardsOwl {
    display: block;
    margin: 0 -4% -120px 0 !important;
    position: relative;
    z-index: 3;
  }

  /* Espacio interno para que el box-shadow no lo recorte Owl (overflow:hidden) */
  .leyIva__cardsOwl .owl-stage-outer {
    padding-bottom: 28px;
    margin-bottom: -28px;
  }

  .leyIva__cardsOwl .owl-item {
    padding: 4px 12px 20px 2px;
  }

  .leyIva__card {
    padding: 22px 16px 24px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  }

  .leyIva__legal {
    padding-top: 160px;
    line-height: 1.55;
    max-width: 92%;
  }

  /* Mobile: dos líneas (foto 2) */
  .leyIva__legalBr {
    display: block;
  }

  .leyIva__cierre {
    margin-top: 40px;
  }
}
