/* Sección muestra gratuita — Mendoza Insights */

.sample-section {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(25, 80, 122, 0.045),
      transparent 32%
    ),
    #fff;
}

.sample-section__inner {
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.sample-preview__eyebrow {
  margin: 0 0 0.65rem;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-steel, #19507a);
}

.sample-preview__title {
  max-width: 38rem;
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary-logo, #1f3575);
  text-transform: none;
}

h2.sample-preview__title {
  text-transform: none;
  letter-spacing: -0.025em;
}

.sample-preview__description {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--neutral-text, #4b5563);
}

.sample-preview__support {
  max-width: 35rem;
  margin: 0.65rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--products-muted, #64748b);
}

/* ——— Dossier preview ——— */
.report-preview {
  position: relative;
  width: min(100%, 440px);
  min-height: 390px;
  margin-top: 2rem;
}

.report-preview__page {
  position: absolute;
  width: 255px;
  aspect-ratio: 0.71;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(25, 80, 122, 0.14);
  box-shadow: 0 18px 42px rgba(31, 53, 117, 0.12);
}

.report-preview__page--front {
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-1deg);
}

.report-preview__page--back {
  top: 24px;
  left: 165px;
  z-index: 1;
  transform: rotate(2deg);
}

.report-preview__meta {
  position: absolute;
  left: 0;
  bottom: -1.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Inter, sans-serif;
}

.report-preview__meta span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-steel, #19507a);
}

.report-preview__meta strong {
  font-size: 11px;
  font-weight: 600;
  color: var(--products-muted, #64748b);
}

/* ——— Cover ——— */
.report-cover {
  height: 100%;
  background: #fff;
}

.report-cover__brand {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 1rem 1.1rem 0.8rem;
  background: var(--primary-logo, #1f3575);
}

.report-cover__brand img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}

.report-cover__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--primary-logo, #1f3575);
  font-family: Inter, sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.report-cover__accent {
  height: 4px;
  background: #2fa486;
}

.report-cover__body {
  padding: 1.2rem 1.1rem;
}

.report-cover__label {
  font-family: Inter, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-steel, #19507a);
}

.report-cover__body h3 {
  margin: 0.55rem 0 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-logo, #1f3575);
  text-transform: none;
}

.report-cover__body p {
  margin: 0.65rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--neutral-text, #4b5563);
}

/* ——— Results page ——— */
.report-results {
  height: 100%;
  padding: 0.9rem;
  background: #f8fafc;
}

.report-results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.55rem;
  border-top: 3px solid var(--primary-steel, #19507a);
  background: #fff;
}

.report-results__header h3 {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  text-transform: none;
}

.report-results__header span {
  padding: 0.25rem 0.4rem;
  background: #f1f5f9;
  font-family: Inter, sans-serif;
  font-size: 6.5px;
  color: #64748b;
}

.report-results__row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.85fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.55rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.report-results__row > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.report-results__row strong {
  font-family: Inter, sans-serif;
  font-size: 7px;
  color: #0f172a;
}

.report-results__row span {
  font-family: Inter, sans-serif;
  font-size: 6px;
  color: #64748b;
}

.report-results__value {
  text-align: right;
}

.report-results__value strong {
  color: #2fa486;
  font-size: 8px;
}

.report-results__reference {
  padding-left: 0.45rem;
  border-left: 1px solid #e5e7eb;
  text-align: right;
}

.report-confidence {
  display: inline-flex;
  padding: 0.18rem 0.35rem;
  border-radius: 2px;
  font-size: 5.5px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-confidence--high {
  background: #d1fae5;
  color: #047857 !important;
}

.report-confidence--medium {
  background: #fef3c7;
  color: #92400e !important;
}

/* ——— Benefits ——— */
.sample-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}

.sample-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-logo, #1f3575);
}

.sample-benefits svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 0.1rem;
  color: var(--primary-steel, #19507a);
}

/* ——— Form card ——— */
.sample-form-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--products-border, #e2e8f0);
  box-shadow: 0 14px 36px rgba(31, 53, 117, 0.08);
}

.sample-form-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--products-border, #e2e8f0);
}

.sample-form-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(25, 80, 122, 0.12);
  border-radius: 8px;
  background: rgba(25, 80, 122, 0.05);
  color: var(--primary-steel, #19507a);
}

.sample-form-card__icon svg {
  width: 22px;
  height: 22px;
}

.sample-form-card__eyebrow {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-steel, #19507a);
}

.sample-form-card__title {
  margin: 0.3rem 0 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-logo, #1f3575);
  text-transform: none;
}

h3.sample-form-card__title {
  text-transform: none;
}

.sample-form-card__description {
  margin: 0.45rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--products-muted, #64748b);
}

.sample-form-card .form-field {
  margin-bottom: 1.1rem;
}

.sample-form-card .form-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-logo, #1f3575);
}

.sample-form-card .form-field label span {
  padding: 0.15rem 0.35rem;
  background: #f1f5f9;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.sample-form-card .form-field input,
.sample-form-card .form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  color: #1e293b;
}

.sample-form-card .form-field input::placeholder {
  color: #94a3b8;
}

.sample-form-card .form-field input:focus,
.sample-form-card .form-field select:focus {
  outline: 0;
  border-color: var(--primary-steel, #19507a);
  box-shadow: 0 0 0 3px rgba(25, 80, 122, 0.1);
}

.sample-form-card .form-field__error {
  margin: 0.35rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  color: #b91c1c;
}

.sample-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sample-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  margin-top: 0.25rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--accent-orange, #eb7300);
  font-family: Inter, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.sample-form__submit:hover:not(:disabled) {
  background: #d96800;
}

.sample-form__submit:focus-visible {
  outline: 3px solid rgba(235, 115, 0, 0.28);
  outline-offset: 3px;
}

.sample-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sample-form__submit svg {
  width: 18px;
  height: 18px;
}

#submitText {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.sample-form__submit-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.sample-section .hidden {
  display: none !important;
}

.sample-form__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sample-spin 0.7s linear infinite;
}

@keyframes sample-spin {
  to {
    transform: rotate(360deg);
  }
}

.sample-form__delivery,
.sample-form__privacy {
  margin: 0;
  text-align: center;
  font-family: Inter, sans-serif;
  line-height: 1.5;
}

.sample-form__delivery {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--primary-logo, #1f3575);
}

.sample-form__privacy {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: #94a3b8;
}

.sample-form__privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sample-form__status {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
}

.sample-form__status--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.sample-form__status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.sample-form__status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sample-form__status strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.84rem;
}

@media (prefers-reduced-motion: reduce) {
  .sample-form__spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.35);
  }

  .report-preview__page--front,
  .report-preview__page--back {
    transform: none;
  }
}

@media (max-width: 1023px) {
  .sample-section__inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .sample-preview {
    max-width: 44rem;
    margin: 0 auto;
  }

  .sample-form-card {
    width: min(100%, 38rem);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .sample-section__inner {
    width: min(100% - 3rem, 74rem);
  }
}

@media (max-width: 640px) {
  .sample-section {
    padding: 3rem 0;
  }

  .sample-section__inner {
    gap: 3rem;
  }

  .report-preview {
    width: 100%;
    min-height: 330px;
    margin-top: 1.5rem;
  }

  .report-preview__page {
    width: 205px;
  }

  .report-preview__page--front {
    left: 0;
  }

  .report-preview__page--back {
    top: 20px;
    left: min(34vw, 125px);
  }

  .report-preview__meta {
    bottom: -1.5rem;
  }

  .sample-benefits {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 3rem;
  }

  .sample-form-card {
    padding: 1.25rem;
  }

  .sample-form-card__header {
    gap: 0.7rem;
  }
}

@media (max-width: 390px) {
  .report-preview {
    min-height: 300px;
  }

  .report-preview__page {
    width: 180px;
  }

  .report-preview__page--back {
    left: 105px;
  }

  .report-cover__body h3 {
    font-size: 0.85rem;
  }

  .report-results__row {
    grid-template-columns: 1.1fr 0.8fr;
  }

  .report-results__reference {
    display: none;
  }
}
