/* Sección Productos — Inteligencia de Mercado
   Extiende tokens del hero (Swiss / observatorio) */

.products-section {
  --products-surface: #ffffff;
  --products-border: #e2e8f0;
  --products-muted: #64748b;
  --products-text: #334155;
  --products-soft: var(--background-soft, #f8fafc);
  --products-shadow: 0 8px 28px rgba(31, 53, 117, 0.07);
  --products-shadow-strong: 0 12px 36px rgba(31, 53, 117, 0.11);

  background-color: var(--products-soft);
  padding: 2.75rem 0 3.25rem;
}

.products-section__inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .products-section__inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-section__inner {
    padding: 0 2rem;
  }
}

/* ——— Section header ——— */
.section-header {
  text-align: center;
  max-width: 76rem;
  margin: 0 auto 2rem;
}

.section-header__eyebrow {
  margin: 0 0 0.4rem;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-steel);
}

.section-header__title {
  margin: 0 0 0.55rem;
  max-width: none;
  white-space: nowrap;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-logo);
}

@media (max-width: 900px) {
  .section-header__title {
    white-space: normal;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.45rem, 5vw, 1.9rem);
  }
}

.section-header__subtitle {
  margin: 0 auto;
  font-family: Inter, sans-serif;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--products-muted);
  max-width: 34rem;
}

/* ——— Grid ——— */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* ——— Cards ——— */
.product-card {
  display: flex;
  flex-direction: column;
  height: auto;
  background: var(--products-surface);
  border: 1px solid var(--products-border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.2rem;
  box-shadow: var(--products-shadow);
  min-width: 0;
  transition: box-shadow var(--transition-ui, 180ms ease),
    border-color var(--transition-ui, 180ms ease);
}

.product-card:hover,
.product-card--primary:hover,
.product-card--secondary:hover {
  box-shadow:
    0 12px 32px rgba(235, 115, 0, 0.22),
    0 6px 16px rgba(235, 115, 0, 0.12);
  border-color: rgba(235, 115, 0, 0.32);
}

.product-card--primary {
  border-color: rgba(31, 53, 117, 0.18);
  border-top: 3px solid var(--accent-orange);
  box-shadow: var(--products-shadow-strong);
}

.product-card--secondary {
  border-color: var(--products-border);
  border-top: 3px solid rgba(25, 80, 122, 0.28);
  box-shadow: var(--products-shadow);
}

.product-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
}

.product-card__identity-content {
  min-width: 0;
  flex: 1;
}

.product-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.product-card__icon svg {
  width: 23px;
  height: 23px;
}

.product-card__icon--index {
  color: var(--primary-logo);
  background: rgba(235, 115, 0, 0.1);
  border-color: rgba(235, 115, 0, 0.18);
}

.product-card__icon--report {
  color: var(--primary-steel);
  background: rgba(25, 80, 122, 0.08);
  border-color: rgba(25, 80, 122, 0.14);
}

.product-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.product-card__identity .product-card__badges {
  margin-bottom: 0.45rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-sm, 2px);
  line-height: 1.2;
}

.product-badge--accent {
  background: var(--accent-orange);
  color: #fff;
}

.product-badge--soon {
  background: rgba(25, 80, 122, 0.1);
  color: var(--primary-steel);
}

h3.product-card__title,
.product-card__title {
  margin: 0 0 0.35rem;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--primary-logo);
}

.product-card__identity .product-card__title {
  margin-bottom: 0;
}

.product-card__uses {
  margin: 0 0 0.55rem;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: var(--products-muted);
}

.product-card__value-proposition {
  margin: 0 0 0.7rem;
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary-logo);
}

.product-card__aside {
  margin: 0 0 0.75rem;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-style: italic;
  color: var(--products-muted);
  line-height: 1.4;
}

/* ——— Price ——— */
.product-price {
  margin: 0 0 0.7rem;
  padding: 0.6rem 0 0.7rem;
  border-top: 1px solid var(--products-border);
  border-bottom: 1px solid var(--products-border);
}

.product-price__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-steel);
}

.product-price__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-price__current {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-logo);
}

.product-price__note {
  margin: 0.35rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--products-muted);
  line-height: 1.4;
}

.product-price__previous {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.product-price__saving {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--trend-up);
  line-height: 1.3;
}

.product-price__saving svg {
  flex-shrink: 0;
}

.product-price__saving strong {
  font-weight: 700;
}

.product-price__update {
  margin: 0.3rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--products-muted);
}

/* ——— Benefits compact ——— */
.product-benefits {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .product-card--primary .product-benefits--compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.85rem;
  }
}

.product-benefits--compact .product-benefits__item {
  align-items: center;
}

.product-benefits__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--products-text);
}

.product-benefits__item strong {
  font-weight: 700;
  color: var(--primary-logo);
}

.product-benefits__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--primary-steel);
}

/* ——— Delivery inline ——— */
.product-delivery-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0 0 0.65rem;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: var(--products-muted);
}

.product-delivery-inline__icon {
  flex-shrink: 0;
  color: var(--primary-steel);
}

.product-delivery-inline__mp {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 11rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ——— CTA ——— */
.product-card__cta-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.product-card__cta-area--secondary {
  margin-top: 0.85rem;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-md, 4px);
  border: 1px solid transparent;
  transition: background var(--transition-ui, 180ms ease),
    border-color var(--transition-ui, 180ms ease),
    color var(--transition-ui, 180ms ease),
    transform var(--transition-ui, 180ms ease);
}

.product-cta--primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

.product-cta--primary:hover {
  background: var(--accent-orange-hover, #d46600);
  border-color: var(--accent-orange-hover, #d46600);
  color: #fff;
  transform: translateY(-1px);
}

.product-cta--secondary {
  background: var(--primary-logo);
  border-color: var(--primary-logo);
  color: #fff;
}

.product-cta--secondary:hover {
  background: var(--primary-steel);
  border-color: var(--primary-steel);
  color: #fff;
  transform: translateY(-1px);
}

.product-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(235, 115, 0, 0.4));
}

.product-card__purchase-note,
.product-card__waitlist-note {
  margin: 0;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--products-muted);
}

.product-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card__more:hover {
  color: var(--primary-logo);
}

.product-card__more:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(235, 115, 0, 0.4));
  border-radius: var(--radius-sm, 2px);
}

/* ——— Product details / tabs ——— */
.product-details {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--products-border);
  border-radius: 12px;
  box-shadow: var(--products-shadow);
}

.product-details__header {
  margin-bottom: 1.1rem;
}

.product-details__eyebrow {
  margin: 0 0 0.35rem;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-steel);
}

#product-details-title,
.product-details__header h3 {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--primary-logo);
}

.product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-bottom: 1px solid var(--products-border);
}

.product-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--products-muted);
  cursor: pointer;
  transition: color var(--transition-ui, 180ms ease),
    border-color var(--transition-ui, 180ms ease);
}

.product-tab__icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: currentColor;
}

.product-tab:hover {
  color: var(--primary-logo);
}

.product-tab[aria-selected='true'] {
  color: var(--primary-logo);
  border-bottom-color: var(--accent-orange);
}

.product-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(235, 115, 0, 0.4));
  border-radius: var(--radius-sm, 2px);
}

.product-tabs__panel {
  padding-top: 1.5rem;
}

.product-tabs__panel[hidden] {
  display: none;
}

.product-panel-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--products-border);
}

.product-panel-identity__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
}

.product-panel-identity__icon svg {
  width: 21px;
  height: 21px;
}

.product-panel-identity__icon--index {
  color: var(--primary-logo);
  background: rgba(235, 115, 0, 0.1);
}

.product-panel-identity__icon--report {
  color: var(--primary-steel);
  background: rgba(25, 80, 122, 0.08);
}

.product-panel-identity__label {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-logo);
}

.product-panel-identity p {
  margin: 0.15rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--products-muted);
}

.product-details__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-details__block-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-steel);
}

.product-details__block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--primary-steel);
  background: rgba(25, 80, 122, 0.07);
  border-radius: 6px;
}

.product-details__block-icon svg {
  width: 15px;
  height: 15px;
}

.product-details__block p {
  margin: 0 0 0.55rem;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--products-text);
}

.product-details__block p:last-child {
  margin-bottom: 0;
}

.product-details__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-details__list li {
  position: relative;
  padding-left: 0.9rem;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--products-text);
}

.product-details__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-steel);
}

.product-details__note {
  color: var(--products-muted) !important;
  font-size: 12px !important;
}

@media (prefers-reduced-motion: reduce) {
  .product-cta--primary:hover,
  .product-cta--secondary:hover {
    transform: none;
  }

  .product-card {
    transition: none;
  }
}

@media (max-width: 480px) {
  .product-card__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .product-tab {
    padding-inline: 0.5rem;
    font-size: 12px;
    gap: 0.35rem;
  }

  .product-tab__icon {
    width: 17px;
    height: 17px;
  }
}
