/* Esquemas de comercialización — light-glass companion to .products
   Visual rhythm mirrors the dark .product-card: soft top-left glow on rest,
   coral accent on hover. Lives on white bg, so the glass is a translucent
   sky tint over a backdrop-blur. */

.esquemas {
  padding: 120px 32px;
  background: #F6F9FC;
  position: relative;
  overflow: hidden;
}

/* Ambient sky glow upper-right + cool sky echo lower-left */
.esquemas::before {
  content: "";
  position: absolute;
  top: -240px; right: -240px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(82,140,214,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.esquemas::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(163,212,232,0.20) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.esquemas-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.esquemas-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.esquemas .esq-eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.esquemas .esq-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--blue-deep);
}

.esquemas h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
}
.esquemas h2 em {
  font-style: normal;
  color: var(--blue-deep);
}

.esquemas-sub {
  font-family: var(--font-d);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto;
  max-width: 660px;
}

/* Grid — aligns column widths with .products-grid.products-grid-4 above
   (same max-width 1280, same gap 16px, same 4 columns) */
.esquemas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 899px) {
  /* Mobile + tablet: section fits one viewport; cards become a
     horizontal scroll-snap rail mirroring the Products pattern above. */
  .esquemas {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(48px, 8vh, 80px) 0;
  }
  .esquemas-inner {
    width: 100%;
  }
  .esquemas-header {
    margin-bottom: 24px;
  }
  .esquemas-header h2 {
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.1;
  }
  .esquemas-sub {
    font-size: 15px;
    line-height: 1.45;
  }

  .esquemas-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding-inline: clamp(24px, 6vw, 36px);
    margin-inline: calc(-1 * clamp(24px, 6vw, 36px));
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, black 0, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, black 0, black calc(100% - 28px), transparent 100%);
  }
  .esquemas-grid::-webkit-scrollbar { display: none; }
  .esq-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    /* Internal compaction so the tallest card still fits inside the
       100dvh page without forcing the section to overflow. */
    padding: 20px 20px 18px;
  }
  .esq-card h3 { font-size: 19px; }
  .esq-tagline { font-size: 13px; }
  .esq-desc { font-size: 13px; line-height: 1.45; }
  .esq-list li { font-size: 13px; }
  .esquemas { padding-bottom: clamp(48px, 8vh, 80px); }
}

/* ─── Card: crystalline white glass at rest ─── */
.esq-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.28));
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.80);
  border-radius: 18px;
  padding: 28px 24px 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 0 0 1px rgba(255,255,255,0.30) inset,
    0 18px 40px -22px rgba(11,28,54,0.10),
    0 6px 14px -8px rgba(11,28,54,0.04);
  transition: border-color 220ms cubic-bezier(0.4,0,0.2,1),
              background 220ms cubic-bezier(0.4,0,0.2,1),
              transform 220ms cubic-bezier(0.4,0,0.2,1),
              box-shadow 220ms cubic-bezier(0.4,0,0.2,1);
}

/* Soft top-left crystalline highlight — pure white sheen, no tint at rest */
.esq-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(255,255,255,0.95), transparent 60%),
    radial-gradient(300px 160px at 100% 0%, rgba(255,255,255,0.55), transparent 65%);
  opacity: 1;
  transition: opacity 220ms, background 220ms;
  pointer-events: none;
}

/* Soft blue hairline that fades in on hover */
.esq-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(82,140,214,0.65), transparent);
  opacity: 0;
  transition: opacity 220ms;
  pointer-events: none;
}

.esq-card:hover {
  transform: translateY(-3px);
  border-color: rgba(82,140,214,0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(224,237,247,0.55));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 0 0 1px rgba(82,140,214,0.09) inset,
    0 26px 56px -26px rgba(82,140,214,0.20),
    0 10px 22px -12px rgba(11,28,54,0.10);
}
.esq-card:hover::before {
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(255,255,255,0.88), transparent 60%),
    radial-gradient(480px 240px at 0% 0%, rgba(82,140,214,0.14), transparent 65%);
}
.esq-card:hover::after { opacity: 1; }

/* ─── Head: figure + index, matched to .product-card-head rhythm ─── */
.esq-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  position: relative;
}

.esq-figure {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: transform 260ms cubic-bezier(0.34,1.56,0.64,1);
}
.esq-card:hover .esq-figure {
  transform: scale(1.06) rotate(-2deg);
}

.esq-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(11,28,54,0.40);
  font-variant-numeric: tabular-nums;
}

/* ─── Title + tagline + description ─── */
.esq-card h3 {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.esq-tagline {
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-deep);
  margin: 4px 0 0;
  line-height: 1.4;
}

.esq-desc {
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  min-height: 60px;
}

.esq-divider {
  height: 1px;
  background: rgba(82,140,214,0.18);
  margin: 2px 0;
}

/* ─── List: dash-prefixed rows, mirrors .product-item style ─── */
.esq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.esq-list li {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.4;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(82,140,214,0.10);
}
.esq-list li:last-child { border-bottom: none; }

.esq-check {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--blue);
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 220ms ease;
}
.esq-card:hover .esq-check { color: var(--blue-deep); }

/* ─── Footer: badge or pymio stamp ─── */
.esq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(82,140,214,0.10);
}

.esq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(82,140,214,0.10);
  color: var(--blue-deep);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.esq-badge.is-soft {
  background: rgba(82,140,214,0.10);
  color: var(--blue-deep);
}

.esq-pymio-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(82,140,214,0.24);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.esq-pymio-stamp:hover {
  background: #FFFFFF;
  border-color: rgba(82,140,214,0.45);
  transform: translateY(-1px);
}
.esq-pymio-stamp img {
  height: 22px;
  width: auto;
  display: block;
}
.esq-pymio-stamp .stamp-arrow {
  width: 14px;
  height: 14px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease, stroke 160ms ease;
  flex-shrink: 0;
}
.esq-pymio-stamp:hover .stamp-arrow {
  transform: translate(2px, -2px);
  stroke: var(--blue-deep);
}
