:root {
  --green-900: #0f3d14;
  --green-800: #14561a;
  --green-600: #238a23;
  --green-100: #e6f2e2;
  --green-50: #f4f9f2;
  --ink: #1b2a1c;
  --muted: #55645a;
  --line: #d9e5d5;
  --bg: #ffffff;
  --accent: #f2b632;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 86, 26, .12);
  --font-head: "Rozha One", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-800); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; letter-spacing: .01em; line-height: 1.2; color: var(--green-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
.topbar { background: var(--green-900); color: #dcebd8; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; }
.brand .b-ico { height: 46px; }
.brand .b-txt { height: 40px; }
.brand b { font-family: var(--font-head); font-size: 1.35rem; color: var(--green-800); letter-spacing: .02em; line-height: 1; }
.brand small { display: block; font-family: var(--font-head); font-size: .66rem; letter-spacing: .22em; color: var(--green-600); text-transform: uppercase; margin-top: 3px; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
nav.main a:hover { background: var(--green-50); }
nav.main a[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--green-800); margin: 5px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 800; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-wa { background: #25d366; color: #073b1c; }
.btn-ghost { border-color: var(--green-600); color: var(--green-800); background: transparent; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { background: linear-gradient(135deg, #ffffff 0%, var(--green-50) 100%); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(380px, 80%); filter: drop-shadow(0 20px 30px rgba(20,86,26,.2)); }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(35,138,35,.08); }
.page-head { background: linear-gradient(135deg, var(--green-900), var(--green-800)); color: #fff; padding: 56px 0 48px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #cfe3ca; max-width: 62ch; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #a9c8a3; }
.crumbs a { color: #d6ecd1; }

/* Sections */
section.block { padding: 72px 0; }
section.alt { background: var(--green-50); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 28px; height: 28px; stroke: var(--green-800); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin-bottom: .6em; }
.more { font-weight: 800; color: var(--green-600); }
.step { counter-increment: s; position: relative; }
.step::before { content: counter(s); font-family: var(--font-head); font-size: 2.6rem; color: var(--green-600); opacity: .35; position: absolute; right: 22px; top: 8px; }
.steps { counter-reset: s; }

/* Insurers */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos.big { grid-template-columns: repeat(3, 1fr); }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; height: 96px; display: grid; place-items: center; padding: 16px; }
.logos.big .logo-tile { height: 130px; }
.logo-tile img { width: 100%; height: 56px; object-fit: contain; }
.logos.big .logo-tile img { height: 80px; }
.logo-tile .txt { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--green-800); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff; border-radius: 24px; padding: 48px; display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #dff0da; }

/* Lists / content */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 34px; position: relative; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.aside { background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge { background: var(--green-100); color: var(--green-800); font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: #fff; margin-bottom: 12px; }
summary { font-weight: 800; cursor: pointer; color: var(--green-900); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Forms */
form { display: grid; gap: 16px; }
label { font-weight: 800; font-size: .92rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(35,138,35,.25); border-color: var(--green-600); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; }
.contact-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-600); }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 800; }

/* Footer */
footer.site { background: var(--green-50); border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 24px; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
footer.site h4 { color: var(--green-900); font-family: var(--font-head); margin: 0 0 12px; }
footer.site a { color: var(--ink); text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--green-600); }
footer.site .legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #073b1c; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .15s; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; fill: currentColor; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .wrap { padding: 48px 0; }
  .hero-art img { width: 200px; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logos.big { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px; }
}
@media (max-width: 600px) {
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; }
  section.block { padding: 52px 0; }
  .topbar .hide-sm { display: none; }
  footer.site .cols { grid-template-columns: 1fr; }
  .brand .b-ico { height: 38px; }
  .brand .b-txt { height: 32px; }
}

/* El logo de Quálitas es vertical: darle más altura */
.logo-tile img[src*="qualitas"] { height: 66px; }
.logos.big .logo-tile img[src*="qualitas"] { height: 98px; }

/* Imágenes */
.hero-art .hero-photo { width: min(400px, 100%); height: auto; aspect-ratio: 9 / 16; max-height: 560px; object-fit: cover; border-radius: 28px 28px 120px 28px; box-shadow: 0 24px 50px rgba(20,86,26,.25); filter: none; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: 28px 28px 120px 28px; background: linear-gradient(160deg, var(--green-600), var(--green-900)); opacity: .9; z-index: 0; max-width: 400px; margin: auto; }
.hero-art img { position: relative; z-index: 1; }
.card.has-img { padding: 0; overflow: hidden; }
.card-img { overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
a.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 26px 26px; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .hero-art .hero-photo { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-position: 50% 75%; border-radius: 24px 24px 80px 24px; } .hero-art::before { display: none; } }
