/* =========================================================
   ENERSYS SOLAR — Landing page
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Aeonik';
  src: url('Fonts/Aeonik-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('Fonts/Aeonik-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse Intl';
  src: url('Fonts/fonnts.com-SuisseIntl-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse Intl';
  src: url('Fonts/fonnts.com-Suisse_Intl_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse Intl';
  src: url('Fonts/fonnts.com-Suisse_Intl_Book.ttf') format('truetype');
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse Intl';
  src: url('Fonts/fonnts.com-Suisse_Intl_Medium.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse Intl';
  src: url('Fonts/fonnts.com-Suisse_Intl_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Baikal';
  src: url('Fonts/Baikal-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Baikal Condensed';
  src: url('Fonts/Baikal-CondensedBook.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('Fonts/MyriadPro-Regular_1.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --orange-1: #F2A15D;
  --orange-2: #E8622C;
  --orange-3: #D9531F;
  --orange-grad: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 55%, var(--orange-3) 100%);
  --green-1: #3C9169;
  --green-2: #2C7A54;
  --green-grad: linear-gradient(135deg, var(--green-1) 0%, var(--green-2) 100%);
  --blue-1: #4C6E9E;
  --blue-2: #7C9BC7;
  --blue-grad: linear-gradient(160deg, var(--blue-2) 0%, var(--blue-1) 60%, #3C567F 100%);
  --grey-bg: #EFEFEF;
  --ink: #333333;
  --ink-soft: #565656;
  --white: #ffffff;

  --font-heading: 'Aeonik', 'Suisse Intl', Arial, sans-serif;
  --font-body: 'Suisse Intl', 'Aeonik', Arial, sans-serif;

  --container-w: 1240px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* El <picture> no debe formar caja propia: asi el <img> conserva
   exactamente el mismo comportamiento de layout que tenia antes. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: var(--ink);
}
p { margin: 0; line-height: 1.5; }
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.accent { color: var(--orange-2); font-weight: 700; }
.accent-green { color: var(--green-2); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .95rem;
  padding: 16px 34px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-green {
  background: var(--green-grad);
  color: var(--white);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(44,122,84,.35); }
.btn-wide { width: 100%; max-width: 480px; text-align: center; }

/* ---------- Decorative quarter circles ---------- */
.deco-quarter {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 0 100% 0 0;
  background: var(--orange-grad);
  z-index: 0;
}
.deco-quarter--orange { left: 0; bottom: 0; }
.deco-quarter--top-left { top: 0; left: 0; bottom: auto; border-radius: 0 0 100% 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; display: block; }
.logo-img--white { filter: brightness(0) invert(1); }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 28px; flex-wrap: wrap; }
.main-nav a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--orange-2);
  border-bottom-color: var(--orange-2);
}

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}
.icon-btn:hover { color: var(--orange-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: 40px;
  overflow: hidden;
}
.hero-stage {
  position: relative;
}
.hero-bg-photo {
  width: 100%;
  display: block;
}
.hero-copy-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}
.hero-copy { max-width: 46%; transform: translate(10%, -40%); }
.hero-copy h1 {
  font-size: clamp(2.5rem, 3.6vw, 3.85rem);
  color: var(--ink);
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 420px;
}

.hero-cta {
  position: relative;
  background: var(--orange-grad);
  border-radius: 28px;
  margin: -4.1vw 24px 0;
  padding: 34px 0 30px;
  z-index: 2;
}
.hero-cta-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta-text {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border-right: 1px solid rgba(255,255,255,.5);
  padding-right: 20px;
  min-width: 160px;
}
.hero-cta-desc { color: var(--white); font-size: .95rem; max-width: 700px; text-align: center; }
.hero-cta-desc strong { font-weight: 700; }

.scroll-chevron {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  z-index: 20;
  isolation: isolate;
}
.scroll-chevron--green { color: var(--green-2); }

.hero-cta-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: -20px;
  position: relative;
  z-index: 3;
  padding-bottom: 40px;
}

/* =========================================================
   2. STATS / ECOSISTEMA
   ========================================================= */
.stats {
  position: relative;
  padding: 90px 0 130px;
  overflow: hidden;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 56px;
}
.section-title.center { text-align: center; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.stats-intro {
  grid-column: 1 / 3;
  grid-row: 1;
  font-size: 1.15rem;
  align-self: center;
  padding-left: 22%;
}
.stats-outro {
  grid-column: 4 / 6;
  grid-row: 2;
  align-self: center;
  font-size: 1.05rem;
  color: var(--ink-soft);
  padding-left: 22%;
}
/* Tarjeta 1 ($200) y tarjeta 4 (+1) comparten columna: una queda arriba de la otra */
.stat-card--1 { grid-column: 3; grid-row: 1; }
.stat-card--2 { grid-column: 4; grid-row: 1; }
.stat-card--3 { grid-column: 2; grid-row: 2; }
.stat-card--4 { grid-column: 3; grid-row: 2; }
.stat-card {
  width: 100%;
  border-radius: 20px;
  padding: 26px 24px 22px;
  background: var(--grey-bg);
  color: var(--ink);
  cursor: default;
  outline: none;
  transition: background .2s ease, color .2s ease;
}
.stat-card:hover,
.stat-card:focus-visible {
  background: var(--orange-grad);
  color: var(--white);
}
.stat-prefix { font-size: .95rem; margin-bottom: -6px; }
.stat-number { font-family: var(--font-heading); font-weight: 700; font-size: 3rem; margin: 2px 0; }
.stat-label { font-size: .95rem; }
.stat-card:hover .stat-prefix, .stat-card:focus-visible .stat-prefix,
.stat-card:hover .stat-label, .stat-card:focus-visible .stat-label { color: var(--white); }

/* =========================================================
   3. INTRO — Enersys Solar: Convierte proyectos en energía
   ========================================================= */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  min-height: 560px;
  background: var(--white);
}
.intro-figure { position: relative; overflow: hidden; }
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-content { display: flex; align-items: center; }
.intro-text h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.intro-lead { font-size: clamp(1.6rem, 3vw, 2.2rem); font-family: var(--font-heading); font-weight: 400; margin-top: 6px; }
.intro-detail { display: flex; gap: 16px; align-items: flex-start; margin-top: 34px; max-width: 520px; }
.intro-detail p { font-size: 1.15rem; }
.arrow-bullet {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-grad);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* =========================================================
   4. HEMOS DESARROLLADO — CAROUSEL
   ========================================================= */
.developed {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}
.developed-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.developed-text p { color: var(--ink-soft); font-size: 1.15rem; max-width: 400px; }

.developed-showcase { display: flex; flex-direction: column; align-items: center; }
.developed-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
}
.developed-title strong { font-weight: 700; }

/* ---- Carousel ---- */
.carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 310px;
  border-radius: 26px;
  background: var(--grey-bg);
  color: #b9b9b9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 22px;
  transform: translate(-50%, -50%) scale(.82);
  z-index: 1;
  transition: transform .4s ease, background .4s ease, color .4s ease, box-shadow .4s ease;
}
.carousel-card.is-prev { transform: translate(-50%, -50%) translateX(-58%) scale(.82); }
.carousel-card.is-next { transform: translate(-50%, -50%) translateX(58%) scale(.82); }
.carousel-card.is-active {
  transform: translate(-50%, -50%) scale(1);
  background: var(--orange-grad);
  color: var(--white);
  z-index: 3;
  box-shadow: 0 18px 34px rgba(217,83,31,.26);
}

.carousel-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: inherit;
}
.carousel-card.is-active .carousel-number { color: var(--white); }
.carousel-label {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 10px;
  text-transform: uppercase;
  line-height: 1.25;
  color: inherit;
}
.carousel-card.is-active .carousel-label { color: var(--ink); }
.carousel-foot {
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  font-size: .85rem;
  border-top: 1px solid #dcdcdc;
  color: inherit;
}
.carousel-card.is-active .carousel-foot {
  border-top-color: rgba(255,255,255,.65);
  color: var(--white);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-grad);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 4;
  transform: translateY(-50%);
}
.carousel-arrow--prev { left: calc(50% - 152px); }
.carousel-arrow--next { right: calc(50% - 152px); }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d8d8d8; border: none; cursor: pointer; padding: 0; }
.dot--active { background: var(--ink); }

/* =========================================================
   5. PROCESO 5 PASOS
   ========================================================= */
.process { padding: 90px 0 110px; }
.process-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}
.process-header h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.process-header .divider { width: 1px; align-self: stretch; background: #ccc; }
.process-header p { font-size: 1.1rem; padding-top: 6px; }

.process-image {
  width: 100%;
}
.process-image img {
  width: 100%;
  height: auto;
}

/* =========================================================
   6. DECRETO 548
   ========================================================= */
.decreto { position: relative; overflow: hidden; }
.decreto-top {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.decreto-top h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); max-width: 560px; }
.decreto-note {
  display: flex;
  gap: 18px;
  max-width: 640px;
  align-items: flex-start;
}
.decreto-note p { font-size: 1.05rem; color: var(--ink-soft); }
.arrow-bullet--green { background: var(--green-grad); }

.decreto-wave {
  position: relative;
  background: var(--blue-grad);
  padding: 90px 0 70px;
  margin-top: -1px;
}
.decreto-wave::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 260px; height: 260px;
  background: var(--orange-grad);
  border-radius: 0 100% 0 0;
  opacity: .95;
}
.decreto-wave-title {
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-align: center;
  margin-bottom: 46px;
  position: relative;
  z-index: 1;
}
.decreto-wave-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.decreto-list li {
  color: var(--white);
  font-size: 1.05rem;
  padding: 10px 0 10px 30px;
  position: relative;
}
.decreto-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--orange-1);
  font-size: 1.4rem;
  font-weight: 700;
}
.decreto-callout {
  background: var(--orange-grad);
  color: var(--white);
  border-radius: 20px;
  padding: 26px 28px;
  font-size: 1rem;
}

/* =========================================================
   7. CONTACT + FORM
   ========================================================= */
.contact {
  position: relative;
  padding-top: 60px;
  overflow: hidden;
}
.contact-stage {
  position: relative;
  width: 100%;
  height: 46vw;
  max-height: 620px;
  overflow: hidden;
}
.contact-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  z-index: 0;
}
.contact-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 92%;
  width: auto;
  max-width: none;
  z-index: 1;
}
.contact-form-wrap {
  position: relative;
  z-index: 2;
  margin-top: -9vw;
}

.contact-form {
  position: relative;
  z-index: 2;
  background: var(--grey-bg);
  border-radius: 28px;
  padding: 46px 40px;
}
.contact-form-wrap .scroll-chevron {
  top: -22px;
  background: var(--white);
}
.contact-form h2 { font-size: 1.7rem; margin-bottom: 10px; }
.contact-form-intro {
  color: var(--ink-soft);
  font-size: .95rem;
  margin-bottom: 26px;
  max-width: 460px;
}

/* =========================================================
   FORMULARIO DE HUBSPOT
   ---------------------------------------------------------
   HubSpot inserta su propio HTML dentro de .hs-form-frame.
   Estas reglas lo adaptan al diseno de la pagina: dos
   columnas, campos blancos redondeados y boton verde.
   Si algun dia HubSpot cambia sus clases, este bloque es
   lo unico que habria que revisar.
   ========================================================= */

/* ---- Rejilla de dos columnas ---- */
.hs-form-frame form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
/* Los campos de area de texto y el envio ocupan el ancho completo */
.hs-form-frame .hs_submit,
.hs-form-frame .hs-form-field.hs-fieldtype-textarea,
.hs-form-frame .hs_error_rollup,
.hs-form-frame .hs-richtext {
  grid-column: 1 / -1;
}
.hs-form-frame .hs-form-field { margin: 0; min-width: 0; }

/* ---- Etiquetas ---- */
.hs-form-frame label {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.hs-form-frame .hs-form-required { color: var(--orange-2); }
.hs-form-frame legend.hs-field-desc {
  font-size: .78rem;
  color: #9c9c9c;
  margin-bottom: 6px;
}

/* ---- Campos ---- */
.hs-form-frame input[type="text"],
.hs-form-frame input[type="email"],
.hs-form-frame input[type="tel"],
.hs-form-frame input[type="number"],
.hs-form-frame input[type="date"],
.hs-form-frame textarea,
.hs-form-frame select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s ease;
}
.hs-form-frame textarea { min-height: 110px; resize: vertical; }
.hs-form-frame input::placeholder,
.hs-form-frame textarea::placeholder { color: #9c9c9c; }

.hs-form-frame input:focus,
.hs-form-frame textarea:focus,
.hs-form-frame select:focus {
  outline: none;
  border-color: var(--orange-2);
}

/* ---- Casillas y opciones ---- */
.hs-form-frame .inputs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hs-form-frame .inputs-list li { margin-bottom: 8px; }
.hs-form-frame .inputs-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: .9rem;
  color: var(--ink);
}
.hs-form-frame .inputs-list input[type="checkbox"],
.hs-form-frame .inputs-list input[type="radio"] {
  width: auto !important;
  margin-top: 3px;
  accent-color: var(--green-2);
}

/* ---- Boton de envio ---- */
.hs-form-frame .hs_submit { display: flex; justify-content: flex-end; }
.hs-form-frame input[type="submit"],
.hs-form-frame .hs-button {
  display: inline-block;
  width: auto !important;
  background: var(--green-grad);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .95rem;
  padding: 16px 40px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hs-form-frame input[type="submit"]:hover,
.hs-form-frame .hs-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(44,122,84,.35);
}

/* ---- Mensajes de error ---- */
.hs-form-frame .hs-error-msg,
.hs-form-frame .hs-error-msgs label {
  color: #C0392B;
  font-size: .82rem;
  font-weight: 600;
  margin-top: 6px;
}
.hs-form-frame .hs-error-msgs { list-style: none; padding: 0; margin: 0; }
.hs-form-frame .hs-input.invalid { border-color: #C0392B; }

/* ---- Mensaje de exito tras enviar ---- */
.hs-form-frame .submitted-message {
  font-size: 1.05rem;
  color: var(--green-2);
  font-weight: 600;
  padding: 20px 0;
}

/* ---- Textos legales / richtext ---- */
.hs-form-frame .hs-richtext {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.hs-form-frame .hs-richtext a { color: var(--orange-2); text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--orange-grad);
  color: var(--white);
  padding: 70px 0 26px;
  margin-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; align-items: flex-start; }
.footer-col h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  margin-top: 22px;
}
.footer-col h4:first-child { margin-top: 0; }
.footer-col p { font-size: .92rem; margin-bottom: 8px; opacity: .95; }
.footer-col a:hover { text-decoration: underline; }

.footer-sub { margin-top: 50px; }
.footer-ecosystem { font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.footer-ecosystem strong { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; }
.footer-ecosystem-tag { font-size: .7rem; letter-spacing: .08em; opacity: .85; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.3);
}
.footer-bottom p { font-size: .82rem; opacity: .9; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--white); }
.footer-social a:hover { opacity: .8; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-copy { max-width: 60%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-intro, .stats-outro,
  .stat-card--1, .stat-card--2, .stat-card--3, .stat-card--4 { grid-column: 1; text-align: center; }
  .stats-intro, .stats-outro { padding-left: 0; }
  .stat-card--1 { grid-row: 2; }
  .stat-card--2 { grid-row: 3; }
  .stat-card--3 { grid-row: 4; }
  .stat-card--4 { grid-row: 5; }
  .stats-outro { grid-row: 6; }
  .intro { grid-template-columns: 1fr; }
  .intro-figure { height: 360px; }
  .developed-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .developed-text { text-align: center; }
  .developed-text p { margin: 0 auto; }
  .decreto-top { grid-template-columns: 1fr; gap: 30px; }
  .decreto-wave-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-stage { display: flex; flex-direction: column; }
  .hero-bg-photo { order: 2; }
  .hero-copy-wrap { position: static; order: 1; padding: 24px 0 16px; }
  .hero-copy { max-width: 100%; text-align: center; transform: none; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .main-nav { position: fixed; top: 63px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid #eee; padding: 10px 24px 18px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .nav-toggle { display: flex; }
  .header-actions .icon-btn:not(:last-child) { display: none; }
  .hero-cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-cta-title { border-right: none; padding-right: 0; }
  .contact-stage { height: 60vw; }
  .contact-form-wrap { margin-top: -40px; }
  .contact-form { padding: 40px 24px; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-intro, .stats-outro { grid-column: 1; }
  .hs-form-frame form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel-card { width: 210px; height: 250px; padding: 20px 16px; }
  .carousel-track { height: 280px; }
  .carousel-number { font-size: 3rem; }
  .carousel-label { font-size: .9rem; }
  .carousel-arrow--prev { left: calc(50% - 122px); }
  .carousel-arrow--next { right: calc(50% - 122px); }
  .hs-form-frame .hs_submit { justify-content: stretch; }
  .hs-form-frame input[type="submit"],
  .hs-form-frame .hs-button { width: 100% !important; }
}
