:root {
  --blue: #154f86;
  --blue-deep: #0f4779;
  --blue-soft: #dbe9f8;
  --orange: #FF7A00;
  --orange-soft: #ffead9;
  --yellow: #ffc62b;
  --cream: #fff8ed;
  --ink: #19283b;
  --muted: #5d6674;
  --white: #fff;
  --border: #d8e0e9;
  --shadow: 0 18px 55px rgba(19, 57, 92, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .display {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.015em;
}
h2 { color: var(--blue); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.08; }
p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.container.narrow { width: min(760px, calc(100% - 32px)); }
.section { padding: 76px 0; }
.section-soft { background: rgba(219, 233, 248, .48); }
.eyebrow {
  margin: 0 0 9px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead { max-width: 720px; color: var(--muted); font-size: 1.04rem; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 224, 233, .7);
  background: rgba(255, 248, 237, .92);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { width: 114px; height: auto; }
.status-pill, .tag, .partner-pill, .demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 700;
}
.status-pill { padding: 7px 13px; background: var(--blue-soft); color: var(--blue); font-size: .75rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #104a7e 0%, #124f85 50%, #2e557c 100%);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 118, 34, .2), transparent 32%),
    radial-gradient(circle at 5% 95%, rgba(255, 198, 43, .14), transparent 38%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding: 92px 0; }
.tag { padding: 6px 13px; background: var(--orange); color: var(--white); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; }
.hero h1 { margin: 22px 0 25px; font-size: clamp(3.1rem, 6vw, 4.65rem); line-height: .98; }
.hero h1 strong { display: block; color: var(--yellow); font-weight: 700; }
.hero-copy { max-width: 610px; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #f26713; }
.btn-secondary { border-color: rgba(255,255,255,.28); color: var(--white); background: transparent; }
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--border); background: var(--white); color: var(--blue); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-icon { width: 46px; padding: 0; border-radius: 50%; font-size: 1.35rem; }
.hero-points { display: grid; gap: 14px; }
.hero-point { display: flex; gap: 16px; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(255,255,255,.11); }
.hero-point-icon, .icon-box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 800;
}
.hero-point-icon { width: 48px; height: 48px; background: var(--orange); color: var(--white); }
.hero-point h3 { margin: 0 0 2px; font-size: 1.16rem; }
.hero-point p { margin: 0; color: rgba(255,255,255,.84); font-size: .9rem; }

.process-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(20, 56, 91, .05);
}
.process-card, .feature-card { padding: 26px; }
.process-head { display: flex; align-items: center; gap: 14px; }
.icon-box { width: 46px; height: 46px; background: var(--blue); color: var(--white); }
.step-number { color: var(--orange); font-family: Georgia, serif; font-size: 1.75rem; font-weight: 700; }
.process-card h3, .feature-card h3 { margin: 18px 0 8px; color: var(--blue); font-size: 1.26rem; }
.process-card p, .feature-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.italic-note { margin: 36px 0 0; color: var(--blue); font-family: Georgia, serif; font-size: 1.18rem; font-style: italic; }

.carousel-stage {
  position: relative;
  width: min(100%, 980px);
  height: 580px;
  margin: 30px auto 0;
  overflow: hidden;
  perspective: 1400px;
  touch-action: pan-y;
}
.entity-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 56vw);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.6);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .45s ease, filter .45s ease;
}
.entity-card[data-active="true"] { border-color: rgba(255, 118, 34, .72); }
.entity-card__head { display: flex; align-items: flex-start; gap: 18px; padding: 25px 25px 0; }
.entity-logo { width: 78px; height: 78px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 19px; color: var(--white); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.entity-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.tone-blue { background: var(--blue); }
.tone-orange { background: var(--orange); }
.tone-yellow { background: var(--yellow); color: var(--blue); }
.tone-cream { background: var(--cream); color: var(--blue); }
.entity-card__head .cause { margin: 2px 0 5px; color: var(--orange); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.entity-card h3 { margin: 0; color: var(--blue); font-size: 1.65rem; line-height: 1.08; }
.entity-card__body { flex: 1; padding: 22px 25px; }
.entity-card__body .summary { font-weight: 700; }
.entity-card__body .description { color: var(--muted); font-size: .92rem; }
.entity-card__actions { display: flex; gap: 10px; align-items: center; padding: 16px; border-top: 1px solid var(--border); background: #fbfaf6; border-radius: 0 0 26px 26px; }
.entity-card__actions .btn-primary { margin-left: auto; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.dots { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(21,79,134,.25); cursor: pointer; transition: width .2s ease, background .2s ease; }
.dot[aria-selected="true"] { width: 32px; background: var(--orange); }
.carousel-status { margin: 14px 0 0; color: var(--muted); font-size: .77rem; text-align: center; }

.forest-section { background: rgba(255, 198, 43, .13); }
.forest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.forest-image { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.forest-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.image-label { position: absolute; left: 18px; bottom: 18px; padding: 7px 12px; border-radius: 999px; background: rgba(21,79,134,.88); color: var(--white); font-size: .78rem; font-weight: 700; }
.forest-list { padding: 0; margin: 26px 0; list-style: none; }
.forest-list li { position: relative; padding-left: 27px; margin: 10px 0; }
.forest-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.partner-pill { padding: 10px 15px; border: 1px solid var(--border); background: var(--white); color: var(--blue); font-size: .86rem; box-shadow: 0 4px 12px rgba(20,56,91,.05); }

.form-card { margin-top: 38px; padding: 30px; }
.demo-note { margin-bottom: 24px; padding: 15px 17px; border: 1px solid #f4b777; border-radius: 14px; background: #fff3e7; color: #6e3f13; font-size: .9rem; }
.demo-pill { padding: 4px 9px; margin-right: 6px; background: var(--orange); color: #fff; font-size: .7rem; }
.selected-entity { display: none; align-items: center; gap: 12px; margin-bottom: 22px; padding: 13px; border: 1px solid rgba(255,118,34,.38); border-radius: 16px; background: var(--orange-soft); }
.selected-entity.visible { display: flex; }
.selected-entity .entity-logo { width: 44px; height: 44px; border-radius: 12px; font-size: .82rem; }
.selected-entity strong { color: var(--blue); font-family: Georgia, serif; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .86rem; font-weight: 700; }
.field .hint { margin: -2px 0 7px; color: var(--muted); font-size: .76rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}
.field textarea { min-height: 92px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; font-size: .86rem; }
.consent input { margin-top: 3px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.success-card { display: none; text-align: center; padding: 38px; }
.success-card.visible { display: block; }
.success-check { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: rgba(255,118,34,.14); color: var(--orange); font-size: 1.8rem; font-weight: 900; }

.review-card { position: relative; overflow: hidden; padding: 42px; border: 2px solid rgba(255,118,34,.28); }
.stars { color: var(--orange); letter-spacing: 2px; }
.perks { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 24px 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 9px; font-size: .9rem; }
.perk-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,118,34,.14); color: var(--orange); }
.benefits-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 38px; }
.planet-card { margin-top: 24px; border-style: dashed; }

.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; color: var(--blue); cursor: pointer; font-family: Georgia, serif; font-size: 1.12rem; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-family: Arial, sans-serif; font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

.share { background: var(--blue); color: var(--white); text-align: center; }
.share h2 { color: var(--white); }
.share .lead { margin-inline: auto; color: rgba(255,255,255,.84); }
.share .button-row { justify-content: center; }

.site-footer { border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 48px; padding: 48px 0; }
.footer-grid h3 { color: var(--blue); font-family: Roboto, sans-serif; font-size: .9rem; }
.footer-list { padding: 0; list-style: none; color: var(--muted); font-size: .86rem; }
.footer-list li { margin: 9px 0; }
.footer-list a:hover { color: var(--blue); }
.socials { display: flex; gap: 9px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--blue); text-decoration: none; }
.copyright { padding: 16px; border-top: 1px solid rgba(216,224,233,.7); color: var(--muted); font-size: .74rem; text-align: center; }

dialog { width: min(540px, calc(100% - 28px)); border: 0; border-radius: 24px; padding: 0; box-shadow: 0 30px 90px rgba(7,35,62,.3); }
dialog::backdrop { background: rgba(4, 22, 39, .56); backdrop-filter: blur(4px); }
.modal-inner { padding: 28px; }
.modal-head { display: flex; gap: 16px; align-items: flex-start; }
.modal-head .entity-logo { width: 58px; height: 58px; border-radius: 15px; font-size: .9rem; }
.modal-inner h2 { font-size: 1.7rem; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast { position: fixed; top: 92px; left: 50%; z-index: 90; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .86rem; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.legal-main { padding: 56px 0 76px; }
.legal-prose { font-size: .96rem; line-height: 1.72; }
.legal-prose h2 { margin: 34px 0 10px; font-size: 1.45rem; }
.legal-prose h3 { margin: 24px 0 8px; color: var(--blue); font-size: 1.15rem; }
.legal-prose li { margin-bottom: 7px; }
.legal-prose a { color: var(--blue); text-underline-offset: 2px; }
.review-warning { padding: 14px 16px; margin: 24px 0; border: 1px solid #efbd7b; border-radius: 13px; background: #fff4e7; color: #704515; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--blue-soft); color: var(--blue); }
tr:last-child td { border-bottom: 0; }

@media (max-width: 820px) {
  .hero-inner, .forest-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-inner { padding: 70px 0; }
  .process-grid, .feature-grid { grid-template-columns: 1fr; }
  .entity-card { width: min(520px, 82vw); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 58px 0; }
  .status-pill { max-width: 150px; }
  .hero h1 { font-size: 3rem; }
  .hero-points { margin-top: 4px; }
  .carousel-stage { height: 590px; }
  .entity-card { width: calc(100% - 8px); min-height: 475px; }
  .entity-card__actions { align-items: stretch; flex-direction: column; }
  .entity-card__actions .btn-primary { margin-left: 0; }
  .form-grid, .benefits-main, .footer-grid { grid-template-columns: 1fr; }
  .review-card { padding: 28px 22px; }
  .footer-grid { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Ajustes V02: logos íntegros, redes identificables y fuente local. */
@font-face {font-family:Roboto;src:url("Roboto-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
.socials {flex-wrap:wrap}
.socials a {width:auto;min-height:44px;height:auto;padding:10px 14px;border-radius:24px;font-size:.85rem;font-weight:700}
.socials a:hover,.socials a:focus-visible {background:var(--blue);color:#fff}
.entity-logo.logo-dark img {background:#fff}
.entity-card__head .entity-logo {width:92px;height:92px;border-radius:14px}
.modal-head .entity-logo {width:100px;height:100px;border-radius:14px}
.legal-nav {display:flex;gap:18px;flex-wrap:wrap;justify-content:center;padding:18px}
.legal-prose {overflow-wrap:anywhere}
@media(max-width:620px){.entity-card__head .entity-logo{width:76px;height:76px}.modal-head{align-items:flex-start}.modal-head .entity-logo{width:76px;height:76px}}

/* V03: ajustes solicitados en los comentarios 1-19. */
.site-header .brand-logo {width:154px}
.site-footer .brand-logo {width:180px}
.hero-point-icon {font-size:1.8rem;line-height:1}
.icon-box {font-size:1.75rem;line-height:1}
.perk-icon {font-size:1.4rem;line-height:1}
.process-grid {list-style:none;padding-left:0}
#como-funciona .italic-note,#entidades .italic-note {font-size:clamp(1.35rem,2vw,1.6rem);color:var(--orange);line-height:1.5}
#formulario > .container > div:first-child > .lead {color:var(--orange);font-weight:700;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.forest-grid {align-items:stretch}
.forest-image {min-height:400px}
.forest-image img {position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center}
.benefit-heading {display:flex;align-items:center;gap:16px}
.feature-card .benefit-heading h3 {margin:0;font-size:1.26rem}
.benefit-subtitle {font-family:Georgia,"Times New Roman",serif;font-size:1.26rem;color:var(--blue);line-height:1.3;margin:14px 0 10px}
#compartir .eyebrow {font-size:clamp(1.4rem,3vw,2rem);line-height:1.25;margin-bottom:20px}
#compartir .lead strong {color:var(--orange);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.footer-grid .footer-claim {font-size:1.22rem;line-height:1.5;margin-top:24px}
@media(max-width:820px){.forest-image{min-height:0;aspect-ratio:4/3}.forest-image img{position:absolute}}
@media(max-width:620px){.site-header .brand-logo{width:140px}.header-inner{gap:12px}.status-pill{font-size:.68rem;max-width:145px}.site-footer .brand-logo{width:170px}.benefit-heading{gap:12px}}

/* V04: naranja oficial del brandbook, Georgia y claim ampliado. */
#compartir .eyebrow{color:var(--orange);font-family:Georgia,"Times New Roman",serif;letter-spacing:0}
.footer-grid .footer-claim{font-family:Georgia,"Times New Roman",serif;color:var(--orange);font-size:1.65rem;line-height:1.4}
#selectionForm .form-actions .btn{font-family:Georgia,"Times New Roman",serif;font-size:1.1rem}

/* V05: negrita en los cuatro textos indicados. */
#como-funciona .italic-note, #entidades .italic-note, #compartir .eyebrow, .footer-grid .footer-claim { font-weight: 700; }

/* Responsive content must remain readable without clipping long names. */
.entity-card__head > div, .modal-head > div, .selected-entity > div,
.field, .hero-inner > *, .footer-grid > * { min-width: 0; }
.entity-card h3, .modal-head h2, .selected-entity strong { overflow-wrap: anywhere; }
.consent span { min-width: 0; overflow-wrap: anywhere; }
.consent input { flex-shrink: 0; }
.field select { min-width: 0; max-width: 100%; }
@media (max-width: 620px) {
  .form-card { padding: 22px 18px; }
  .entity-card__head { padding: 20px 18px 0; gap: 12px; }
  .entity-card__body { padding: 20px 18px; }
  .entity-card h3 { font-size: 1.4rem; line-height: 1.15; }
  .modal-head { flex-direction: column; }
  .modal-inner { padding: 22px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3rem); }
  .carousel-controls { gap: 10px; }
  .dots { gap: 6px; }
  .status-pill { flex-shrink: 1; }
  .site-header .brand-logo { max-width: 36vw; }
}
