:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #eef5f2;
  --ink: #182321;
  --muted: #65716d;
  --line: #d8ddd7;
  --accent: #126b57;
  --accent-2: #1847a3;
  --gold: #c88719;
  --coral: #d85c45;
  --mint: #dff3ea;
  --sky: #e3edff;
  --danger: #9b3f10;
  --danger-bg: #fff2e5;
  --shadow: 0 18px 50px rgba(24, 35, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7efe4 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand,
.top-nav,
.site-footer nav,
.trust-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.top-nav {
  gap: 6px;
}

.top-nav a,
.site-footer a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 8px 10px;
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
  background: rgba(18, 107, 87, 0.08);
}

.top-nav a[href="#contacto"] {
  background: rgba(216, 92, 69, 0.1);
  color: var(--coral);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding: 48px 0 28px;
}

.hero-copy {
  padding: 34px 0 10px;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 5.15rem);
  line-height: 0.96;
  max-width: 850px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 700px;
}

.trust-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 10px;
}

.hero-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(18, 107, 87, 0.92), rgba(24, 71, 163, 0.9)),
    var(--ink);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: 148px minmax(0, 1fr);
  padding: 26px;
  min-height: 260px;
}

.macro-plate {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, #ffffff 0 34%, transparent 35%),
    conic-gradient(var(--accent) 0 38%, var(--gold) 38% 72%, var(--coral) 72% 100%);
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 18px 42px rgba(0,0,0,0.18);
  color: var(--ink);
  display: flex;
  justify-content: center;
}

.plate-center {
  background: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 9px 12px;
}

.hero-panel strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.hero-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.ad-slot {
  align-items: center;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  border: 1px dashed rgba(18, 107, 87, 0.35);
  border-radius: 8px;
  color: #706755;
  display: flex;
  font-size: 0.88rem;
  justify-content: center;
  margin: 0 0 24px;
  min-height: 86px;
  text-align: center;
}

.calculator-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
}

.calculator-card,
.results-card,
.content-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator-card {
  border-top: 5px solid var(--accent);
}

.results-card {
  border-top: 5px solid var(--gold);
}

.calculator-card,
.results-card {
  padding: 22px;
}

.results-card {
  position: sticky;
  top: 16px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.compact {
  margin: 24px 0 12px;
}

fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

legend,
label > span,
.field > span {
  color: var(--ink);
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(24, 71, 163, 0.25);
  outline-offset: 2px;
}

.segmented {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  overflow: hidden;
}

.segmented button {
  background: #fbfbf8;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 14px;
}

.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 8px 0 14px;
}

.check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.check input {
  min-height: auto;
  margin-top: 6px;
  width: auto;
}

.check span {
  font-weight: 600;
  margin: 0;
}

.primary-button {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  margin-top: 20px;
  min-height: 52px;
  width: 100%;
}

.primary-button:hover {
  background: #0d5d4b;
}

.hidden {
  display: none;
}

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

.empty-state {
  color: var(--muted);
  min-height: 260px;
}

.result-number {
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  margin: 6px 0 10px;
}

.result-number small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.message {
  background: var(--danger-bg);
  border-radius: 8px;
  color: var(--danger);
  font-size: 0.94rem;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.result-muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.energy-bar {
  background: var(--line);
  border-radius: 999px;
  display: flex;
  height: 18px;
  margin: 18px 0 10px;
  overflow: hidden;
}

.energy-bar span {
  display: block;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.dot {
  border-radius: 3px;
  display: inline-block;
  height: 10px;
  margin-right: 5px;
  width: 10px;
}

.macro-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.macro {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 13px;
  text-align: center;
}

.macro strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
}

.macro span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 4px;
}

.content-band {
  margin-top: 24px;
  padding: 28px;
}

.content-band.muted {
  background: #fbfbf8;
}

.content-band:nth-of-type(4) {
  background:
    linear-gradient(135deg, rgba(227, 237, 255, 0.9), rgba(223, 243, 234, 0.85)),
    #fff;
}

.columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.columns article {
  border-top: 3px solid var(--accent-2);
  padding-top: 14px;
}

.service-intro {
  color: var(--muted);
  max-width: 760px;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.service-card {
  background:
    linear-gradient(180deg, #fff 0, #fbfbf8 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.service-card.featured {
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(18, 107, 87, 0.12);
}

.service-card::before {
  background: var(--sky);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.service-card:nth-child(1)::before {
  background: var(--mint);
}

.service-card:nth-child(2)::before {
  background: var(--sky);
}

.service-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--mint), #ffe8c2, #ffe0dc);
}

.service-icon {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 42px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.price {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.promo-note {
  color: var(--accent);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 8px;
}

.paypal-button {
  background: #ffc439;
  border: 0;
  border-radius: 8px;
  color: #172c57;
  cursor: pointer;
  font-weight: 900;
  margin-top: 12px;
  min-height: 48px;
  width: 100%;
}

.paypal-button:hover {
  background: #f2b821;
}

.fine-print {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 16px 0 0;
}

.contact-band {
  align-items: stretch;
  background:
    linear-gradient(135deg, #17372f, #243f82);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin-top: 24px;
  padding: 28px;
}

.contact-band .eyebrow {
  color: #ffc439;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  margin-top: 8px;
  padding: 10px 12px;
  text-decoration: none;
}

.delivery-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  color: var(--ink);
  padding: 20px;
}

.delivery-card ul {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

.cookie-banner {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 18px 50px rgba(24, 35, 33, 0.18);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 16px;
  margin: 0 auto;
  max-width: 760px;
  padding: 16px;
  position: fixed;
  right: 16px;
  z-index: 20;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.ghost-button,
.primary-small {
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 12px;
}

.ghost-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.primary-small {
  background: var(--accent);
  border: 0;
  color: #fff;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding: 22px 0 34px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  gap: 4px;
  flex-wrap: wrap;
}

.legal-page {
  max-width: 760px;
  padding: 36px 0;
}

.legal-page h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .calculator-layout,
  .columns,
  .service-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .results-card {
    position: static;
  }

  .hero-panel {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .grid.two,
  .macro-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .macro-plate {
    max-width: 150px;
  }

  .calculator-card,
  .results-card,
  .content-band {
    padding: 18px;
  }

  .contact-band {
    padding: 20px;
  }

  .cookie-banner,
  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
