/* ============================================================
   css/lab.css — Landing de Berry's Lab

   Se carga solo en berrys-lab.html. Usa los tokens de styles.css
   (colores, tipografías, sombras y radios) para no inventar una
   paleta nueva: el producto se tiene que sentir de la misma casa.
   ============================================================ */

/* ---------------- Hero ---------------- */
.lab-hero {
  padding: 56px 24px 24px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(234, 184, 163, 0.28), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(130, 150, 107, 0.14), transparent 55%);
}

.lab-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.lab-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  color: var(--color-text);
  margin: 16px 0 18px;
}

.lab-hero__title span {
  display: block;
  font-size: 0.44em;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-top: 10px;
  letter-spacing: 0.2px;
}

.lab-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 24px;
}

.lab-hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
}

.lab-price {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: var(--color-accent-dark);
  line-height: 1;
}

.lab-price__period {
  font-weight: 700;
  color: var(--color-text-muted);
}

.lab-price__note {
  flex-basis: 100%;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.lab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

/* Los CTA del hero son más chicos que el botón estándar: con el padding
   y el letter-spacing originales, los dos no entraban en la columna. */
.lab-hero__actions .cta-button {
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 1.2px;
}

.lab-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.lab-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lab-trust svg {
  width: 15px;
  height: 15px;
  color: var(--color-accent-botanical);
}

.lab-hero__shot {
  margin: 0;
}

.lab-hero__shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-flat);
}

.lab-hero__shot figcaption {
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* ---------------- Video promocional ---------------- */
.lab-video {
  padding: 8px 24px 72px;
  background:
    radial-gradient(900px 380px at 50% -20%, rgba(234, 184, 163, 0.22), transparent 60%);
}

.lab-video .section-header-wrapper {
  margin-bottom: 30px;
}

.lab-video__frame {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(160deg, #fffaf6, #f6e9df);
  border: 1px solid var(--color-line-warm);
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: 0 24px 60px rgba(140, 74, 47, 0.18);
}

.lab-video__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #201814;
  object-fit: contain;
}

.lab-video__frame figcaption {
  margin: 12px 6px 2px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------------- Intro / pilares ---------------- */
.lab-pillars {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lab-pillar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-card-flat);
  border-top: 3px solid var(--color-accent-terracota);
  transition: transform .25s ease, box-shadow .25s ease;
}

.lab-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-flat), 0 12px 26px rgba(140, 74, 47, 0.12);
}

.lab-pillar__num {
  display: block;
  font-family: var(--font-title);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-accent-terracota);
  opacity: .6;
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.lab-pillar h3 {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  color: var(--color-accent-dark);
  margin: 0 0 10px;
}

.lab-pillar p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ---------------- Módulos ---------------- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lab-module {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card-flat);
}

.lab-module__icon {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.lab-module h3 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0 0 6px;
}

.lab-module p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------------- Funciones ---------------- */
.lab-features {
  padding: 72px 24px;
  background: var(--color-surface-alt);
}

.lab-features__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lab-feature {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card-flat);
}

.lab-feature h3 {
  font-size: var(--text-md);
  margin: 0 0 8px;
  color: var(--color-text);
}

.lab-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.lab-feature code {
  background: rgba(130, 150, 107, 0.14);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.92em;
  color: var(--color-accent-dark);
}

/* ---------------- Galería ---------------- */
.lab-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.lab-shot {
  margin: 0;
}

.lab-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-flat);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.lab-shot figcaption {
  margin-top: 10px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.lab-shot figcaption strong {
  color: var(--color-text);
}

/* ---------------- Licencia ---------------- */
.lab-license {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.lab-license__aside {
  display: grid;
  gap: 22px;
}

.lab-license__card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-flat);
}

.lab-license__title {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  margin: 12px 0 6px;
}

.lab-license__price {
  font-family: var(--font-title);
  font-size: 2.4rem;
  color: var(--color-accent-dark);
  margin: 0;
  line-height: 1.1;
}

.lab-license__price small {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-muted);
  margin-left: 6px;
}

.lab-license__hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 8px 0 20px;
}

.lab-license__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 9px;
}

.lab-license__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text);
}

.lab-license__list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--color-accent-botanical);
}

.lab-buy {
  border-top: 1px solid var(--color-line-warm);
  padding-top: 22px;
}

.lab-buy__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.lab-buy .form-group,
.lab-renew .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lab-buy label,
.lab-renew label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
}

.lab-buy input,
.lab-renew input {
  background: #fff;
  border: 1px solid var(--color-line-warm);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
}

.lab-buy input:focus,
.lab-renew input:focus {
  outline: 2px solid var(--color-accent-terracota);
  outline-offset: 1px;
}

.lab-buy__btn {
  width: 100%;
  justify-content: center;
}

.lab-buy__legal {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 10px 0 0;
  text-align: center;
}

.lab-buy__error {
  margin: 10px 0 0;
  font-size: var(--text-sm);
  color: #a83a1a;
  background: rgba(201, 78, 42, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

/* Panel de compra / descarga */
.lab-panel {
  background: rgba(130, 150, 107, 0.12);
  border: 1px solid rgba(130, 150, 107, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
}

.lab-panel__title {
  font-size: var(--text-md);
  color: var(--color-accent-botanical);
  margin: 0 0 6px;
}

.lab-panel__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.lab-panel__download {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.lab-panel__license {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.lab-panel__license code {
  background: #fff;
  border: 1px dashed var(--color-line-warm);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  word-break: break-all;
  color: var(--color-text);
}

.lab-copy {
  background: transparent;
  border: 1px solid var(--color-line-warm);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}

.lab-copy:hover {
  background: var(--bg-card);
}

/* Renovación */
.lab-renew {
  margin-top: 22px;
  border-top: 1px solid var(--color-line-warm);
  padding-top: 18px;
}

.lab-renew summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-accent-dark);
  list-style: none;
}

.lab-renew summary::-webkit-details-marker {
  display: none;
}

.lab-renew summary::before {
  content: "＋ ";
  color: var(--color-accent-botanical);
}

.lab-renew[open] summary::before {
  content: "− ";
}

.lab-renew p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 12px 0;
}

.lab-renew form {
  display: grid;
  gap: 12px;
}

/* Requisitos */
.lab-req {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card-flat);
}

.lab-req h3 {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  margin: 0 0 14px;
  color: var(--color-accent-dark);
}

.lab-req ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.lab-req li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(230, 214, 201, 0.6);
  padding-bottom: 10px;
}

.lab-req li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lab-req strong {
  color: var(--color-text);
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

/* ---------------- FAQ ---------------- */
.lab-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

/* ---------------- CTA final ---------------- */
.lab-cta {
  text-align: center;
  padding: 76px 24px 84px;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(234, 184, 163, 0.3), transparent 65%),
    var(--bg-main);
}

.lab-cta h2 {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 10px;
}

.lab-cta p {
  color: var(--color-text-muted);
  margin: 0 0 22px;
}

.lab-cta__note {
  font-size: var(--text-sm);
  margin-top: 16px !important;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1023px) {
  .lab-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lab-pillars,
  .lab-features__grid,
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-license {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .lab-hero {
    padding: 32px 18px 16px;
  }

  .lab-video {
    padding: 4px 16px 52px;
  }

  .lab-video__frame {
    padding: 7px;
    border-radius: calc(var(--radius-lg) + 4px);
  }

  .lab-features,
  .lab-license {
    padding: 48px 18px;
  }

  .lab-cta {
    padding: 56px 18px 64px;
  }

  .lab-pillars,
  .lab-features__grid,
  .lab-grid,
  .lab-gallery__grid {
    grid-template-columns: 1fr;
  }

  .lab-license__card {
    padding: 24px 20px;
  }

  .lab-buy__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .lab-hero__title {
    font-size: 1.85rem;
  }

  .lab-hero__actions .cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------- ¿Para quién sirve? ---------------- */
.lab-audience__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.lab-audience__card {
  background: var(--bg-card);
  border-radius: var(--radius, 22px);
  padding: 26px 24px;
  box-shadow: var(--shadow-card-flat);
  transition: transform .25s ease, box-shadow .25s ease;
}

.lab-audience__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-flat), 0 10px 24px rgba(140, 74, 47, 0.12);
}

.lab-audience__icon {
  font-size: 1.9rem;
  display: block;
  margin-bottom: 10px;
}

.lab-audience__card h3 {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  color: var(--color-accent-dark);
  margin: 0 0 8px;
}

.lab-audience__card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: var(--leading-body);
}

/* ---------------- Garantía / sello de soporte ---------------- */
.lab-guarantee {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 22px;
  background: linear-gradient(135deg, #fff7f2, #fdeee6);
  border: 1px solid var(--color-line-warm);
  border-radius: var(--radius, 22px);
  box-shadow: var(--shadow-card-flat);
}

.lab-guarantee__seal {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
}

.lab-seal {
  width: 84px;
  height: 84px;
  display: block;
}

.lab-seal__ring {
  fill: none;
  stroke: var(--color-accent-terracota);
  stroke-width: 2;
}

.lab-seal__core {
  fill: var(--color-accent-terracota);
}

.lab-seal__text {
  fill: var(--color-accent-terracota);
  font-family: var(--font-body);
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.lab-seal__check {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lab-guarantee__title {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  color: var(--color-accent-dark);
  margin: 0 0 6px;
}

.lab-guarantee__text {
  margin: 0;
  color: var(--color-text-muted);
  line-height: var(--leading-body);
}

.lab-guarantee__text strong {
  color: var(--color-accent-dark);
}

@media (max-width: 640px) {
  .lab-audience__grid {
    grid-template-columns: 1fr;
  }

  .lab-guarantee {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 22px 18px;
  }
}

/* Términos de la licencia (EULA) */
.lab-eula {
  margin: 18px 0;
  border-top: 1px solid rgba(74, 63, 53, 0.12);
}
.lab-eula summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  color: var(--color-text);
}
.lab-eula__text {
  white-space: pre-line;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  padding-bottom: 12px;
}
