/* COBO Pharmacy · inner pages (line pages, Cómo comprar, Contacto, Nosotros, Términos).
   Kept out of styles.css so the homepage and product pages load only what they use. */

/* Inner pages */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--teal-50) 100%); border-bottom: 1px solid var(--line); padding: 0 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 18px 0 .3em; }
.page-hero__lede { color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 38em; margin: 0; }
.page-hero__meta { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-weight: 700; color: var(--blue-900); }
.page-hero__meta .ic { color: var(--blue); }
.page-hero--split .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero__img picture { display: contents; }
.page-hero__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); margin-top: 22px; }
.section--tight { padding-top: clamp(32px, 5vw, 48px); }
.filter { display: grid; gap: 14px; margin-bottom: 8px; }
.search--filter { max-width: 520px; margin: 0; }
.filter .chips { margin: 0; }
.contact__more { margin: 22px 0 0; color: var(--muted); }

/* Closing call to action */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius); background: linear-gradient(160deg, var(--blue) 0%, var(--blue-900) 100%); color: #d7e3f2; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 36em; }
.cta-band :focus-visible { outline-color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

/* Cómo comprar */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--blue); margin-bottom: 16px; }
.cards3 .card h3 { font-size: 1.2rem; }
.cards3 .card p { color: var(--muted); margin: 0; }
.cards__source { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
/* Nosotros: the full principles read better two to a row, icon beside the text */
.values--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.values--full .value { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; align-items: start; }
.values--full .value picture { display: contents; }
.values--full .value img { grid-row: 1 / span 2; margin: 0; }
.card--link { display: block; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.card--link:hover { box-shadow: var(--shadow); border-color: #c9d6ea; color: inherit; }
.page-hero__actions { margin-top: 22px; }

/* Page not found: search first, then the main sections */
.nf .wrap { padding-top: clamp(36px, 6vw, 72px); }
.nf h1 { margin-top: 0; }
.nf__search { margin: 28px 0 22px; }
.nf__en { margin: -8px 0 0; color: var(--muted); }
.nf__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; }
.nf__link { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.nf__link .card__ic { margin: 0; }
.nf__link h3 { font-size: 1.15rem; margin-bottom: .3em; }
.nf__link p { color: var(--muted); margin: 0; }

/* Legal text: their terms, with a contents list that follows along on wide screens */
.legal { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal__toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 20px 22px; }
.legal__toc-h { font: 600 1.05rem var(--font-head); color: var(--blue-900); cursor: pointer; list-style: none; }
.legal__toc-h::-webkit-details-marker { display: none; }
.legal__toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; font-size: .93rem; }
.legal__toc a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.legal__toc a:hover { color: var(--blue); text-decoration: underline; }
.legal__toc .toc__h2 a { font-weight: 700; color: var(--blue-900); margin-top: 8px; }
.legal__toc .toc__h3 a { padding-left: 12px; }
.legal__body { max-width: 760px; }
.legal__note { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; color: var(--muted); }
.legal__title { font: 600 1.05rem/1.45 var(--font-head); color: var(--blue-900); margin: 22px 0 1.4em; }
.legal__body h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 1.6em 0 .6em; scroll-margin-top: 100px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.12rem; margin: 1.5em 0 .5em; scroll-margin-top: 100px; }
.legal__body p, .legal__body li { color: #333c55; }
.legal__body ul { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--wa); border-bottom: 2.5px solid var(--wa); transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .page-hero--split .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero__img { max-width: 560px; }
  .cards3 { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; max-height: none; }
}
@media (max-width: 767px) {
  .page-hero h1 { margin-top: 12px; }
  .page-hero__img img { aspect-ratio: 2 / 1; margin-top: 0; }
  .cta-band .btn { flex: 1 1 100%; }
  .values--full { grid-template-columns: minmax(0, 1fr); }
  .values--full .value { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
  .nf .btn-row .btn { flex: 1 1 100%; }
  .nf__links { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nf__link { padding: 20px; column-gap: 14px; }
}
