:root {
  color-scheme: light;
  --pine: #123832;
  --pine-deep: #0d302b;
  --pine-light: #cee1cb;
  --ink: #143830;
  --muted: #516662;
  --paper: #fbf8ed;
  --page: #eeebdf;
  --border: #c8d0c2;
  --coral: #ff9279;
  --radius: 12px;
  --headline: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b14630; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.page-header { background: var(--paper); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--pine);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 9px; }
.brand-light { font-family: var(--headline); font-weight: 400; font-style: italic; }
.header-inner nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.header-inner nav a { font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.hero {
  overflow: hidden;
  background-color: var(--pine-deep);
  background-image: radial-gradient(ellipse at 90% 10%, #2c5244, transparent 55%);
  color: var(--paper);
}
.hero-inner {
  min-height: 458px;
  display: grid;
  align-items: center;
  grid-template-columns: 1.12fr .88fr;
  gap: 8%;
  padding-block: 55px;
}
.hero-copy { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  color: #fbb09c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.hero h1 {
  font: 700 clamp(57px, 7.5vw, 110px)/.88 var(--headline);
  letter-spacing: -.075em;
}
.hero h1 em { color: var(--coral); font-weight: inherit; }
.hero-copy p { max-width: 450px; margin-top: 24px; color: #d8e4d8; font-size: clamp(16px, 2.2vw, 19px); }
.hero-copy .button { margin-top: 25px; }
.hero :focus-visible { outline-color: #ffac94; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.button-coral { background: var(--coral); color: #302620; }
.button-coral:hover { background: #ffad9b; }
.button-primary { background: var(--pine); color: var(--paper); }
.button-primary:hover { background: #285b4f; }
.button-outline { background: transparent; border-color: #91a99d; color: var(--pine); }
.button-outline:hover { background: #e3ece1; }
.cover {
  position: relative;
  justify-self: center;
  width: min(100%, 418px);
  isolation: isolate;
}
.cover-shadow {
  position: absolute;
  z-index: -1;
  inset: -15px 14px 2px -20px;
  border: 1px solid #8ba797;
  background-image: repeating-linear-gradient(0deg, transparent 0 20px, #b4c7b42b 20px 21px),
    repeating-linear-gradient(90deg, transparent 0 20px, #b4c7b42b 20px 21px);
  border-radius: 18px;
  transform: rotate(-7deg);
}
.cover-card {
  padding: clamp(19px, 3.1vw, 35px);
  width: 100%;
  background: var(--paper);
  color: var(--pine);
  border-top: 9px solid var(--coral);
  border-radius: 17px;
  box-shadow: 8px 14px 35px #061d16ad;
  transform: rotate(3deg);
}
.cover-top, .cover-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cover-top { font: 700 clamp(25px, 3.4vw, 40px)/1.1 var(--headline); letter-spacing: -.035em; }
.cover-top img { border-radius: 8px; }
.cover-total { margin: 20px 0 0; font: 700 clamp(29px, 4.4vw, 58px)/1.05 var(--headline); letter-spacing: -.05em; overflow-wrap: anywhere; }
.cover-meta, .cover-foot { font-size: 13px; color: var(--muted); }
.cover-drawing { display: grid; gap: 8px; padding-block: 20px 15px; }
.cover-drawing i { background: #b9d1bd; width: 90%; height: 5px; border-radius: 6px; }
.cover-drawing i:nth-child(2) { width: 58%; }
.cover-drawing i:nth-child(3) { width: 79%; }
.cover-drawing i:nth-child(4) { width: 36%; background-color: #ed977e; }
.cover-foot { border-top: 1px dashed var(--border); padding-top: 12px; gap: 6px; flex-wrap: wrap; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(250px, 1fr);
  align-items: start;
  gap: 25px;
  padding-block: 32px 54px;
}
#cotizador, #catalogo { scroll-margin-top: 16px; }
.paper {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(15px, 2.7vw, 30px);
  box-shadow: 0 8px 30px #3040310f;
}
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.section-heading h2, .catalog h2 {
  font: 700 clamp(25px, 3vw, 40px)/1.03 var(--headline);
  letter-spacing: -.045em;
}
.quote-details { display: grid; grid-template-columns: 1.3fr 1fr minmax(118px, .86fr); gap: 12px; }
label, .quote-grid-header, .field-mobile { font-weight: 700; font-size: 13px; }
.optional { font-size: 12px; font-weight: 400; color: var(--muted); }
input, textarea {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 43px;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid #97a99d;
  border-radius: 6px;
  background-color: #fffdf7;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
input::placeholder, textarea::placeholder { color: #5e6e63; }
input[aria-invalid="true"] { border-color: #a63521; background: #fff1e8; }
textarea { resize: vertical; }
.quote-grid-header, .quote-row {
  display: grid;
  grid-template-columns: minmax(105px, 2.3fr) minmax(61px, .8fr) minmax(80px, 1fr) minmax(78px, .9fr) 34px;
  align-items: start;
  gap: 9px;
}
.quote-grid-header {
  margin-top: 23px;
  padding-block: 9px;
  border-block: 1px solid var(--border);
}
.quote-row { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.quote-row input { margin-top: 0; }
.field-mobile { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.source-link { display: inline-block; color: var(--pine); margin-top: 5px; padding-block: 3px; font-size: 12px; text-underline-offset: 2px; }
.line-subtotal { padding-block: 9px; color: var(--pine); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.remove-line {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 43px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 24px;
  line-height: 1;
  color: var(--pine);
  background: transparent;
}
.remove-line:hover { border-color: #b46b58; background: #f9dace; color: #873521; }
.note-field { margin-top: 19px; }
.quote-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid var(--pine);
}
.quote-total span { display: block; font-size: 13px; font-weight: 700; }
.quote-total strong { font: 700 clamp(29px, 4vw, 46px)/1.1 var(--headline); letter-spacing: -.035em; overflow-wrap: anywhere; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-status { margin-top: 10px; color: var(--pine); font-size: 14px; }
.quote-status[data-kind="error"] { color: #9b3425; }
.catalog {
  position: relative;
  padding: 23px clamp(15px, 2.2vw, 25px);
  border-radius: var(--radius);
  background: #dce8d9;
  border: 1px solid #a8beab;
}
.catalog h2 { font-size: 28px; }
.catalog > p { margin-block: 8px 16px; font-size: 14px; color: #405c51; }
.catalog .catalog-status { margin: 14px 0 0; }
.catalog-list { display: grid; padding: 0; list-style: none; margin: 8px 0 0; }
.catalog-item { min-width: 0; display: grid; gap: 7px; padding-block: 12px; border-bottom: 1px solid #a8beab; }
.catalog-item:last-child { border-bottom: 0; }
.catalog-item strong { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.catalog-info { color: #47645a; font-size: 13px; overflow-wrap: anywhere; }
.catalog-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; }
.catalog-actions .button { min-height: 42px; font-size: 13px; padding: 6px 12px; }
.catalog-actions a { font-weight: 700; font-size: 12px; text-underline-offset: 3px; }
#catalog-search:disabled { opacity: .7; }
#catalog-more { margin-top: 10px; }
.page-footer { background: var(--paper); color: var(--muted); border-top: 1px solid var(--border); }
.page-footer .wrap { display: flex; flex-wrap: wrap; gap: 7px 22px; align-items: center; padding-block: 17px; font-size: 13px; }
.page-footer strong { color: var(--pine); }

dialog {
  width: min(calc(100% - 22px), 680px);
  max-height: 92dvh;
  padding: clamp(11px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--pine);
}
dialog::backdrop { background: #0d241ed2; }
.dialog-header, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-header { margin-bottom: 9px; }
.dialog-header h2 { font: 700 25px var(--headline); }
.dialog-footer { justify-content: end; margin-top: 14px; flex-wrap: wrap; }
.proposal {
  padding: clamp(13px, 3.2vw, 29px);
  background: #fffdf7;
  border-top: 6px solid var(--coral);
  border-radius: 7px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.proposal-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.proposal h3 { font: 700 clamp(27px, 5vw, 40px)/1.08 var(--headline); margin-block: 7px 12px; }
.proposal p { margin-block: 5px; white-space: pre-wrap; }
.proposal-lines { list-style: none; padding: 0; margin: 13px 0; border-top: 1px solid var(--border); }
.proposal-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding-block: 8px; gap: 8px; border-bottom: 1px solid var(--border); }
.proposal-line small { display: block; color: var(--muted); }
.proposal-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px; font-weight: 700; }
.proposal-total strong { font: 700 31px var(--headline); }
.proposal [data-proposal-note] { margin-top: 12px; }
#print-content { display: none; }

@media (max-width: 960px) {
  .workspace { gap: 15px; grid-template-columns: minmax(0, 1.7fr) minmax(225px, 1fr); }
  .quote-row, .quote-grid-header { grid-template-columns: minmax(82px, 1.8fr) 56px minmax(63px, 1fr) minmax(54px, .8fr) 30px; gap: 6px; }
  .quote-row input { padding-inline: 6px; }
  .quote-row .remove-line { width: 30px; }
}
@media (max-width: 780px) {
  .hero-inner { min-height: 0; gap: 5%; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner { min-height: 59px; }
  .header-inner nav a { font-size: 12px; }
  .brand { font-size: 18px; gap: 5px; }
  .brand img { width: 33px; height: 33px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 36px 38px; }
  .hero h1 { font-size: clamp(54px, 13vw, 70px); }
  .hero-tag { font-size: 11px; }
  .hero-copy p, .hero-copy .button { margin-top: 16px; }
  .cover { width: min(87%, 355px); }
  .cover-shadow { inset: -5px 8px 0 -13px; }
  .workspace { padding-block: 20px 35px; }
  .quote-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .quote-details label:first-child { grid-column: 1 / -1; }
  .quote-grid-header { display: none; }
  .quote-row {
    grid-template-columns: minmax(50px, 1fr) minmax(65px, 1.15fr) minmax(61px, 1fr) 36px;
    min-width: 0;
    gap: 5px 7px;
    padding-block: 10px;
    align-items: end;
  }
  .quote-row:first-child { margin-top: 12px; border-top: 1px solid var(--border); }
  .quote-row .field-line { grid-column: 1 / -1; align-self: start; }
  .field-mobile { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: block; font-size: 12px; margin-bottom: 3px; }
  .line-subtotal { padding-bottom: 0; min-height: 63px; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0; }
  .line-subtotal [data-subtotal] { display: grid; align-items: center; min-height: 43px; }
  .quote-row .remove-line { width: 36px; }
  .quote-footer { align-items: start; }
  .quote-actions { flex: 1 1 100%; }
  .quote-actions .button { flex: 1 1 138px; min-width: 0; font-size: 14px; padding-inline: 8px; }
}
@media (max-width: 350px) {
  .header-inner { gap: 6px; }
  .header-inner nav { gap: 7px; }
  .quote-details { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  @page { margin: 18mm; }
  body { background: white; }
  body > :not(#print-content) { display: none !important; }
  #print-content { display: block; }
  .proposal { border-color: black; padding: 0; background: white; color: black; }
  .proposal-line { break-inside: avoid; }
}

.enlaces-editoriales { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: center; }
.enlaces-editoriales a { color: inherit; padding-block: .35rem; text-decoration: underline; text-underline-offset: .2em; }
.red-ecosistema { margin: 1.75rem auto 2rem; padding: clamp(1rem, 3vw, 1.45rem); border: 1px solid #b9c9bc; border-radius: .65rem; background: #fffdf5; color: #152d25; overflow-wrap: anywhere; }
.vitrina-kicker { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #255947; }
.red-ecosistema h2 { margin: .25rem 0 .45rem; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.5vw, 1.7rem); line-height: 1.2; }
.vitrina-lead { margin: 0 0 1.15rem; max-width: 72ch; color: #3d574b; }
.vitrina-lead a, .vitrina-sublinks a { color: #255947; font-weight: 700; text-underline-offset: .2em; }
.vitrina-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: .85rem; }
.vitrina-card { min-width: 0; padding: 1rem 1.1rem; border: 1px solid #cbd9cd; border-left: 4px solid #f19779; border-radius: .5rem; background: #eef1e8; display: flex; flex-direction: column; gap: .48rem; }
.vitrina-card.is-featured { border-color: #173d32; border-left-width: 5px; background: #f5f7ef; }
.vitrina-tag { align-self: flex-start; padding: .18rem .55rem; border-radius: 999px; background: #dce8d9; color: #152d25; font-size: .73rem; font-weight: 800; }
.vitrina-card.is-featured .vitrina-tag { background: #173d32; color: #faf3df; }
.vitrina-card h3 { margin: 0; font-size: 1.04rem; line-height: 1.28; }
.vitrina-card h3 a { color: #152d25; font-weight: 800; text-underline-offset: .2em; }
.vitrina-desc { margin: 0; font-size: .9rem; color: #3d574b; }
.vitrina-benefits { margin: 0 0 auto; padding-inline-start: 1.15rem; font-size: .85rem; color: #152d25; display: grid; gap: .22rem; }
.vitrina-bono { margin: .35rem 0 0; padding: .58rem .72rem; border: 1px dashed #9fb5a5; border-radius: .45rem; background: #fffdf5; font-size: .84rem; line-height: 1.4; color: #152d25; }
.vitrina-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .7rem; margin-top: .25rem; }
.vitrina-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .48rem .88rem; border-radius: .45rem; background: #173d32; color: #faf3df; font-weight: 750; font-size: .86rem; text-decoration: none; }
.vitrina-card.is-featured .vitrina-cta { background: #f19779; color: #292218; }
.vitrina-sublinks { font-size: .8rem; }
.vitrina-restringida { margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed #b9c9bc; border-radius: .5rem; background: #f7f8f2; }
.vitrina-restringida-summary { cursor: pointer; font-weight: 750; font-size: .88rem; color: #3d574b; }
.vitrina-adult-note { margin: .5rem 0 .8rem; font-size: .83rem; color: #3d574b; }
