:root {
  --ink: #13201d;
  --muted: #60706b;
  --line: #dfe7e3;
  --paper: #fbfcf9;
  --white: #ffffff;
  --forest: #143d35;
  --teal: #0f7c72;
  --gold: #b5893e;
  --blue: #295b8d;
  --mint: #dff2eb;
  --soft: #eef4f1;
  --shadow: 0 24px 60px rgba(19, 32, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(223, 231, 227, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.legal-logo {
  width: 250px;
  height: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 12px;
  color: #2d3c38;
  border-radius: 8px;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
}

.hero,
.service-hero,
.path-section,
.service-grid-section,
.workflow,
.action-zone,
.conversion-band {
  padding-inline: clamp(18px, 5vw, 72px);
}

.split-hero {
  min-height: calc(100vh - 83px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 48px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 750;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.22;
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #40504c;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(19, 32, 29, 0.12);
}

.button.primary {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
}

.button.secondary {
  background: var(--white);
}

.hero-panel {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-panel img {
  width: min(100%, 560px);
  filter: drop-shadow(0 28px 36px rgba(19, 32, 29, 0.16));
}

.home-hero {
  min-height: calc(100vh - 83px);
  display: grid;
  align-content: center;
  gap: clamp(24px, 3vw, 42px);
  padding: 34px clamp(18px, 5vw, 72px) 42px;
  color: #263238;
  background:
    radial-gradient(circle at 14% 12%, rgba(169, 196, 204, 0.42), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(226, 233, 235, 0.85), transparent 27%),
    linear-gradient(145deg, #f9fafa 0%, #edf4f6 54%, #dfeaed 100%);
}

.home-heading {
  max-width: 980px;
}

.home-heading .eyebrow {
  color: #789aa4;
}

.home-heading h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

.home-heading .lead {
  color: #596a70;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: clamp(430px, 58vh, 650px);
}

.home-route-card {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  gap: clamp(18px, 2.5vw, 30px);
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-route-card::after {
  content: "→";
  position: absolute;
  right: 30px;
  bottom: 24px;
  color: var(--gold);
  font-size: 2rem;
  font-style: normal;
  transition: transform 0.24s ease;
}

.home-route-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -34% 42%;
  height: 260px;
  border-radius: 999px;
  background: rgba(169, 196, 204, 0.16);
  pointer-events: none;
}

.home-route-card:hover {
  transform: translateY(-10px);
  border-color: rgba(15, 124, 114, 0.34);
  box-shadow: 0 34px 80px rgba(19, 32, 29, 0.16);
}

.home-route-card:hover::after {
  transform: translateX(6px);
}

.legal-route {
  color: #263238;
  background:
    radial-gradient(circle at 88% 10%, rgba(169, 196, 204, 0.22), transparent 24%),
    linear-gradient(145deg, #ffffff 0%, #f4f8f9 58%, #e7f0f2 100%);
  border-color: rgba(169, 196, 204, 0.38);
}

.advisory-route {
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(181, 137, 62, 0.12), transparent 24%),
    linear-gradient(145deg, #ffffff 0%, #f4f7f8 100%);
}

.advisory-route .route-kicker {
  color: #0a4b43;
}

.advisory-route strong {
  color: #092f2a;
}

.advisory-route span:not(.route-kicker):not(.route-icon) {
  color: #243b36;
  font-weight: 650;
}

.advisory-route em {
  color: #0a4b43;
}

.route-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-route .route-kicker,
.legal-route span:not(.route-icon),
.legal-route em {
  color: #263238;
}

.legal-route .route-kicker,
.legal-route em {
  color: #789aa4;
}

.route-brand-logo {
  position: relative;
  z-index: 1;
  width: min(290px, 74%);
  height: auto;
  margin-top: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(169, 196, 204, 0.36);
  border-radius: 8px;
}

.route-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 6px 0 0;
  color: var(--ink);
  background: #f1d98b;
  border-radius: 8px;
  font-weight: 900;
}

.home-route-card strong {
  display: block;
  max-width: 720px;
  font-size: clamp(2.2rem, 4.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-route-card span:not(.route-kicker):not(.route-icon) {
  max-width: 640px;
  margin-top: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.home-route-card em {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--teal);
  font-style: normal;
  font-weight: 850;
}

.path-section,
.service-grid-section,
.workflow {
  padding-block: 70px;
}

.tutela-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  padding: 72px clamp(18px, 5vw, 72px);
  background: #f4f8f5;
  border-block: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading.compact {
  display: block;
  max-width: 880px;
}

.path-grid,
.service-grid,
.steps {
  display: grid;
  gap: 16px;
}

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

.path-card,
.service-card,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.path-card {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.path-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% 42%;
  height: 220px;
  border-radius: 999px;
  background: rgba(15, 124, 114, 0.16);
}

.path-card.energy-card::after {
  background: rgba(181, 137, 62, 0.22);
}

.card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 42px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  font-weight: 850;
}

.energy-card .card-icon {
  background: var(--blue);
}

.path-card p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.path-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 22px;
  font-weight: 800;
  color: var(--teal);
}

.conversion-band,
.action-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 48px clamp(18px, 5vw, 72px) 70px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--forest);
  color: var(--white);
  border-radius: 8px;
}

.conversion-band .eyebrow,
.action-zone .eyebrow {
  color: #9bd8c9;
}

.conversion-band h2,
.action-zone h2 {
  max-width: 820px;
}

.action-zone p:not(.eyebrow) {
  max-width: 760px;
  color: #d6e4df;
  line-height: 1.55;
}

.contact-zone {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
  gap: 24px;
  align-items: center;
  margin: 48px clamp(18px, 5vw, 72px) 70px;
  padding: clamp(24px, 4vw, 42px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(19, 32, 29, 0.08);
}

.contact-zone h2 {
  max-width: 620px;
}

.contact-zone p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
}

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

.contact-item {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--ink);
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-item[href^="mailto:"] strong {
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.35;
}

.service-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 36px;
  padding-block: 54px;
  background-color: var(--soft);
  background-image: linear-gradient(115deg, rgba(251, 252, 249, 0.98) 0%, rgba(251, 252, 249, 0.82) 48%, rgba(223, 242, 235, 0.5) 100%);
}

.service-hero.legal-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  color: var(--white);
  background-color: #092f2a;
  background-image:
    radial-gradient(circle at 82% 16%, rgba(181, 137, 62, 0.26), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(15, 124, 114, 0.34), transparent 32%),
    linear-gradient(135deg, #08231f 0%, #143d35 48%, #0f7c72 100%);
  background-size: cover;
  background-position: center;
}

.service-hero.legal-hero::before,
.service-hero.legal-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service-hero.legal-hero::before {
  inset: 16px clamp(18px, 7vw, 120px) auto auto;
  width: min(38vw, 440px);
  height: min(60vw, 520px);
  background: url("assets/legal-watermark.svg") center / contain no-repeat;
  opacity: 0.95;
}

.service-hero.legal-hero::after {
  display: none;
}

.service-copy {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.legal-hero .eyebrow {
  color: #a9e0d3;
}

.legal-hero .lead {
  color: #dcebe6;
}

.legal-hero .button.secondary {
  color: var(--ink);
  border-color: #f4df9c;
  background: #f4df9c;
}

.service-copy h1 {
  font-size: clamp(2.8rem, 6.5vw, 6.7rem);
}

.service-visual {
  width: min(100%, 480px);
  justify-self: center;
  filter: drop-shadow(0 24px 34px rgba(19, 32, 29, 0.16));
}

.energy-brand-page .service-visual {
  border-radius: 16px;
  filter: brightness(0) invert(1);
  box-shadow: none;
}

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

.service-card {
  min-height: 230px;
  padding: 24px;
  cursor: pointer;
}

.service-card.highlight {
  background: var(--mint);
  border-color: #baded4;
}

.tag {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-card p:not(.tag),
.steps p {
  color: var(--muted);
  line-height: 1.55;
}

.area-link {
  margin-top: 18px;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.area-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 32, 29, 0.45);
  backdrop-filter: blur(8px);
}

.area-modal[hidden] {
  display: none;
}

.area-modal-card {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 42px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(19, 32, 29, 0.24);
}

.area-modal-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.area-modal-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.area-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #f4f8f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

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

.steps article {
  padding: 24px;
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 28px;
  color: var(--white);
  background: var(--teal);
  border-radius: 999px;
  font-weight: 800;
}

.person-flow {
  background: linear-gradient(180deg, #fbfcf9 0%, #f4f8f5 100%);
}

.section-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.step-field {
  display: block;
  margin-top: 18px;
}

.step-field textarea,
.step-field input {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.step-field textarea {
  min-height: 132px;
  resize: vertical;
}

.step-button {
  margin-top: 18px;
}

.step-note {
  padding-top: 14px;
  border-top: 1px solid var(--legal-line, var(--line));
  font-size: 0.92rem;
  font-weight: 750;
}

.enterprise-section {
  position: relative;
  overflow: hidden;
  padding: 94px clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 124, 114, 0.42), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(244, 223, 156, 0.22), transparent 24%),
    linear-gradient(140deg, #071f1c 0%, #123b34 52%, #0b5e55 100%);
  border-block: 1px solid rgba(223, 242, 235, 0.18);
}

.enterprise-section::before {
  content: "";
  position: absolute;
  inset: 24px clamp(18px, 5vw, 72px) auto auto;
  width: min(32vw, 420px);
  height: 180px;
  border: 1px solid rgba(223, 242, 235, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.enterprise-section > * {
  position: relative;
  z-index: 1;
}

.enterprise-heading {
  max-width: 980px;
  margin: 0 auto 34px;
  text-align: center;
}

.enterprise-heading h2 {
  font-size: clamp(2rem, 4.3vw, 4rem);
}

.enterprise-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 18px auto 0;
  color: #dcebe6;
  font-size: 1.08rem;
  line-height: 1.58;
}

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

.plan-card {
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 242, 235, 0.26);
  border-radius: 8px;
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(15, 124, 114, 0.32);
  box-shadow: 0 28px 70px rgba(19, 32, 29, 0.14);
}

.featured-plan {
  min-height: 0;
  padding-top: 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 4%, rgba(181, 137, 62, 0.34), transparent 28%),
    linear-gradient(145deg, #102f2a 0%, #143d35 54%, #0f7c72 100%);
  border-color: rgba(169, 224, 211, 0.34);
  box-shadow: 0 30px 76px rgba(19, 61, 53, 0.28);
}

.featured-plan:hover {
  box-shadow: 0 38px 88px rgba(19, 61, 53, 0.34);
}

.recommended-label {
  position: absolute;
  top: 16px;
  right: 18px;
  margin: 0;
  padding: 7px 11px;
  color: var(--ink);
  background: #f4df9c;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  color: var(--teal);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 900;
}

.plan-logo {
  width: 58px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
  opacity: 0.78;
}

.featured-plan .plan-logo {
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.featured-plan .plan-icon {
  color: var(--ink);
  background: #f4df9c;
}

.plan-card h3 {
  font-size: 1.6rem;
}

.plan-subtitle {
  min-height: 52px;
  color: var(--teal);
  font-weight: 800;
  line-height: 1.35;
}

.plan-card > p:not(.plan-price):not(.recommended-label):not(.plan-subtitle) {
  color: var(--muted);
  line-height: 1.58;
}

.featured-plan .plan-subtitle,
.featured-plan > p:not(.plan-price):not(.recommended-label):not(.plan-subtitle),
.featured-plan li {
  color: #dcebe6;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 999px;
}

.featured-plan li::before {
  background: #f4df9c;
}

.plan-price {
  margin: 8px 0 18px;
  font-size: 1.8rem;
  font-weight: 900;
}

.plan-footnote {
  margin: auto 0 18px;
  padding-top: 12px;
  color: #5b6b70;
  border-top: 1px solid rgba(169, 196, 204, 0.34);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.featured-plan .plan-footnote {
  color: #e7f0f2;
  border-top-color: rgba(255, 255, 255, 0.22);
}

.plan-card .button {
  margin-top: auto;
}

.plans-note {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 20px 24px;
  color: #dcebe6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(223, 242, 235, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(19, 32, 29, 0.07);
  text-align: center;
  line-height: 1.58;
}

.tutela-section > div > p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.tutela-toggle {
  margin-top: 24px;
}

.tutela-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tutela-form[hidden] {
  display: none;
}

.tutela-form label,
.tutela-form legend,
.rights-dropdown summary {
  color: #2d3c38;
  font-size: 0.92rem;
  font-weight: 760;
}

.tutela-form input,
.tutela-form select,
.tutela-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 12px;
  color: var(--ink);
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.tutela-form textarea {
  resize: vertical;
  min-height: 150px;
}

.rights-dropdown {
  padding: 0;
}

.rights-dropdown summary {
  cursor: pointer;
  padding: 14px 16px;
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rights-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  margin-top: 10px;
  padding: 14px;
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-field {
  padding: 16px;
  background: #fff8e5;
  border: 1px solid #e7d39a;
  border-radius: 8px;
}

.file-field small {
  display: block;
  margin-top: 8px;
  color: #6d5a28;
  line-height: 1.45;
}

.power-fields,
.review-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: #f4f8f5;
  border: 1px solid #cddfd7;
  border-radius: 8px;
}

.power-fields[hidden],
.review-fields[hidden] {
  display: none;
}

.power-fields .button {
  align-self: end;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.form-note {
  margin: -4px 0 0;
  color: #6d5a28;
  font-size: 0.9rem;
  font-weight: 700;
}

.is-disabled {
  opacity: 0.52;
}

.full-field {
  grid-column: 1 / -1;
}

.tutela-form fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tutela-form legend {
  padding: 0 8px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}

.choice input {
  width: auto;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.whatsapp-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.whatsapp-hint {
  max-width: 230px;
  padding: 12px 14px;
  color: #2d3c38;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(19, 32, 29, 0.14);
  font-size: 0.9rem;
}

.whatsapp-panel {
  width: min(350px, calc(100vw - 36px));
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(19, 32, 29, 0.22);
}

.whatsapp-panel-header {
  display: flex;
  gap: 14px;
  padding: 20px;
  color: #ffffff;
  background: #25d366;
}

.whatsapp-panel-header svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-panel-header strong,
.whatsapp-panel-header span {
  display: block;
}

.whatsapp-panel-header strong {
  font-size: 1.08rem;
}

.whatsapp-panel-header span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.45;
}

.whatsapp-panel-body {
  padding: 18px;
}

.whatsapp-panel-body p {
  margin: 0 0 14px;
  color: #9aa7ad;
  font-size: 0.82rem;
}

.whatsapp-contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f4f6f7;
  border-left: 3px solid #25d366;
  border-radius: 8px;
}

.whatsapp-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  background: #25d366;
  border-radius: 999px;
}

.whatsapp-avatar svg,
.whatsapp-mini svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.whatsapp-contact-card strong,
.whatsapp-contact-card small {
  display: block;
}

.whatsapp-contact-card strong {
  color: #526066;
}

.whatsapp-contact-card small {
  margin-top: 3px;
  color: #8a989e;
  line-height: 1.35;
}

.whatsapp-mini {
  color: #25d366;
}

.floating-whatsapp {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: #138a64;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 900;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

@media (max-width: 940px) {
  .site-header,
  .site-footer,
  .conversion-band,
  .action-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-hero,
  .home-card-grid,
  .service-hero,
  .section-heading,
  .path-grid,
  .service-grid,
  .steps,
  .plans-grid,
  .tutela-section,
  .tutela-form,
  .contact-zone,
  .contact-grid,
  .rights-options,
  .power-fields,
  .review-fields {
    grid-template-columns: 1fr;
  }

  .split-hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: auto;
  }

  .service-hero {
    min-height: auto;
  }

  .home-route-card {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding-inline: 9px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .service-copy h1 {
    font-size: clamp(2.45rem, 12vw, 4.25rem);
  }

  .hero-actions,
  .action-list {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .path-section,
  .service-grid-section,
  .workflow,
  .tutela-section {
    padding-block: 48px;
  }
}

.legal-brand-page {
  --legal-ink: #263238;
  --legal-muted: #6f7d82;
  --legal-line: #e2e9eb;
  --legal-paper: #f9fafa;
  --legal-accent: #a9c4cc;
  --legal-deep: #263238;
  background: var(--legal-paper);
  color: var(--legal-ink);
}

.legal-brand-page .site-header {
  background: rgba(249, 250, 250, 0.95);
  border-bottom-color: rgba(226, 233, 235, 0.95);
}

.legal-brand-page .brand {
  gap: 14px;
}

.legal-brand-page .brand strong {
  color: var(--legal-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-brand-page .brand small {
  color: var(--legal-accent);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.legal-brand-page .nav-links a {
  color: var(--legal-ink);
}

.legal-brand-page .nav-links a:hover,
.legal-brand-page .nav-links a.active {
  background: #eef4f6;
}

.legal-brand-page .legal-hero {
  color: var(--legal-ink);
  background:
    radial-gradient(circle at 86% 14%, rgba(169, 196, 204, 0.35), transparent 26%),
    linear-gradient(135deg, #f9fafa 0%, #eef4f6 55%, #e4eef1 100%);
}

.legal-brand-page .legal-hero::before {
  background: url("assets/legal-watermark.svg") center / contain no-repeat;
}

.legal-brand-page .legal-hero::after {
  display: none;
}

.legal-brand-page .legal-hero .eyebrow,
.legal-brand-page .eyebrow,
.legal-brand-page .tag {
  color: #789aa4;
}

.legal-brand-page .legal-hero .lead {
  color: #596a70;
}

.legal-brand-page .button.primary {
  border-color: var(--legal-deep);
  background: var(--legal-deep);
}

.legal-brand-page .legal-hero .button.secondary {
  color: var(--legal-ink);
  border-color: var(--legal-accent);
  background: #ffffff;
}

.legal-brand-page .enterprise-section {
  color: var(--legal-ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(169, 196, 204, 0.28), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef4f6 100%);
  border-block-color: var(--legal-line);
}

.legal-brand-page .enterprise-heading p:not(.eyebrow) {
  color: var(--legal-muted);
}

.legal-brand-page .plans-note {
  color: var(--legal-ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--legal-line);
}

.legal-brand-page .featured-plan {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 4%, rgba(169, 196, 204, 0.24), transparent 28%),
    linear-gradient(145deg, #263238 0%, #42565d 100%);
}

.legal-brand-page .featured-plan li,
.legal-brand-page .featured-plan > p:not(.plan-price):not(.recommended-label):not(.plan-subtitle),
.legal-brand-page .featured-plan .plan-subtitle {
  color: #ffffff;
}

.legal-brand-page .featured-plan li::before {
  background: #a9c4cc;
}

.legal-brand-page .plan-icon,
.legal-brand-page .steps span {
  color: var(--legal-ink);
  background: #e4eef1;
}

.legal-brand-page .service-card,
.legal-brand-page .steps article,
.legal-brand-page .tutela-form,
.legal-brand-page .plan-card:not(.featured-plan),
.legal-brand-page .contact-zone,
.legal-brand-page .contact-item {
  border-color: var(--legal-line);
  box-shadow: 0 18px 46px rgba(38, 50, 56, 0.08);
}

.legal-brand-page .contact-zone {
  background: #ffffff;
}

.legal-brand-page .contact-item {
  background: #f9fafa;
}

.legal-brand-page .contact-item span {
  color: #789aa4;
}

.legal-brand-page .contact-item strong {
  color: var(--legal-ink);
}

.legal-brand-page .area-link {
  color: #789aa4;
}

.legal-brand-page .area-modal-card {
  border-color: var(--legal-line);
}

.legal-brand-page .area-modal-card p:not(.eyebrow) {
  color: var(--legal-muted);
}

.energy-brand-page {
  --energy-black: #070a0b;
  --energy-panel: #111516;
  --energy-panel-soft: #171d1f;
  --energy-line: #273033;
  --energy-green: #65c832;
  --energy-green-soft: #d8ff7a;
  --energy-muted: #b8c0c2;
  color: #ffffff;
  background: var(--energy-black);
}

.energy-brand-page .site-header {
  background: rgba(7, 10, 11, 0.94);
  border-bottom-color: rgba(101, 200, 50, 0.2);
}

.energy-header-logo {
  width: min(330px, 64vw);
  height: auto;
  border-radius: 8px;
}

.energy-brand-page .nav-links a {
  color: #eef4f0;
}

.energy-brand-page .nav-links a:hover,
.energy-brand-page .nav-links a.active {
  color: #07100b;
  background: var(--energy-green);
}

.energy-brand-page .energy-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 18%, rgba(101, 200, 50, 0.28), transparent 24%),
    radial-gradient(circle at 20% 82%, rgba(101, 200, 50, 0.16), transparent 30%),
    linear-gradient(145deg, #020303 0%, #070a0b 44%, #131a1c 100%);
}

.energy-brand-page .energy-hero::before {
  content: "";
  position: absolute;
  inset: 32px clamp(18px, 6vw, 92px) auto auto;
  width: min(36vw, 440px);
  height: min(36vw, 440px);
  border: 1px solid rgba(101, 200, 50, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(101, 200, 50, 0.28) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(101, 200, 50, 0.18) 50%, transparent 51%);
  opacity: 0.8;
}

.energy-brand-page .service-copy,
.energy-brand-page .service-visual {
  position: relative;
  z-index: 1;
}

.energy-hero-logo {
  width: min(620px, 88vw);
  height: auto;
  margin: 0 0 30px;
  border-radius: 8px;
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.36);
}

.energy-brand-page .eyebrow,
.energy-brand-page .tag {
  color: var(--energy-green);
}

.energy-brand-page .lead,
.energy-brand-page .section-copy,
.energy-brand-page .service-card p:not(.tag),
.energy-brand-page .steps p,
.energy-brand-page .action-zone p:not(.eyebrow) {
  color: var(--energy-muted);
}

.energy-brand-page .button.primary {
  color: #07100b;
  border-color: var(--energy-green);
  background: var(--energy-green);
}

.energy-brand-page .button.secondary {
  color: #ffffff;
  border-color: rgba(101, 200, 50, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.energy-brand-page .service-grid-section,
.energy-brand-page .workflow {
  background:
    radial-gradient(circle at 12% 4%, rgba(101, 200, 50, 0.1), transparent 25%),
    linear-gradient(180deg, #090d0e 0%, #111516 100%);
}

.energy-brand-page .service-card,
.energy-brand-page .steps article {
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 8%, rgba(101, 200, 50, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(23, 29, 31, 0.96), rgba(12, 16, 17, 0.96));
  border-color: rgba(101, 200, 50, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.energy-brand-page .service-card.highlight {
  background:
    radial-gradient(circle at 88% 8%, rgba(101, 200, 50, 0.24), transparent 28%),
    linear-gradient(145deg, #151d18 0%, #0b130e 100%);
  border-color: rgba(101, 200, 50, 0.42);
}

.energy-brand-page .area-link,
.energy-brand-page .home-route-card em {
  color: var(--energy-green);
}

.energy-brand-page .steps span {
  color: #07100b;
  background: var(--energy-green);
}

.energy-brand-page .action-zone {
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(101, 200, 50, 0.2), transparent 24%),
    linear-gradient(145deg, #080b0c 0%, #151c1e 100%);
  border-color: rgba(101, 200, 50, 0.2);
}

.energy-brand-page .site-footer {
  color: #d7dedf;
  background: #070a0b;
  border-top-color: rgba(101, 200, 50, 0.2);
}

.energy-pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.energy-pillars .service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.energy-pillars .service-card h3 {
  max-width: 420px;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.ev-simulator {
  position: relative;
  overflow: hidden;
  padding-top: clamp(42px, 7vw, 92px);
  background:
    radial-gradient(circle at 88% 10%, rgba(101, 200, 50, 0.2), transparent 28%),
    radial-gradient(circle at 14% 88%, rgba(101, 200, 50, 0.1), transparent 30%),
    linear-gradient(180deg, #070a0b 0%, #101617 100%);
}

.ev-simulator--first {
  min-height: calc(100vh - 83px);
  display: grid;
  align-content: start;
}

.wizard-shell {
  position: relative;
  max-width: 1180px;
  margin-top: 34px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(101, 200, 50, 0.18);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.wizard-progress span {
  position: relative;
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #7d888b;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-weight: 850;
  transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.wizard-progress span.active,
.wizard-progress span.done {
  color: #07100b;
  background: var(--energy-green);
  border-color: var(--energy-green);
  box-shadow: 0 0 34px rgba(101, 200, 50, 0.24);
}

.ev-wizard-form {
  min-height: 520px;
}

.wizard-step {
  display: grid;
  gap: 22px;
  animation: wizardFade 0.28s ease both;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step h3 {
  max-width: 860px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.ev-value-field {
  display: grid;
  gap: 12px;
  max-width: 640px;
  color: #ffffff;
  font-weight: 800;
}

.ev-value-field input,
.ev-final-grid select,
.ev-final-grid input,
.ev-final-grid textarea {
  width: 100%;
  color: #ffffff;
  background: rgba(7, 10, 11, 0.72);
  border: 1px solid rgba(101, 200, 50, 0.24);
  border-radius: 8px;
  outline: none;
  font: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.ev-value-field input {
  min-height: 76px;
  padding: 16px 20px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 850;
}

.ev-final-grid input,
.ev-final-grid select,
.ev-final-grid textarea {
  margin-top: 8px;
  padding: 13px 14px;
}

.ev-value-field input:focus,
.ev-final-grid select:focus,
.ev-final-grid input:focus,
.ev-final-grid textarea:focus {
  border-color: var(--energy-green);
  box-shadow: 0 0 0 4px rgba(101, 200, 50, 0.12);
  background: rgba(7, 10, 11, 0.9);
}

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

.ev-results article {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background:
    radial-gradient(circle at 86% 12%, rgba(101, 200, 50, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(101, 200, 50, 0.16);
  border-radius: 8px;
}

.ev-results span {
  color: var(--energy-muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ev-results strong {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.ev-disclaimer {
  max-width: 720px;
  margin: 0;
  color: #8f999b;
  font-size: 0.92rem;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.wizard-back {
  width: max-content;
  margin: 0 0 2px;
  padding: 0;
  color: var(--energy-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wizard-back:hover {
  color: var(--energy-green);
  transform: translateX(-3px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 14px;
}

.choice-button {
  min-height: 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 12%, rgba(101, 200, 50, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(101, 200, 50, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 850;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.choice-button:hover,
.choice-button.active {
  transform: translateY(-2px);
  color: #07100b;
  background: var(--energy-green);
  border-color: var(--energy-green);
}

.upme-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  animation: wizardFade 0.26s ease both;
}

.upme-panel[hidden] {
  display: none;
}

.upme-panel details,
.we-handle {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(101, 200, 50, 0.16);
  border-radius: 8px;
}

.upme-panel summary,
.upme-panel h4,
.we-handle h4 {
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.upme-panel h4,
.we-handle h4 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.ev-final-grid select option {
  color: #111516;
  background: #ffffff;
}

.document-accordion {
  display: grid;
  gap: 12px;
}

.document-grid.document-accordion {
  max-width: none;
}

.upload-accordion {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(101, 200, 50, 0.16);
  border-radius: 8px;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.upload-accordion:hover {
  transform: translateY(-1px);
  border-color: rgba(101, 200, 50, 0.34);
}

.upload-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.upload-accordion summary::-webkit-details-marker {
  display: none;
}

.upload-accordion p {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--energy-muted);
  line-height: 1.5;
}

.upload-accordion strong[data-upload-status] {
  min-width: max-content;
  padding: 6px 9px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upload-accordion strong[data-upload-status].loaded {
  color: #07100b;
  background: var(--energy-green);
  border-color: var(--energy-green);
}

.drop-zone {
  display: grid;
  min-height: 116px;
  place-items: center;
  margin: 0 18px 18px;
  padding: 18px;
  color: #dfe8e2;
  background: rgba(7, 10, 11, 0.56);
  border: 1px dashed rgba(101, 200, 50, 0.38);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.drop-zone::after {
  content: "Seleccionar archivo";
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-top: 12px;
  padding: 8px 12px;
  color: #07100b;
  background: var(--energy-green);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.drop-zone.dragging,
.drop-zone.loaded {
  background: rgba(101, 200, 50, 0.1);
  border-color: var(--energy-green);
  box-shadow: 0 0 0 4px rgba(101, 200, 50, 0.1);
}

.drop-zone input {
  display: none;
}

.premium-checklist {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.premium-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--energy-muted);
  line-height: 1.45;
}

.premium-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 15px;
  height: 15px;
  border: 1px solid var(--energy-green);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(101, 200, 50, 0.2);
}

.premium-checklist small {
  display: block;
  margin-top: 2px;
  color: #7f898b;
}

.document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-top: 0;
}

.ev-final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ev-final-grid label {
  color: #dfe8e2;
  font-size: 0.92rem;
  font-weight: 760;
}

.ev-final-grid .full-field,
.full-field {
  grid-column: 1 / -1;
}

.payment-actions {
  align-items: stretch;
}

.payment-actions .button {
  min-width: 180px;
}

.ev-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ev-summary article,
.wizard-confirmation {
  padding: 22px;
  background:
    radial-gradient(circle at 86% 12%, rgba(101, 200, 50, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(101, 200, 50, 0.16);
  border-radius: 8px;
}

.ev-summary span {
  display: block;
  margin-bottom: 12px;
  color: var(--energy-green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ev-summary strong,
.ev-summary small {
  display: block;
}

.ev-summary strong {
  color: #ffffff;
  font-size: 1.2rem;
}

.ev-summary small {
  margin-top: 8px;
  color: var(--energy-muted);
  line-height: 1.45;
}

.wizard-confirmation {
  animation: wizardFade 0.28s ease both;
}

.wizard-confirmation h3 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
}

.wizard-confirmation p:not(.tag) {
  max-width: 720px;
  color: var(--energy-muted);
  line-height: 1.6;
}

@keyframes wizardFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.electrolinera-section {
  padding: 94px clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 90% 10%, rgba(101, 200, 50, 0.14), transparent 28%),
    linear-gradient(180deg, #0a0f10 0%, #111819 100%);
  border-top: 1px solid rgba(101, 200, 50, 0.16);
}

.electrolinera-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.electrolinera-copy .lead {
  color: #b8c0c2;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-top: 18px;
}

.electrolinera-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.electrolinera-list li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(101, 200, 50, 0.18);
  border-left: 3px solid var(--energy-green);
  border-radius: 8px;
}

.electrolinera-list strong {
  color: #ffffff;
  font-size: 1rem;
}

.electrolinera-list span {
  color: #b8c0c2;
  font-size: 0.92rem;
  line-height: 1.5;
}

.electrolinera-contact-box {
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(101, 200, 50, 0.22);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.electrolinera-contact-box h3 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.electrolinera-contact-box > p {
  margin: 0 0 22px;
  color: #b8c0c2;
  font-size: 0.96rem;
  line-height: 1.55;
}

.electrolinera-form {
  display: grid;
  gap: 14px;
}

.electrolinera-form label {
  display: grid;
  gap: 7px;
  color: #dfe8e2;
  font-size: 0.88rem;
  font-weight: 760;
}

.electrolinera-form input {
  width: 100%;
  padding: 13px 14px;
  color: #ffffff;
  background: rgba(7, 10, 11, 0.72);
  border: 1px solid rgba(101, 200, 50, 0.24);
  border-radius: 8px;
  font: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.electrolinera-form input:focus {
  outline: none;
  border-color: var(--energy-green);
  box-shadow: 0 0 0 4px rgba(101, 200, 50, 0.12);
}

.electrolinera-form .button {
  margin-top: 4px;
  width: 100%;
}

.why-us-section {
  padding: 94px clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 14% 8%, rgba(101, 200, 50, 0.1), transparent 26%),
    linear-gradient(180deg, #111819 0%, #0a0f10 100%);
  border-top: 1px solid rgba(101, 200, 50, 0.12);
}

.why-us-heading {
  max-width: 860px;
  margin: 0 auto 52px;
  text-align: center;
}

.why-us-heading h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.why-us-heading p {
  color: #b8c0c2;
  font-size: 1.08rem;
  line-height: 1.6;
}

.why-us-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.why-us-stats {
  display: grid;
  gap: 16px;
}

.why-stat {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(101, 200, 50, 0.18);
  border-radius: 8px;
}

.why-stat strong {
  color: var(--energy-green);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.why-stat span {
  color: #b8c0c2;
  font-size: 0.92rem;
  line-height: 1.5;
}

.why-us-ruling {
  display: grid;
  gap: 14px;
}

.ruling-label {
  margin: 0;
  color: var(--energy-green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ruling-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(101, 200, 50, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44);
}

.ruling-caption {
  margin: 0;
  padding: 16px 18px;
  color: #b8c0c2;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--energy-green);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ruling-caption strong {
  color: #ffffff;
}

@media (max-width: 940px) {
  .electrolinera-content,
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

.home-brand-page {
  --group-black: #0b0b0b;
  --group-white: #ffffff;
  --group-smoke: #9ca3af;
  --group-line: #e5e7eb;
  --group-legal: #0f172a;
  --group-energy: #4caf50;
  color: var(--group-black);
  background: #f6f7f8;
}

.home-brand-page .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(229, 231, 235, 0.9);
}

.group-brand {
  min-width: 0;
}

.group-logo {
  width: min(280px, 58vw);
  height: auto;
}

.home-brand-page .nav-links a {
  color: #30343a;
}

.home-brand-page .nav-links a:hover,
.home-brand-page .nav-links a.active {
  color: var(--group-black);
  background: #f1f3f5;
}

.home-brand-page .home-hero {
  position: relative;
  min-height: calc(100vh - 83px);
  align-content: center;
  gap: clamp(30px, 4vw, 56px);
  padding-block: clamp(42px, 7vw, 82px);
  color: var(--group-white);
  background:
    radial-gradient(circle at 78% 16%, rgba(76, 175, 80, 0.18), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(15, 23, 42, 0.52), transparent 34%),
    linear-gradient(145deg, #0b0b0b 0%, #111418 54%, #090b0d 100%);
}

.home-brand-page .home-hero::before {
  content: "";
  position: absolute;
  inset: 22px clamp(18px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  pointer-events: none;
}

.home-brand-page .home-heading {
  position: relative;
  z-index: 1;
  max-width: 1120px;
}

.home-brand-page .home-heading .eyebrow {
  color: var(--group-smoke);
  letter-spacing: 0.16em;
}

.home-brand-page .home-heading h1 {
  color: var(--group-white);
  font-size: clamp(4.2rem, 9vw, 8.8rem);
  line-height: 0.9;
}

.home-brand-page .home-heading .lead {
  max-width: 840px;
  color: #d1d5db;
  font-size: clamp(1.06rem, 1.6vw, 1.38rem);
}

.home-brand-page .home-card-grid {
  position: relative;
  z-index: 1;
  gap: clamp(18px, 2vw, 28px);
  min-height: clamp(430px, 50vh, 590px);
}

.home-brand-page .home-route-card {
  grid-template-rows: auto auto auto 1fr auto;
  gap: 22px;
  padding: clamp(26px, 3vw, 42px);
  color: var(--group-black);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-top: 4px solid var(--route-accent);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.home-brand-page .home-route-card::before {
  inset: auto -22% -42% 46%;
  height: 280px;
  background: color-mix(in srgb, var(--route-accent) 11%, transparent);
}

.home-brand-page .home-route-card::after {
  color: var(--route-accent);
}

.home-brand-page .home-route-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 231, 235, 0.9);
  border-top-color: var(--route-accent);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.28);
}

.home-brand-page .legal-route {
  --route-accent: var(--group-legal);
}

.home-brand-page .advisory-route {
  --route-accent: var(--group-energy);
}

.home-brand-page .route-kicker,
.home-brand-page .legal-route .route-kicker,
.home-brand-page .advisory-route .route-kicker {
  color: var(--route-accent);
}

.home-brand-page .route-brand-logo {
  width: min(320px, 82%);
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.home-brand-page .consulting-division-logo {
  width: min(390px, 92%);
  max-height: 98px;
  border-radius: 8px;
}

.home-brand-page .home-route-card strong,
.home-brand-page .advisory-route strong {
  max-width: 620px;
  color: var(--group-black);
  font-size: clamp(2rem, 3.4vw, 4rem);
}

.home-brand-page .home-route-card span:not(.route-kicker):not(.route-icon),
.home-brand-page .legal-route span:not(.route-icon),
.home-brand-page .advisory-route span:not(.route-kicker):not(.route-icon) {
  max-width: 620px;
  color: #4b5563;
  font-weight: 560;
}

.home-brand-page .home-route-card em,
.home-brand-page .legal-route em,
.home-brand-page .advisory-route em {
  color: var(--route-accent);
}

.home-brand-page .site-footer {
  color: #d1d5db;
  background: #0b0b0b;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.home-brand-page .site-footer a {
  color: #ffffff;
}

@media (max-width: 940px) {
  .energy-pillars,
  .ev-results,
  .upme-panel,
  .document-grid,
  .ev-summary,
  .ev-final-grid {
    grid-template-columns: 1fr;
  }

  .wizard-shell {
    padding: 18px;
  }

  .energy-pillars .service-card {
    min-height: 280px;
  }

  .home-brand-page .home-hero {
    min-height: auto;
  }

  .home-brand-page .home-card-grid {
    min-height: 0;
  }

  .home-brand-page .home-route-card {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .wizard-progress {
    gap: 7px;
  }

  .wizard-progress span {
    min-height: 36px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .ev-value-field input {
    min-height: 64px;
  }

  .group-logo {
    width: min(230px, 76vw);
  }

  .home-brand-page .home-heading h1 {
    font-size: clamp(3.6rem, 18vw, 5.6rem);
  }

  .home-brand-page .home-route-card {
    min-height: 360px;
  }
}

/* ================================================================
   INVERSIONES MANGLAR — HOMEPAGE
   Todos los estilos están scopeados bajo .manglar-homepage
   para no afectar el resto del sitio.
   ================================================================ */

.manglar-homepage {
  --mg-deep:    #001B2E;
  --mg-navy:    #002B46;
  --mg-green:   #7CB518;
  --mg-blue:    #00A6D6;
  --mg-white:   #FFFFFF;
  --mg-bg:      #F4F7F8;
  --mg-muted:   #5F6B73;
  --mg-line:    #E0E8EE;
  background: var(--mg-bg);
  color: var(--mg-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Header ── */
.mg-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  height: 72px;
  background: rgba(0, 27, 46, 0.97);
  border-bottom: 1px solid rgba(0, 166, 214, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mg-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.mg-logo {
  height: 38px;
  width: auto;
  display: block;
}

.mg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mg-nav a {
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.mg-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mg-nav-nature {
  color: var(--mg-green) !important;
  border: 1px solid rgba(124, 181, 24, 0.35) !important;
}

.mg-nav-nature:hover {
  background: rgba(124, 181, 24, 0.12) !important;
}

/* ── Hero ── */
.mg-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px clamp(20px, 6vw, 96px) 100px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(0, 166, 214, 0.18), transparent 45%),
    linear-gradient(135deg, #002B46 0%, #001B2E 100%);
}

.mg-hero-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.mg-hero-glow {
  display: none;
}

.mg-hero-glow--1 {
  width: min(700px, 80vw);
  height: min(400px, 50vh);
  top: -10%;
  right: -5%;
  background: radial-gradient(ellipse, rgba(0, 166, 214, 0.18), transparent 70%);
  animation: mgGlowPulse 7s ease-in-out infinite alternate;
}

.mg-hero-glow--2 {
  width: min(500px, 60vw);
  height: min(350px, 45vh);
  bottom: 0;
  left: -8%;
  background: radial-gradient(ellipse, rgba(124, 181, 24, 0.1), transparent 70%);
  animation: mgGlowPulse 9s ease-in-out infinite alternate-reverse;
}

@keyframes mgGlowPulse {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.08); }
}

.mg-hero-grid {
  display: none;
}

.mg-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.mg-eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--mg-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mg-eyebrow--light {
  color: var(--mg-blue);
}

.mg-h1 {
  margin: 0 0 28px;
  color: #ffffff;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.mg-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;
}

.mg-hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 48px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mg-hero-logo-wrap::before {
  display: none;
}

.mg-hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(760px, 88vw);
  height: auto;
  object-fit: contain;
  animation: mgLogoReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

@keyframes mgLogoReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mg-hero-content .mg-eyebrow {
  animation: mgLogoReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0s;
}

.mg-hero-content .mg-lead {
  animation: mgLogoReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.42s;
}

.mg-hero-content .mg-hero-cta {
  animation: mgLogoReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.58s;
}

.mg-lead {
  max-width: 660px;
  margin: 0 auto 44px;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  font-weight: 400;
}

.mg-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.mg-hero-cta:hover {
  background: rgba(0, 166, 214, 0.2);
  border-color: rgba(0, 166, 214, 0.5);
  transform: translateY(-2px);
}

.mg-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.mg-scroll-line {
  width: 1px;
  height: 52px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(0,166,214,0.7), transparent);
  animation: mgScrollDrop 2.2s ease-in-out infinite;
}

@keyframes mgScrollDrop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── Divisions Section ── */
.mg-divisions {
  padding: 100px clamp(20px, 5vw, 72px) 120px;
  background: var(--mg-bg);
}

.mg-divisions-header {
  text-align: center;
  margin-bottom: 64px;
}

.mg-divisions-title {
  margin: 10px 0 0;
  color: var(--mg-navy);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ── Cards Grid ── */
.mg-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── Card base ── */
.mg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--mg-line);
  box-shadow:
    0 2px 8px rgba(0, 27, 46, 0.04),
    0 8px 32px rgba(0, 27, 46, 0.05);
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  will-change: transform;
}

.mg-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 4px 16px rgba(0, 27, 46, 0.06),
    0 24px 64px rgba(0, 27, 46, 0.1);
}

.mg-card:focus-visible {
  outline: 2px solid var(--mg-blue);
  outline-offset: 3px;
}

/* Top accent stripe */
.mg-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  transition: height 0.3s ease;
}

.mg-card:hover .mg-card-accent { height: 5px; }

.mg-card--legal   .mg-card-accent { background: var(--mg-navy); }
.mg-card--energy  .mg-card-accent { background: linear-gradient(90deg, var(--mg-blue) 0%, var(--mg-green) 100%); }
.mg-card--nature  .mg-card-accent { background: linear-gradient(90deg, var(--mg-green) 0%, #a3d43a 100%); }

/* Card body */
.mg-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  padding-top: calc(clamp(24px, 3vw, 36px) + 2px);
}

/* Tag */
.mg-card-tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 11px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

.mg-card--legal  .mg-card-tag { color: var(--mg-navy);   background: rgba(0, 43, 70, 0.07); }
.mg-card--energy .mg-card-tag { color: #006B8F;            background: rgba(0, 166, 214, 0.1); }
.mg-card--nature .mg-card-tag { color: #3d6a05;            background: rgba(124, 181, 24, 0.12); }

/* Card logo */
.mg-card-logo {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
  display: block;
}

.mg-card-logo--wide {
  max-width: 260px;
  height: 42px;
}

/* Mucuba brand mark */
.mg-mucuba-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mg-mucuba-icon {
  font-size: 2rem;
  line-height: 1;
}

.mg-mucuba-name {
  color: var(--mg-green);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Card title */
.mg-card-title {
  margin: 0 0 14px;
  color: var(--mg-navy);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Card description */
.mg-card-desc {
  margin: 0;
  color: var(--mg-muted);
  font-size: 0.94rem;
  line-height: 1.68;
  flex: 1;
}

/* Coming-soon note */
.mg-card-note {
  margin: 14px 0 0;
  padding: 11px 14px;
  color: #3d6a05;
  background: rgba(124, 181, 24, 0.07);
  border-left: 2px solid var(--mg-green);
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.52;
}

/* Card footer */
.mg-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px) clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--mg-line);
}

.mg-card-footer--dual {
  flex-wrap: wrap;
}

/* Card CTA button */
.mg-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: gap 0.2s ease, color 0.2s ease;
}

.mg-card--legal  .mg-card-btn { color: var(--mg-navy); }
.mg-card--energy .mg-card-btn { color: #006B8F; }
.mg-card--nature .mg-card-btn { color: #3d6a05; }

.mg-card-arrow {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.mg-card:hover .mg-card-arrow { transform: translateX(5px); }

.mg-card-btn--outline {
  padding: 9px 16px;
  border: 1.5px solid rgba(61, 106, 5, 0.35);
  border-radius: 8px;
  color: #3d6a05 !important;
}

.mg-card-btn--invest {
  padding: 9px 16px;
  background: var(--mg-green);
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 0.84rem;
}

.mg-card-btn--invest:hover {
  background: #6aa014;
}

/* Card subtle tint */
.mg-card--energy { background: linear-gradient(160deg, #ffffff 0%, #f7fdff 100%); }
.mg-card--nature { background: linear-gradient(160deg, #ffffff 0%, #faffe8 100%); }

/* ── Footer ── */
.mg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--mg-deep);
  border-top: 1px solid rgba(0, 166, 214, 0.1);
}

.mg-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mg-footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.mg-footer-brand span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.mg-footer-links {
  display: flex;
  gap: 20px;
}

.mg-footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mg-footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

/* ── Modal Mucuba ── */
.mg-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 27, 46, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: mgModalIn 0.28s ease both;
}

.mg-modal[hidden] { display: none; }

@keyframes mgModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mg-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 44px);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--mg-line);
  box-shadow: 0 32px 96px rgba(0, 27, 46, 0.28);
  animation: mgModalCardIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes mgModalCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mg-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--mg-bg);
  border: 1px solid var(--mg-line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--mg-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.mg-modal-close:hover { background: var(--mg-line); color: var(--mg-navy); }

.mg-modal-title {
  margin: 0 0 16px;
  color: var(--mg-navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.mg-modal-text {
  margin: 0 0 14px;
  color: var(--mg-muted);
  font-size: 0.96rem;
  line-height: 1.68;
}

.mg-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.mg-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mg-modal-btn--primary {
  background: #25d366;
  color: #ffffff;
}

.mg-modal-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.mg-modal-btn--ghost {
  background: var(--mg-bg);
  color: var(--mg-muted);
}

/* ── Transition Overlay ── */
.mg-overlay {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 18px;
  opacity: 0;
  will-change: top, left, width, height, border-radius, opacity;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .mg-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-card--nature {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .mg-card--nature .mg-card-body {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .mg-header {
    height: auto;
    padding: 14px clamp(16px, 4vw, 24px);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mg-nav {
    justify-content: flex-start;
  }

  .mg-nav a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .mg-hero {
    min-height: auto;
    padding: 64px 20px 80px;
  }

  .mg-h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .mg-cards-grid,
  .mg-card--nature {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .mg-card {
    min-height: 380px;
  }

  .mg-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
