:root {
  color-scheme: light;
  --green: #84bf41;
  --green-bright: #b6f271;
  --green-hover: #70a237;
  --green-pressed: #518e06;
  --green-light: #e7f2da;
  --secondary-dark: #b5bfa8;
  --secondary-hover: #f4f9ec;
  --secondary-active: #dce8cd;
  /* Darker ink for small brand accents on light surfaces. */
  --green-dark: #426c0a;
  --ink: #191919;
  --muted: #757575;
  --disabled: #b3b3b3;
  --disabled-hover: #8f8f8f;
  --surface: #fff;
  --background: #fcfcfc;
  --line: #b8bab7;
  --line-soft: color-mix(in srgb, var(--line) 38%, var(--surface));
  --error: #c51111;
  --accent: #4a94d9;
  --accent-dark: #0067a6;
  --pin-store: #f3d63e;
  --screen: rgb(0 0 0 / 20%);
  --shadow-1: 0 1px 2px rgb(25 25 25 / 12%);
  --shadow-2: 0 2px 6px rgb(25 25 25 / 12%);
  --shadow-3: 0 4px 12px rgb(25 25 25 / 14%);
  --shadow-4: 0 8px 24px rgb(25 25 25 / 16%);
  --radius: 8px;
  --pill: 24px;
  --circle: 50%;
  --avatar-small: 1.25rem;
  --avatar-large: 5rem;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --type-display: clamp(2rem, 1.65rem + 1.5vw, 2.5rem);
  --type-heading: clamp(1.25rem, 1.1rem + .65vw, 1.5rem);
  --type-body: 1rem;
  --type-label: .875rem;
  --type-caption: .8125rem;
  --target: 2.75rem;
  --page-width: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  font-family: -apple-system, BlinkMacSystemFont, "SF UI Text", "SF Pro Text", system-ui, Roboto, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: var(--type-body); line-height: 1.5; }
button, input, select, textarea, dialog { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--green-dark); }
p { margin: var(--space-2) 0 0; line-height: 1.5; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
h1 { font-size: var(--type-display); letter-spacing: -.025em; }
h2 { font-size: var(--type-heading); letter-spacing: -.015em; }
h3 { font-size: 1.125rem; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
main, .header, .footer-grid { width: min(100% - var(--gutter) * 2, var(--page-width)); margin-inline: auto; }
.directory { padding-block: clamp(1.4rem, 5vw, 3rem) 3rem; min-height: 54vh; }
.site-header { position: relative; z-index: 1000; background: var(--surface); box-shadow: var(--shadow-2); }
.header { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding-block: var(--space-2); }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; }
.wordmark img { display: block; width: 7.5rem; height: auto; }
.brand-vertical { display: block; width: 5.375rem; height: auto; }
.sign-in-brand .brand-vertical { margin-inline: auto; }
.menu-toggle { display: none; }
.header nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.header nav a { display: inline-flex; align-items: center; min-height: var(--target); padding-inline: .18rem; font-size: var(--type-label); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.header nav a:hover, .header nav [aria-current] { border-color: var(--green); color: var(--green-dark); }
.header .nav-entry { padding-inline: .65rem; color: var(--green-dark); }
.site-footer { background: var(--green-light); }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: var(--space-4); padding-block: var(--space-5); }
.footer-grid nav { display: grid; gap: .45rem; align-content: start; overflow-wrap: anywhere; }
.footer-grid div p, .footer-grid nav a { font-size: var(--type-label); }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-grid h2 { font-size: 1rem; margin-bottom: .15rem; }

.map-page { width: 100%; }
.map-stage { height: clamp(30rem, 73vh, 49rem); height: clamp(30rem, 73svh, 49rem); background: #ecefec; }
.map-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-page .editorial-hero { width: min(100% - var(--gutter) * 2, var(--page-width)); margin: 2.6rem auto; }
.editorial-hero { display: grid; grid-template-columns: 1fr minmax(0, .93fr); gap: clamp(1.5rem, 6vw, 5.5rem); align-items: center; padding: 1rem 0 1.7rem; margin-bottom: 1.2rem; }
.editorial-hero h1 { max-width: 23ch; }
.editorial-hero h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.editorial-hero p { max-width: 48ch; }
.editorial-hero .actions { margin-top: 1.1rem; }
.editorial-hero figure { position: relative; isolation: isolate; margin: 1rem 1rem 0 .7rem; }
.editorial-hero figure::before, .editorial-hero figure::after { position: absolute; content: ""; z-index: -1; border-radius: 1rem; width: 60%; height: 83%; }
.editorial-hero figure::before { background: var(--green); right: -1rem; top: -.7rem; }
.editorial-hero figure::after { background: var(--green-light); left: -.7rem; bottom: -.65rem; }
.editorial-hero img { object-fit: cover; object-position: center 57%; aspect-ratio: 1.75; width: 100%; height: auto; display: block; border-radius: var(--radius); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: 1.5rem; }
.plans h2 { color: var(--green-dark); }
.plans a { display: inline-block; margin-top: .7rem; }
#encontrar { scroll-margin-top: 1rem; }

.primary, .button-outline, .tab-button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); padding: var(--space-2) var(--space-3); border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-size: var(--type-label); font-weight: 650; text-decoration: none; cursor: pointer; }
.primary { color: var(--ink); background: var(--green); }
.primary:hover { color: var(--ink); background: var(--green-hover); }
.primary:active { color: #000; background: var(--green-pressed); }
.button-outline { color: var(--green-dark); background: var(--surface); border-color: var(--green); }
.button-outline:hover { color: var(--green-dark); background: var(--secondary-hover); }
.button-outline:active { background: var(--secondary-active); }
.primary, .button-outline { font-size: var(--type-caption); letter-spacing: .035em; text-transform: uppercase; line-height: 1.25; }
button:disabled, button:disabled:active { cursor: not-allowed; color: var(--ink); background: var(--disabled); border-color: var(--disabled); }
button:disabled:hover { color: var(--ink); background: var(--disabled-hover); border-color: var(--disabled-hover); }
.text-link { color: var(--green-dark); font-weight: 600; }
.text-link:hover { background: var(--secondary-hover); }
.text-link:active { background: var(--secondary-active); }
.panel > .button-outline, .panel > .actions, .panel > .primary { margin-top: .85rem; }
.catalog-heading { padding-block: .35rem 1.35rem; }
.catalog-heading p { max-width: 62ch; }
.search, .fields > label { display: grid; gap: .4rem; font-size: var(--type-label); font-weight: 600; }
.search { max-width: 34rem; margin-top: .7rem; }
.catalog-tools { display: flex; align-items: end; gap: .85rem; flex-wrap: wrap; }
.catalog-tools .search { flex: 1 1 15rem; }
.catalog-tools #results-status { order: 3; flex-basis: 100%; }
.catalog-tools #results-status:empty { display: none; }
.catalog-filter { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; gap: .4rem; font-size: var(--type-label); font-weight: 600; }
.catalog-filter select { min-width: 0; max-width: 100%; min-height: var(--target); padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; }
.search input, .fields input:not([type='checkbox']), .fields textarea, .fields select { width: 100%; min-height: var(--target); padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; }
.fields textarea { resize: vertical; }
.fields :is(input, textarea, select):focus-visible, .search input:focus-visible, .catalog-filter select:focus-visible { border-color: var(--green-pressed); outline: 2px solid var(--green-pressed); outline-offset: 1px; }
.fields :is(input, textarea, select):user-invalid, .fields [aria-invalid="true"] { border-color: var(--error); }
.fields :disabled { color: var(--muted); background: var(--background); cursor: not-allowed; }
.fields { display: grid; gap: var(--space-3); }
.fields > .primary { justify-self: start; }
.fields .check-label { display: flex; align-items: center; gap: .45rem; }
.check-label input { accent-color: var(--green-dark); width: 1.06rem; height: 1.06rem; flex: none; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--space-3); list-style: none; padding: 0; }
.result-card { display: flex; flex-direction: column; height: 100%; min-height: 5.5rem; overflow: hidden; border-radius: var(--radius); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-1); border: 1px solid var(--line-soft); }
.result-card:hover, .result-card:focus-visible { border-color: var(--green); box-shadow: var(--shadow-2); }
.result-card img { display: block; width: 100%; aspect-ratio: 2.1; object-fit: cover; }
#catalog-list:not([data-owner]) a[href^='/geneticas/'] img { object-fit: contain; }
.result-body { display: grid; gap: var(--space-1); padding: var(--space-3); overflow-wrap: anywhere; }
.result-body small, .fine-print { color: var(--muted); font-size: var(--type-caption); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.6rem; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; font-size: var(--type-label); color: var(--muted); }
.store-profile { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--radius); overflow: hidden; }
.store-intro { text-align: center; padding: 1.6rem 1rem; }
.store-intro p img { vertical-align: middle; }
.store-intro .actions { justify-content: center; margin-top: .8rem; }
.strain-intro { margin: 1.3rem 0 .9rem; }
.strain-photo { margin: 1rem 0; text-align: center; }
.strain-photo img { height: min(34vh, 19rem); object-fit: contain; }
.strain-photo figcaption { color: var(--muted); font-size: .85rem; }
.tag { color: var(--green-dark); font-size: var(--type-label); font-weight: 600; }
.cover-photo { margin: 0; }
.cover-photo img { display: block; width: 100%; max-height: 18rem; aspect-ratio: 3.3; object-fit: cover; }
.cover-photo figcaption { padding: .35rem 1rem; font-size: .84rem; color: var(--muted); text-align: right; }
.section-tabs { display: flex; align-items: stretch; flex-wrap: wrap; gap: .6rem; border-bottom: 1px solid var(--line); margin: .9rem 0 1rem; }
.section-tabs a, .section-tabs .tab-button { border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: .65rem .85rem; text-decoration: none; }
.section-tabs a:hover, .section-tabs a[aria-selected="true"], .section-tabs .tab-button[aria-pressed='true'] { color: var(--green-dark); border-color: var(--green); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); padding: clamp(var(--space-3), 3vw, var(--space-4)); margin-bottom: 1rem; overflow-wrap: anywhere; }
.panel > h3 { margin-top: 1.1rem; }
.panel > .fields { margin-top: .75rem; }
.panel > .text-link { display: inline-block; margin-top: .5rem; }
.facts { margin: .65rem 0; }
.facts div { display: grid; grid-template-columns: minmax(8rem, .7fr) 1fr; gap: .55rem; padding: .65rem 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; }
.sources { margin: .75rem 0; padding-left: 1.25rem; }
.sources li { margin: .45rem 0; }
.credits details { padding: .68rem 0; border-bottom: 1px solid var(--line); }
.credits summary { cursor: pointer; font-weight: 650; }
.credits pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--type-label); }

.portal-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: 1.3rem; }
.portal-status:not(:empty) { margin-block: .65rem 1.15rem; }
.portal-status.error { color: var(--error); }
.sign-in { max-width: 26rem; margin-inline: auto; }
.sign-in .primary { justify-self: stretch; }
.sign-in-brand { text-align: center; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--space-3); margin-bottom: 1rem; }
.stat { display: grid; gap: .3rem; margin-bottom: 0; }
.stat strong { color: var(--green-dark); font-size: 1.75rem; }
.stat span { font-size: var(--type-label); }
.claim-row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(9rem, 1fr) auto; gap: var(--space-2) var(--space-3); align-items: center; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.claim-row .fine-print, .contact-data { display: block; }
.badge { background: var(--green-light); color: var(--green-dark); padding: .25rem .55rem; border-radius: var(--pill); font-size: var(--type-caption); width: fit-content; }
.review-card { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.review-card header { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.review-card .fields { margin-top: .85rem; }
.official-reply { margin-top: .85rem; padding: .75rem; border-left: 3px solid var(--green); background: var(--green-light); border-radius: var(--radius); }
.written-text, #business-description, #business-hours { white-space: pre-wrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 48rem) {
  .header { justify-content: start; flex-wrap: wrap; }
  .header nav { gap: .1rem .75rem; }
  .header nav a { font-size: .87rem; }
  .with-menu { justify-content: space-between; }
  .with-menu .menu-toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); padding-inline: var(--space-3); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; cursor: pointer; }
  .menu-toggle::after { content: ""; width: .48rem; height: .48rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.12rem) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] { background: var(--green-light); border-color: var(--green); }
  .menu-toggle[aria-expanded='true']::after { transform: translateY(.12rem) rotate(225deg); }
  .with-menu .menu-toggle[aria-expanded='false'] + nav { display: none; }
  .with-menu nav { position: absolute; top: 100%; inset-inline: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-3); padding: var(--space-2) var(--gutter) var(--space-3); background: var(--surface); box-shadow: var(--shadow-3); }
  .with-menu nav a { min-height: var(--target); padding-inline: var(--space-2); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: 1fr; gap: 0; }
  .claim-row { grid-template-columns: 1fr 1fr; }
  .claim-row .actions { grid-column: 1 / -1; }
}
@media (max-width: 33rem) {
  .editorial-hero, .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cover-photo img { aspect-ratio: 2.35; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
}

.account-banner { display: grid; justify-items: center; gap: .6rem; padding: 1.3rem; text-align: center; background: var(--green-light); border-radius: var(--radius); }
.account-avatar { display: grid; place-items: center; width: var(--avatar-large); height: var(--avatar-large); border: 2px solid var(--green); border-radius: var(--circle); background: var(--surface); object-fit: cover; color: var(--green-dark); font-size: 2rem; }
.account-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-3); align-items: start; }
.account-columns label { min-width: 0; }
.account-item { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding-block: .75rem; border-bottom: 1px solid var(--line); }

.legal-document { max-width: 52rem; padding-block: var(--space-5) 4rem; overflow-wrap: anywhere; }
.legal-document :is(h2, h3) { margin: var(--space-5) 0 var(--space-2); }
.legal-document li { margin-block: var(--space-1); }
.legal-document p { margin-block: var(--space-3); }
.legal-document details { margin-block: var(--space-4); padding: var(--space-3); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.legal-document summary { cursor: pointer; font-weight: 600; }
.legal-document a { color: var(--green-dark); }
.legal-document table { width: 100%; border-collapse: collapse; margin-block: var(--space-3); }
.legal-document :is(th, td) { text-align: start; vertical-align: top; border: 1px solid var(--line); padding: var(--space-2); }
.legal-document th { background: var(--green-light); }
.legal-document .table-wrap { max-width: 100%; overflow-x: auto; }
@media print {
  .site-header, .site-footer, .legal-document details { display: none; }
  .legal-document { width: 100%; max-width: none; padding: 0; font-size: 12pt; }
  .legal-document :is(h1, h2, h3) { break-after: avoid; }
  .legal-document p { orphans: 3; widows: 3; }
}
