:root {
  color-scheme: light;
  --green: #006800;
  --dark: #143220;
  --body: #3c5143;
  --pale: #f2f7f1;
  --lime: #66ed61;
  --line: #d8e4d9;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--dark);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; line-height: 1.55; }
img, video { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #29823c; outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 5; background: #fff; padding: .75rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
html { scroll-padding-top: calc(var(--header-height, 5rem) + .75rem); }
.header { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
.nav, .split { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.nav { min-height: 5rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle { display: none; }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--dark); font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.brand small { display: block; color: #472800; font-size: .875rem; }
.nav nav { display: flex; gap: 1.7rem; }
.nav nav a { text-decoration: none; color: var(--dark); font-weight: 650; }
.nav nav a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .65rem 1.15rem; background: var(--green); color: white; border: 1px solid var(--green); border-radius: .6rem; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { background: #004d00; color: #fff; }
.button:disabled { opacity: .7; cursor: wait; }
.button.small { font-size: .875rem; min-height: 2.75rem; }
.outline { background: transparent; color: var(--green); }
.hero { position: relative; isolation: isolate; display: grid; align-content: center; min-height: clamp(34rem, 72vh, 55rem); padding-block: clamp(4rem, 8vw, 7rem); background: #143220 url("portada.webp") 60% center / cover no-repeat; color: #fff; }
.hero-video, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { z-index: -2; object-fit: cover; object-position: 60% center; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, rgba(8, 25, 15, .94) 0%, rgba(8, 25, 15, .79) 48%, rgba(8, 25, 15, .18) 100%); }
.hero h1 { max-width: 14ch; }
.hero .intro { color: #fff; }
.hero .eyebrow { color: var(--lime); }
.hero .outline { color: #fff; border-color: #fff; }
.hero .outline:hover { background: #fff; color: var(--dark); }
.eyebrow { color: var(--green); font-weight: 750; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5.8vw, 5rem); margin-top: .6rem; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { font-size: 1.4rem; }
p, dd { color: var(--body); }
.intro { font-size: 1.15rem; margin-top: 1.3rem; max-width: 41ch; }
.actions, .form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.section { padding-block: clamp(2.75rem, 6vw, 5.3rem); }
.pale { background: var(--pale); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.card, .form-card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card p { margin-block: .75rem 1.2rem; }
.card a { margin-top: auto; font-weight: 700; }
.process, .quote { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.process p, .quote > div > p, .coverage p { margin-block: .9rem 1.3rem; }
.process dl > div { border-top: 1px solid var(--line); padding-block: .8rem; }
dt { font-weight: 800; }
summary { cursor: pointer; font-weight: 700; }
.coverage { background: var(--dark); color: #fff; }
.coverage p { color: #e3eee3; max-width: 56ch; }
.coverage .button { background: var(--lime); color: var(--dark); border-color: transparent; flex-shrink: 0; }
.coverage .button:hover { background: #a5f8a0; }
.form-card { background: var(--pale); }
fieldset { min-width: 0; margin: 0 0 1.1rem; padding: 0; border: 0; }
legend { font-weight: 800; margin-bottom: .65rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
label { display: block; font-weight: 650; font-size: .9rem; }
label span { font-weight: 400; }
.full { grid-column: 1 / -1; }
input, select, textarea { display: block; width: 100%; min-height: 2.8rem; margin-top: .25rem; padding: .55rem; border: 1px solid #839787; border-radius: .45rem; background-color: #fff; color: var(--dark); font: inherit; font-size: 1rem; }
textarea { resize: vertical; }
.notice { border: 1px solid currentColor; padding: .8rem; border-radius: .45rem; }
.notice ul { margin-bottom: 0; }
.success { color: var(--green); }
.error { color: #9a2722; margin-bottom: 1rem; }
.footer { background: #102219; border-top: 1px solid #355244; color: #fff; padding-block: 2.2rem; }
.footer-layout, .footer-brand { display: flex; align-items: center; gap: 1.25rem; }
.footer-layout { justify-content: space-between; }
.footer-brand > a { flex: none; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; padding: .25rem; background: #fff; border-radius: .6rem; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; }
.footer-copy { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.footer a { color: var(--lime); }
.footer-credit { color: #c5d4ca; font-size: .875rem; }
@media (max-width: 48rem) {
  .footer-layout { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 48rem) {
  html { --header-height: 7rem; }
  .process, .quote { grid-template-columns: 1fr; }
  .hero::before { background: rgba(8, 25, 15, .76); }
  .cards { grid-template-columns: 1fr; }
  .split { align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; padding-block: .7rem; gap: .6rem; }
  .nav nav { order: 3; width: 100%; gap: 1.3rem; }
  .nav-quote-extra { display: none; }
  .nav-ready .nav { flex-wrap: nowrap; min-height: 4rem; }
  .nav-ready .menu-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: #fff;
    color: var(--dark);
    cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; }
  .menu-toggle span::before { transform: translateY(-6px); }
  .menu-toggle span::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
  .nav-ready nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: .5rem max(1rem, calc((100% - 72rem) / 2));
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 .6rem 1rem #1432201a;
  }
  .nav-ready.menu-open nav { display: grid; gap: 0; }
  .nav-ready nav a { display: block; padding: .7rem .5rem; }
}
@media (max-width: 30rem) {
  .wrap { width: calc(100% - 2rem); }
  .fields { grid-template-columns: 1fr; }
  .brand { font-size: .9rem; gap: .4rem; }
  .brand img { width: 40px; height: 40px; }
}
.coverage-form { display: grid; gap: .65rem; width: min(100%, 20rem); flex-shrink: 0; }
.coverage-form .button { justify-self: start; }

.policy-lead { max-width: 62ch; margin-block: 1rem .6rem; font-size: 1.15rem; }
.policy-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.policy-index { position: sticky; top: 6rem; display: grid; gap: .45rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--pale); }
.policy-body section { padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.policy-body section:first-child { padding-top: 0; }
.policy-body h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.policy-body p { margin-top: .65rem; }
.policy-body ul { padding-inline-start: 1.3rem; color: var(--body); }
@media (max-width: 48rem) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-index { position: static; }
}

.policy-hero { min-height: clamp(20rem, 52vh, 32rem); background-image: url("privacidad.webp"); }
.policy-hero h1 { max-width: none; }
.policy-hero p { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .menu-toggle {
    transition: background-color .18s ease, color .18s ease, transform .14s ease;
  }
  .button:active, .menu-toggle:active { transform: scale(.97); }
  .nav-ready.menu-open nav { animation: menu-enter .18s ease-out; }
  @keyframes menu-enter {
    from { opacity: 0; transform: translateY(-.35rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  background: radial-gradient(ellipse 20rem 16rem at center, #edf7ed, #fff 85%);
  animation: loader-timeout 0s 5.5s forwards;
}

.loader-logo {
  position: relative;
  width: min(17.5rem, 70vw, 65vh);
  height: auto;
  mix-blend-mode: multiply;
}

.loader-logo img { width: 100%; height: auto; }
.loader-icons { display: none; }

.skip-page-loader .page-loader { display: none; }

.page-loader.is-ready {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.loader-progress { display: grid; justify-items: center; gap: .55rem; color: var(--body); font-size: .875rem; }

.loader-track {
  display: block;
  overflow: hidden;
  width: min(7rem, 35vw);
  height: .2rem;
  border-radius: 1rem;
  background: var(--line);
}

.loader-track::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #328a3d);
}

@keyframes loader-timeout {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: no-preference) {
  .loader-logo { animation: loader-logo-enter .5s ease-out both; }
  .loader-icons { display: block; }
  .loader-icons span {
    position: absolute;
    inset: 0;
    background: url("logo-carga.webp") center / 100% 100% no-repeat;
    filter: grayscale(1) contrast(.65) brightness(1.22);
    animation: loader-icon-light .4s ease-out both;
  }
  .loader-icons span:nth-child(1) { clip-path: inset(78.5% 74% 0 0); animation-delay: .85s; }
  .loader-icons span:nth-child(2) { clip-path: inset(78.5% 50% 0 26%); animation-delay: 1.85s; }
  .loader-icons span:nth-child(3) { clip-path: inset(78.5% 26% 0 50%); animation-delay: 2.85s; }
  .loader-icons span:nth-child(4) { clip-path: inset(78.5% 0 0 74%); animation-delay: 3.85s; }
  @keyframes loader-icon-light {
    to { opacity: 0; }
  }
  .page-loader.is-ready { transition: opacity .3s ease, visibility .3s; }
  .loader-track::after {
    transform-origin: left center;
    animation: loading-line 5s linear both;
  }
  @keyframes loader-logo-enter {
    from { opacity: 0; transform: translateY(.45rem) scale(.98); }
    to { opacity: 1; transform: none; }
  }
  @keyframes loading-line {
    from { transform: scaleX(.05); }
    to { transform: scaleX(1); }
  }
}
