/* ==========================================================================
   lenspoem.com - hoja de estilos unica
   Mobile-first. Puntos de corte: 480px, 768px, 1024px.
   Tema claro unicamente.
   ========================================================================== */

:root {
  color-scheme: only light;

  --navy: #12305a;
  --navy-soft: #cfdbee;
  --ink: #1a1a1a;
  --ink-soft: #2e2e2e;
  --muted: #5a5a5a;
  --paper: #ffffff;
  --strip: #efefef;
  --line: #e0e0e0;
  --tint: #f6f6f6;
  --sand: #f8f2e7;
  --sand-line: #e8dcc4;
  --mint: #eaf6ee;
  --sky: #eef3fa;
  --sky-line: #7d97bf;
  --green: #1b7f3b;
  --green-deep: #14662e;

  --radius: 8px;
  --column: 684px;
  --gutter: 16px;

  --font-sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;

  --text-body: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --text-dek: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
  --text-title: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  --text-h2: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  --text-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --text-small: 0.8125rem;

  --space-section: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --space-block: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: #ffffff;
  color: #1a1a1a;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.62;
  overflow-wrap: break-word;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "masthead"
    "main"
    "footer";
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 1.05em;
}

a {
  color: #12305a;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: #0a1f3d;
}

a:focus-visible {
  outline: 3px solid #12305a;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  grid-area: masthead;
  background-color: #12305a;
  color: #ffffff;
}

.masthead__bar {
  padding: 14px var(--gutter) 13px;
  background-color: #12305a;
  color: #ffffff;
}

.masthead__brand {
  display: inline-block;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-decoration: none;
}

a.masthead__brand:hover {
  color: #ffffff;
  text-decoration: underline;
}

a.masthead__brand:focus-visible {
  outline-color: #ffffff;
}

.masthead__tagline {
  margin: 4px 0 0;
  color: #cfdbee;
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.masthead__label {
  margin: 0;
  padding: 6px var(--gutter);
  background-color: #efefef;
  color: #555555;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Article column (grid with named areas)
   -------------------------------------------------------------------------- */

.article {
  grid-area: main;
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, var(--column))
    minmax(var(--gutter), 1fr);
  grid-template-areas: ". story .";
  padding-top: 22px;
  background-color: #ffffff;
  color: #1a1a1a;
}

.story {
  grid-area: story;
  min-width: 0;
  background-color: #ffffff;
  color: #1a1a1a;
}

.story__byline {
  margin: 0 0 14px;
  color: #555555;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.story__title {
  margin: 0 0 16px;
  color: #151515;
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.15;
  text-wrap: balance;
}

.story__dek {
  margin: 0 0 24px;
  color: #262626;
  font-size: var(--text-dek);
  font-weight: 700;
  line-height: 1.5;
}

.story h2 {
  margin: var(--space-section) 0 0.65em;
  color: #151515;
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-wrap: balance;
}

.story h3 {
  margin: 0 0 0.4em;
  color: #151515;
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Figures, frames and loops
   -------------------------------------------------------------------------- */

.figure {
  margin: 0 0 var(--space-block);
  background-color: #ffffff;
  color: #5a5a5a;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  background-color: #e9e6e1;
}

.figure figcaption {
  margin-top: 8px;
  color: #5a5a5a;
  font-size: var(--text-small);
  line-height: 1.45;
}

.figure--hero {
  margin-bottom: 28px;
}

.figure--break {
  margin-top: var(--space-block);
}

.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #e9e6e1;
}

.frame--landscape {
  aspect-ratio: 1200 / 630;
}

.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Method note, comparison table and option blocks
   -------------------------------------------------------------------------- */

.method {
  margin: 0 0 var(--space-block);
  padding: 16px 18px;
  background-color: #eef3fa;
  color: #1f2a3b;
  border: 2px dashed #7d97bf;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
}

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

.method strong {
  color: #12305a;
}

.compare {
  margin: 0 0 var(--space-block);
  background-color: #ffffff;
  color: #1a1a1a;
  overflow-x: auto;
}

.compare__table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.compare__caption {
  display: block;
  padding: 0 0 10px;
  color: #5a5a5a;
  font-size: var(--text-small);
  text-align: left;
}

.compare__table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.compare__table tbody {
  display: block;
}

.compare__table tr {
  display: block;
  margin: 0 0 12px;
  padding: 12px 14px 14px;
  background-color: #f6f6f6;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
}

.compare__table tr.compare__focus {
  background-color: #eaf6ee;
  border: 2px solid #2e8b4f;
}

.compare__table th[scope="row"] {
  display: block;
  margin: 0;
  color: #151515;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
}

.compare__table td {
  display: block;
  margin: 10px 0 0;
  color: #1f1f1f;
}

.compare__table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 1px;
  color: #5a5a5a;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.option {
  margin: 0 0 16px;
  padding: 18px 18px 6px;
  background-color: #f6f6f6;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
}

.option--sand {
  background-color: #f8f2e7;
  border-color: #e8dcc4;
}

.option--lead {
  background-color: #eaf6ee;
  border: 2px solid #2e8b4f;
}

.option__kicker {
  margin: 0 0 6px;
  color: #5a5a5a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.option--lead .option__kicker {
  color: #14662e;
}

.option__fit {
  margin: 0 0 0.7em;
  color: #151515;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.4;
}

.option--lead .option__fit {
  color: #14662e;
}

.option p:not(.option__kicker):not(.option__fit) {
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.steps {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.steps li {
  position: relative;
  min-height: 32px;
  margin: 0 0 14px;
  padding-left: 46px;
  counter-increment: paso;
}

.steps li::before {
  content: counter(paso);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background-color: #12305a;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

.needs {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.needs li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 34px;
}

.needs li::before {
  content: "\2713";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  background-color: #1b7f3b;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.plain-list {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.plain-list li {
  margin: 0 0 0.7em;
  padding-left: 0.2em;
}

.plain-list li::marker {
  color: #12305a;
}

/* --------------------------------------------------------------------------
   Split layout (copy + loop side by side from 768px)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "media";
  margin: 0 0 var(--space-block);
}

.split--reverse {
  grid-template-areas:
    "media"
    "copy";
}

.split__copy {
  grid-area: copy;
  min-width: 0;
}

.split__copy > :last-child {
  margin-bottom: 0;
}

.split__media {
  grid-area: media;
  min-width: 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.split__media .figure {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.cta {
  margin: var(--space-block) 0 var(--space-section);
  background-color: #ffffff;
  color: #1a1a1a;
  text-align: center;
}

.cta__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  background-color: #1b7f3b;
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 0 #0f4f21, 0 6px 14px rgba(20, 102, 46, 0.18);
  font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta__button::after {
  content: "\00BB";
  flex: none;
  font-size: 1.25em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cta__button:hover {
  background-color: #14662e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #0f4f21, 0 10px 20px rgba(20, 102, 46, 0.24);
}

.cta__button:hover::after {
  transform: translateX(3px);
}

.cta__button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #0f4f21;
}

.cta__button:focus-visible {
  outline: 3px solid #12305a;
  outline-offset: 3px;
  border-radius: 6px;
}

.after-cta {
  margin: 10px 0 0;
  color: #5a5a5a;
  font-size: var(--text-small);
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Legal and about pages
   -------------------------------------------------------------------------- */

.story--legal {
  padding-bottom: 8px;
}

.story--legal h1 {
  margin: 0 0 12px;
  color: #151515;
  font-size: clamp(1.625rem, 1.25rem + 1.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.legal-meta {
  margin: 0 0 var(--space-block);
  color: #5a5a5a;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.story--legal h2 {
  margin-top: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.45rem);
}

.story--legal p,
.story--legal li {
  font-size: 1rem;
  line-height: 1.68;
}

.story--legal .lead {
  color: #262626;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer (publisher imprint)
   -------------------------------------------------------------------------- */

.bottom {
  grid-area: footer;
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, var(--column))
    minmax(var(--gutter), 1fr);
  grid-template-areas:
    ". address ."
    ". policies ."
    ". credit .";
  margin-top: clamp(3rem, 2.4rem + 3vw, 5rem);
  padding: 0 0 48px;
  background-color: #ffffff;
  color: #555555;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.bottom__address {
  grid-area: address;
  min-width: 0;
  color: #555555;
}

.bottom__address p {
  margin: 0;
  color: #555555;
}

.bottom__address strong {
  color: #2e2e2e;
  font-weight: 700;
}

.bottom__policies {
  grid-area: policies;
  min-width: 0;
  margin: 12px 0 8px;
}

.bottom__policies ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottom__policies a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #12305a;
  font-size: 0.875rem;
}

.credit-line {
  grid-area: credit;
  min-width: 0;
  margin: 4px 0 0;
  color: #555555;
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   >= 480px
   -------------------------------------------------------------------------- */

@media (min-width: 480px) {
  .masthead__bar {
    padding-top: 16px;
    padding-bottom: 15px;
  }

  .option {
    padding: 22px 24px 8px;
  }

  .method {
    padding: 18px 22px;
  }

  .cta__button {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* --------------------------------------------------------------------------
   >= 768px
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }

  .article {
    padding-top: 30px;
  }

  .story__byline {
    margin-bottom: 12px;
  }

  .story__dek {
    margin-bottom: 28px;
  }

  .figure img {
    border-radius: 10px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas: "copy media";
    gap: 32px;
    align-items: start;
  }

  .split--reverse {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas: "media copy";
  }

  .split__media {
    max-width: none;
    margin: 6px 0 0;
  }

  .compare {
    overflow-x: visible;
  }

  .compare__table {
    display: table;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 0.9375rem;
  }

  .compare__caption {
    display: table-caption;
  }

  .compare__table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    display: table-header-group;
  }

  .compare__table thead th {
    padding: 11px 14px;
    background-color: #12305a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-align: left;
    text-transform: uppercase;
  }

  .compare__table tbody {
    display: table-row-group;
  }

  .compare__table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    border: 0;
    border-radius: 0;
  }

  .compare__table tr:nth-child(even) {
    background-color: #f6f6f6;
  }

  .compare__table tr.compare__focus {
    background-color: #eaf6ee;
    border: 0;
  }

  .compare__table th[scope="row"],
  .compare__table td {
    display: table-cell;
    margin: 0;
    padding: 14px;
    border-top: 1px solid #e0e0e0;
    vertical-align: top;
  }

  .compare__table th[scope="row"] {
    width: 24%;
    font-size: 0.9375rem;
  }

  .compare__table td::before {
    content: none;
  }

  .option {
    margin-bottom: 20px;
  }

  .needs li {
    padding-left: 38px;
  }
}

/* --------------------------------------------------------------------------
   >= 1024px
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .masthead__bar {
    padding: 18px var(--gutter) 16px;
  }

  .article {
    padding-top: 34px;
  }

  .story__title {
    margin-bottom: 18px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  .split--reverse {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .cta__button {
    min-height: 62px;
  }
}

/* --------------------------------------------------------------------------
   Motion preference (accessibility; not a colour-scheme rule)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
