﻿/* ENDESA PORTUGAL · Landing C2C
   Paleta oficial (Brand Guidelines, pág. 11):
   - Pantone 285 (Digital / Accessible) : #0555FA  → cor primária
   - Pantone 298 (Secondary)            : #41B9E6  → acento secundário
   - Branco                             : #FFFFFF
   Tipografia: Manrope (substituto digital próximo do Enel Roobert)
   ========================================================= */

:root {
  --endesa: #0555fa;
  --endesa-deep: #0040d0;
  /* scrollbar, estados */
  --endesa-ink: #03208a;
  /* texto editorial sobre fundo claro */
  --endesa-sky: #41b9e6;
  /* Pantone 298 - acentos */
  --endesa-sky-soft: #e8f6fd;

  --bg: #ffffff;
  --bg-tint: #f6f9ff;
  /* fundo muito suave com pitada azul */
  --line: #e4eaf6;
  --line-strong: #cfd8ee;

  --ink: #0d1226;
  --ink-2: #404865;
  --ink-3: #8089a3;

  --ok: #16a15a;
  --danger: #e23b3b;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm:
    0 1px 2px rgba(5, 85, 250, 0.04), 0 1px 1px rgba(13, 18, 38, 0.04);
  --shadow-md:
    0 12px 28px -14px rgba(5, 85, 250, 0.22), 0 2px 6px rgba(13, 18, 38, 0.05);
  --shadow-lg:
    0 32px 64px -28px rgba(5, 85, 250, 0.35), 0 8px 22px rgba(13, 18, 38, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-weight: 800;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--endesa);
  color: #fff;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand img {
  height: 55px;
  width: auto;
  display: block;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--endesa-ink);
  border: 1.5px solid var(--line-strong);
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  transition: 0.18s ease;
}

.nav-phone:hover {
  border-color: var(--endesa);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-phone .phone-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--endesa);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.nav-phone .phone-ico svg {
  width: 15px;
  height: 15px;
}

.nav-phone small {
  display: block;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.nav-phone strong {
  display: block;
  line-height: 1.1;
  font-size: 15px;
  font-weight: 700;
  color: var(--endesa-ink);
}

.phones_wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================
   HERO  —  split, azul Endesa à esquerda + formulário branco à direita
   Inspirado no layout comercial do guideline (pág. 77)
   ========================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(
      1200px 600px at 20% 20%,
      rgba(65, 185, 230, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(5, 85, 250, 0.05),
      transparent 60%
    ),
    var(--bg);
  padding: 48px 0 72px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* ==== HERO LEFT — "Ring" card (homenagem ao elemento gráfico Endesa) ==== */
.hero-card {
  position: relative;
  background: var(--endesa);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 56px 48px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

/* O Ring — semicírculo branco vindo do canto (guideline pág. 26) */
.ring {
  position: absolute;
  pointer-events: none;
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -160px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.12);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.ring-2 {
  position: absolute;
  pointer-events: none;
  width: 180px;
  height: 180px;
  left: -40px;
  top: -40px;
  border-radius: 50%;
  border: 30px solid rgba(65, 185, 230, 0.35);
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(120deg);
}

.hero-eyebrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  width: max-content;
  margin-bottom: 24px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #baffcd;
  box-shadow: 0 0 0 0 rgba(186, 255, 205, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(186, 255, 205, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(186, 255, 205, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(186, 255, 205, 0);
  }
}

.headline {
  position: relative;
  z-index: 2;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
  max-width: 620px;
}

/* Destaque sem box — texto amarelo quente (Pantone 123C aplicado pela marca) */
.headline .hl-mark {
  color: #e83e8c;
  white-space: nowrap;
}

.subhead {
  position: relative;
  z-index: 2;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 500px;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-bullets {
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 14px;
}

.hero-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}

.check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--endesa);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.check svg {
  width: 13px;
  height: 13px;
  stroke-width: 3.5;
}

.hero-bullets strong {
  font-weight: 800;
}

.hero-trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-trust .tt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-trust strong {
  color: #fff;
  font-weight: 700;
  margin-right: 4px;
}

.stars {
  color: #e83e8c;
  letter-spacing: 1px;
  font-size: 14px;
  line-height: 1;
}

/* CTA inline no hero card — só mobile */
.hero-cta-mobile {
  display: none;
  margin-top: 22px;
  width: 100%;
  height: 54px;
  background: #e83e8c;
  color: #fff;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(255, 204, 41, 0.55);
  position: relative;
  z-index: 3;
  transition: 0.2s ease;
}

.hero-cta-mobile:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px -4px rgba(255, 204, 41, 0.55);
}

.hero-cta-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(3, 32, 138, 0.12);
  display: grid;
  place-items: center;
  animation: bounceDown 1.8s ease-in-out infinite;
}

.hero-cta-arrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ==== HERO RIGHT — FORM ==== */
.form-wrap {
  position: relative;
}

.form-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(65, 185, 230, 0.4),
    transparent 40%,
    transparent 60%,
    rgba(5, 85, 250, 0.3)
  );
  z-index: -1;
  filter: blur(22px);
  opacity: 0.8;
}

.form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.form-badge {
  background: var(--endesa);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-badge svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.form-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--endesa-ink);
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  line-height: 1.15;
}

.form-sub {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 26px;
  font-weight: 500;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--endesa-ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.field input {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  background: #fafbfe;
  color: var(--ink);
  transition: 0.18s ease;
}

.field input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}

.field input:focus {
  outline: none;
  border-color: var(--endesa);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 85, 250, 0.12);
}

.field input.err {
  border-color: var(--danger);
  background: #fff5f5;
}

.field .ico {
  position: absolute;
  left: 16px;
  top: 40px;
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  pointer-events: none;
  transition: 0.15s ease;
}

.field input:focus ~ .ico {
  color: var(--endesa);
}
.field input.validating {
  border-color: var(--endesa-sky);
  background: #fff;
}
.field input.validating ~ .ico {
  color: var(--endesa-sky);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.legal {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius-md);
  margin: 6px 0 20px;
  cursor: pointer;
  transition: 0.15s ease;
}

.legal:hover {
  border-color: var(--endesa-sky);
}

.legal--pulse {
  border-color: #e83e8c;
  background: #fffbea;
  animation: legalPulse 1.2s ease-in-out infinite;
}

.legal--pulse input[type="checkbox"] {
  outline: 2px solid #e83e8c;
  outline-offset: 2px;
  border-radius: 3px;
}

@keyframes legalPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 204, 41, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(255, 204, 41, 0);
  }
}

.legal input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--endesa);
  cursor: pointer;
}

.legal a {
  color: var(--endesa);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.legal a:hover {
  color: var(--endesa-deep);
}

.cta {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #e83e8c;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.005em;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s ease;
  box-shadow: 0 12px 24px -10px rgba(5, 85, 250, 0.55);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.6s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -10px rgba(5, 85, 250, 0.7);
  background: #d12c79;
}

.cta:hover::before {
  transform: translateX(100%);
}

.cta:active {
  transform: translateY(0);
}

.cta svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.api-err {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  text-align: center;
}
.form-foot {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.form-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-foot svg {
  width: 14px;
  height: 14px;
  color: var(--ok);
}

/* ==========================================================
   AWARDS BAND — faixa discreta de prémios entre hero e benefits
   ========================================================== */
.awards-band {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.awards-band-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.awards-band-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}

.awards-band-list {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.35;
}

.award-item strong {
  color: var(--endesa-ink);
  font-weight: 700;
}

.award-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e83e8c, #d62f7d);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 12px -4px rgba(232 0 223 / 50%);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  border: 2px solid #fff;
}

.award-seal.blue {
  background: linear-gradient(135deg, var(--endesa-sky), var(--endesa));
}

/* ==========================================================
   BENEFITS
   ========================================================== */
.section {
  padding: 90px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--endesa);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(32px, 3.4vw, 44px);
  color: var(--endesa-ink);
  line-height: 1.1;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 500;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.b-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.b-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(5, 85, 250, 0.04) 100%
  );
  opacity: 0;
  transition: 0.25s ease;
}

.b-card:hover {
  border-color: var(--endesa);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.b-card:hover::before {
  opacity: 1;
}

.b-card > * {
  position: relative;
}

.b-num {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.b-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--endesa);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: 0.25s ease;
}

.b-card:hover .b-ico {
  background: var(--endesa);
  color: #fff;
}

.b-ico svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.b-card h3 {
  font-size: 18.5px;
  margin-bottom: 8px;
  color: var(--endesa-ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.b-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 500;
}

/* ==========================================================
   TRUST SECTION
   ========================================================== */
.trust-section {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.trust-title-mark {
  color: var(--endesa);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.stat {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: 0.2s ease;
}

.stat:hover {
  border-color: var(--endesa-sky);
}

.stat-num {
  font-weight: 800;
  font-size: 34px;
  color: var(--endesa);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat-lbl {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
  font-weight: 500;
}

.awards-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.awards-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--endesa-ink);
  font-weight: 800;
}

.awards-card .awards-sub {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.5;
}

.awards-list {
  display: grid;
  gap: 16px;
}

.award-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  transition: 0.2s ease;
}

.award-row:hover {
  border-color: var(--endesa-sky);
  background: #fff;
}

.award-medal {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--endesa);
  color: #fff;
  margin-top: 1px;
}

.award-medal svg {
  width: 22px;
  height: 22px;
}

.award-medal.amber {
  background: linear-gradient(135deg, #f06aaf, #e83e8c);
  color: #fff;
}

.award-medal.sky {
  background: linear-gradient(135deg, var(--endesa-sky), var(--endesa));
  color: #fff;
}

.award-info strong {
  display: block;
  font-size: 14.5px;
  color: var(--endesa-ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.award-info span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.awards-note {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 18px;
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.how::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--endesa-sky),
    transparent
  );
  z-index: 0;
}

.step {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  z-index: 1;
  transition: 0.25s ease;
}

.step:hover {
  border-color: var(--endesa);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-weight: 800;
  font-size: 13px;
  color: var(--endesa-sky);
  letter-spacing: 0.06em;
}

.step-dot {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--endesa);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px -8px rgba(5, 85, 250, 0.5);
}

.step-dot svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.step h3 {
  font-size: 19px;
  color: var(--endesa-ink);
  margin: 8px 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================
   FINAL CTA (azul institucional cheio)
   ========================================================== */
.final-wrap {
  padding: 0 0 80px;
}

.final {
  background: var(--endesa);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ring decorativo */
.final::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.1);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-30deg);
}

.final::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 35px solid rgba(65, 185, 230, 0.3);
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(150deg);
}

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

.final h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  margin-bottom: 16px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.final p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 500;
}

.final .cta {
  max-width: 360px;
  margin-inline: auto;
  background: #fff;
  color: var(--endesa);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.3);
}

.final .cta:hover {
  background: #fff;
  color: var(--endesa-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   FOOTER — alinhado à estrutura da Endesa Portugal
   ========================================================== */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}

.foot-top {
  /*  display: grid; */
  display: flex;
  justify-content: space-between;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.foot-top h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--endesa-ink);
  margin: 0 0 16px;
}

.foot-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.foot-top a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.15s ease;
}

.foot-top a:hover {
  color: var(--endesa);
}

.foot-brand img {
  height: 60px;
  margin-bottom: 18px;
}

.foot-contact {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 500;
}

.foot-contact strong {
  display: block;
  color: var(--endesa);
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 2px;
  letter-spacing: -0.01em;
}

.foot-contact span {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.foot-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-legal a {
  color: var(--ink-3);
  text-decoration: none;
}

.foot-legal a:hover {
  color: var(--endesa);
}

.foot-socials {
  display: flex;
  gap: 10px;
}

.foot-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: 0.2s ease;
}

.foot-socials a:hover {
  color: #fff;
  background: var(--endesa);
  border-color: var(--endesa);
}

.foot-socials svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================
   STICKY MOBILE CTA
   ========================================================== */
.m-sticky {
  display: none;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1000px) {
  .hero {
    padding: 32px 0 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-card {
    padding: 40px 32px 36px;
    min-height: unset;
  }

  .form-card {
    padding: 28px;
  }

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

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .how::before {
    display: none;
  }

  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    height: 62px;
  }

  .nav-phone {
    padding: 6px 12px 6px 8px;
    gap: 8px;
  }

  .nav-phone .phone-ico {
    width: 28px;
    height: 28px;
  }

  .nav-phone .phone-ico svg {
    width: 13px;
    height: 13px;
  }

  .nav-phone small {
    font-size: 10px;
    line-height: 1.1;
  }

  .nav-phone strong {
    font-size: 13.5px;
  }

  .at_phone {
    display: none;
  }

  .brand img {
    height: 38px;
  }

  /* Hero mais compacto em mobile para o form aparecer mais cedo */
  .hero {
    padding: 16px 0 36px;
  }

  .hero-card {
    padding: 26px 22px 22px;
    border-radius: 20px;
  }

  .ring {
    width: 220px;
    height: 220px;
    right: -100px;
    bottom: -100px;
    border-width: 38px;
  }

  .ring-2 {
    display: none;
  }

  .hero-eyebrow {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .headline {
    font-size: 30px;
    margin-bottom: 14px;
    line-height: 1.1;
  }

  .subhead {
    font-size: 14.5px;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .hero-bullets {
    gap: 9px;
    margin-bottom: 18px;
  }

  .hero-bullets li {
    font-size: 14px;
    gap: 10px;
  }

  .check {
    width: 21px;
    height: 21px;
  }

  .check svg {
    width: 10px;
    height: 10px;
  }

  .hero-trust {
    padding-top: 16px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-trust .tt {
    font-size: 12.5px;
  }

  .hero-cta-mobile {
    display: flex;
  }

  .form-card {
    padding: 24px;
    border-radius: 20px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-sub {
    font-size: 13.5px;
    margin-bottom: 20px;
  }

  .field input {
    height: 52px;
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .b-card {
    padding: 20px 18px;
  }

  .b-card h3 {
    font-size: 15.5px;
  }

  .b-card p {
    font-size: 13.5px;
  }

  .b-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .b-ico svg {
    width: 22px;
    height: 22px;
  }

  .b-num {
    margin-bottom: 12px;
  }

  .awards-band {
    padding: 20px 0;
  }

  .awards-band-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .awards-band-list {
    gap: 14px;
    flex-direction: column;
    width: 100%;
  }

  .award-seal {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }

  .award-item {
    font-size: 13px;
  }

  .trust-grid {
    gap: 32px;
  }

  .trust-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .stat {
    padding: 18px 16px;
  }

  .stat-num {
    font-size: 28px;
  }

  .stat-lbl {
    font-size: 12.5px;
  }

  .awards-card {
    padding: 24px 22px;
  }

  .award-row {
    padding: 14px;
  }

  .step {
    padding: 24px 22px;
  }

  .step h3 {
    font-size: 17px;
  }

  .final {
    padding: 48px 24px;
    border-radius: var(--radius-lg);
  }

  .final::before {
    width: 220px;
    height: 220px;
    border-width: 35px;
  }

  .final h2 {
    font-size: 28px;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
    flex-direction: column;
  }

  .foot-bot {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .foot-contact {
    font-size: 18px;
  }

  body {
    padding-bottom: 80px;
  }

  .m-sticky {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 60;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow:
      0 -4px 20px rgba(5, 85, 250, 0.15),
      0 2px 8px rgba(13, 18, 38, 0.1);
    border: 1px solid var(--line);
  }

  .m-sticky a {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
    font-size: 15px;
    gap: 8px;
  }

  .m-sticky .primary {
    background: var(--endesa);
    color: #fff;
  }

  .m-sticky .secondary {
    background: #fff;
    color: var(--endesa-ink);
    border: 1.5px solid var(--line-strong);
  }

  .m-sticky svg {
    width: 16px;
    height: 16px;
  }

  .footer {
    padding: 30px 0 28px;
  }
}

/* ==========================================================
   LEGAL DOCS / TEXTCONTENT BLOCK
   ========================================================== */
.textContent {
  width: min(1200px, 92%);
  margin-inline: auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.textContent > a {
  display: block;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 6px;
}

.textContent > a:hover {
  color: var(--endesa);
}

.tarifasFooter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tarifasFooter p {
  margin: 0;
  white-space: nowrap;
  min-width: 180px;
  font-size: 13px;
  color: var(--ink);
}

.tarifasFooter p b {
  font-weight: 700;
}

.legales-tarifas {
  flex: 1;
}

.enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.enlaces a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
  white-space: nowrap;
}

.enlaces a:hover {
  color: var(--endesa);
}

@media (max-width: 640px) {
  .tarifasFooter {
    flex-direction: column;
    gap: 4px;
  }

  .tarifasFooter p {
    min-width: unset;
  }

  .enlaces {
    gap: 10px;
  }
}
