/* ==========================================================
   INICIO SMART — 5 TARJETAS / 3 VISIBLES / SLIDE INFINITO
========================================================== */

.inicio-smart,
.inicio-smart * { box-sizing: border-box; }

.inicio-smart {
  --vino: #7d0d2f;
  --vino-2: #9b2446;
  --texto: #241d1b;
  --muted: #665b57;
  --linea: rgba(72,49,43,.13);
  --crema: #fbf8f5;
  background: #fff;
  color: var(--texto);
  padding: 38px 0 34px;
}

.ism-wrap {
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
}

.ism-head {
  margin-bottom: 24px;
}

.ism-eyebrow,
.ism-card__eyebrow {
  display: block;
  color: var(--vino);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ism-head h2 {
  margin: 7px 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.025em;
}

.ism-head p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ism-slider-shell {
  position: relative;
}

.ism-slider {
  overflow: hidden;
  width: 100%;
}

.ism-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  transition: opacity .26s ease, transform .26s ease;
}

.ism-track.is-leaving-left {
  opacity: 0;
  transform: translateX(-28px);
}

.ism-track.is-leaving-right {
  opacity: 0;
  transform: translateX(28px);
}

.ism-track.is-entering {
  opacity: 0;
  transform: translateY(5px);
}

.ism-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(40,25,20,.06);
}

.ism-card__image {
  position: relative;
  height: 350px;
  background: #eee7e1 center/cover no-repeat;
}

/* El difuminado baja hasta después del título. */
.ism-card__image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 95px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.12) 28%,
    rgba(255,255,255,.38) 58%,
    rgba(255,255,255,.72) 82%,
    rgba(255,255,255,.94) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.ism-card__icon {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: var(--vino);
  color: #fff;
  box-shadow: 0 8px 20px rgba(40,20,25,.16);
}

.ism-card__icon i {
  font-size: 24px;
}

.ism-card__body {
  position: relative;
  z-index: 2;
  min-height: 290px;
  display: flex;
  flex-direction: column;

  /* La zona de texto invade la imagen para que el difuminado
     continúe detrás del subtítulo y del título. */
  margin-top: -105px;
  padding: 105px 22px 22px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,.10) 24px,
    rgba(255,255,255,.28) 48px,
    rgba(255,255,255,.58) 76px,
    rgba(255,255,255,.86) 104px,
    #fff 132px,
    #fff 100%
  );
}

.ism-card__body h3 {
  margin: 8px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.03;
  font-weight: 400;
}

.ism-card__body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.ism-card__body ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.ism-card__body li {
  display: flex;
  gap: 8px;
  margin: 7px 0;
  color: #4f4541;
  font-size: 12px;
  line-height: 1.35;
}

.ism-card__body li span {
  color: var(--vino);
  font-size: 10px;
}

.ism-card__btn {
  margin-top: auto;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  background: var(--vino);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}

.ism-card__btn:hover {
  background: var(--vino-2);
  transform: translateY(-1px);
}

.ism-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125,13,47,.13);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--vino);
  box-shadow: 0 9px 28px rgba(35,20,20,.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.ism-nav--prev { left: -24px; }
.ism-nav--next { right: -24px; }

.ism-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 20px;
}

.ism-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(125,13,47,.26);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.ism-dot.is-active {
  background: var(--vino);
  border-color: var(--vino);
}

.ism-beneficios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 15px;
  background: linear-gradient(180deg, #fff, var(--crema));
}

.ism-beneficio {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-right: 1px solid var(--linea);
}

.ism-beneficio:last-child { border-right: 0; }

.ism-beneficio__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125,13,47,.18);
  border-radius: 12px;
  color: var(--vino);
}

.ism-beneficio__icon i { font-size: 21px; }

.ism-beneficio strong {
  display: block;
  margin-bottom: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 600;
}

.ism-beneficio small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .ism-wrap { width: min(100% - 32px, 900px); }
  .ism-track { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ism-track .ism-card:nth-child(3) { display: none; }
  .ism-beneficios { grid-template-columns: repeat(2,1fr); }
  .ism-beneficio:nth-child(2) { border-right: 0; }
  .ism-beneficio:nth-child(-n+2) { border-bottom: 1px solid var(--linea); }
}

@media (max-width: 640px) {
  .inicio-smart { padding: 28px 0 24px; }
  .ism-wrap { width: calc(100% - 24px); }
  .ism-head h2 { font-size: 31px; }
  .ism-track { grid-template-columns: 1fr; }
  .ism-track .ism-card:nth-child(2),
  .ism-track .ism-card:nth-child(3) { display: none; }
  .ism-card__image { height: 220px; }
  .ism-card__body { min-height: 290px; }
  .ism-nav { width: 38px; height: 38px; font-size: 28px; }
  .ism-nav--prev { left: -10px; }
  .ism-nav--next { right: -10px; }
  .ism-beneficios { grid-template-columns: 1fr; }
  .ism-beneficio { border-right: 0; border-bottom: 1px solid var(--linea); }
  .ism-beneficio:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ism-track,
  .ism-card__btn { transition: none; }
}