@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary: #E45F2F;
  --primary-hover: #F26A35;
  --primary-soft: #F8A16A;
  --ink: #18212D;
  --muted: #666B73;
  --line: rgba(228, 95, 47, 0.20);
  --surface: #FEFEFE;
  --white: #fff;
  --dark: #061122;
  
  /* Layout & Geometry */
  --radius: 20px;
  --pill: 999px;
  --shadow: 0 18px 40px rgba(24, 33, 45, 0.06);
  --container: 1180px;
  --wide: 1340px;
  --x: clamp(22px, 5.4vw, 88px);
  
  /* Fonts */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-manrope: 'Manrope', var(--font);

  /* Photos & Assets */
  --hero-photo: url("assets/inicio.png");
  --final-photo: url("assets/aside.png");
  --personas-photo: url("assets/innovacion-personas.png");
  --organizaciones-photo: url("assets/innovacion-organizaciones.png");
  --innovation-01: url("assets/innovacion-01.jpg");
  --innovation-02: url("assets/innovacion-02.jpg");
  --early-access: url("assets/early-access.png");
  --comunidad: url("assets/comunidad.png");
  --empresa: url("assets/empresa.png");
  --news-innovation: url("assets/actualidad-innovacion.png");
  --news-construction: url("assets/actualidad-construccion.png");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.site {
  overflow: hidden;
  background: var(--surface);
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin: auto;
}

.wide {
  width: min(var(--wide), calc(100% - 72px));
  margin: auto;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.accent {
  color: var(--primary);
}

/* Button & CTA Styles */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font);
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta {
  min-height: 54px;
  padding: 0 28px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(228, 95, 47, 0.15);
}

.cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 24px rgba(228, 95, 47, 0.25);
  transform: translateY(-1px);
}

.btn {
  min-height: 54px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(228, 95, 47, 0.15);
}

.btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 24px rgba(228, 95, 47, 0.25);
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn.secondary:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Header Styles */
.header {
  height: 90px; /* Increased vertical space by 15% */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--x);
  background: rgba(254, 254, 254, 0.93);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(24, 33, 45, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 210px;
}

.brand-logo {
  display: block;
  width: 182px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  position: relative;
}

.nav a:hover {
  color: var(--primary);
}

.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px; /* Adjusted to align centered in a 90px header */
  height: 3px;
  background: var(--primary);
  border-radius: 4px;
}

.menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: clamp(700px, calc(100vh - 90px), 950px); /* Dynamic height to fit header and text without clipping */
  background: var(--surface);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-left: var(--x);
  padding-right: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 24px;
}

#soluciones {
  padding-top: 24px;
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  height: 85%;
  width: 70%;
  transform: none;
  background-image: var(--hero-photo);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 1;
}

.hero__image::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 66%;
  background: linear-gradient(
    to right,
    var(--surface) 0%,
    rgba(254, 254, 254, 1) 22%,
    rgba(254, 254, 254, 0.96) 45%,
    rgba(254, 254, 254, 0.72) 64%,
    rgba(254, 254, 254, 0.28) 84%,
    rgba(254, 254, 254, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(254, 254, 254, 0.04), rgba(254, 254, 254, 0) 70%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(720px, 55vw); /* Slightly wider to give more space for text wrapping */
  margin-left: 0;
  padding: 20px 0; /* Reduced padding since container padding handles it */
}

.hero h1 {
  font-size: clamp(34px, 3.8vw, 64px); /* Scales up to 64px on desktop to give text more breathing room */
  font-weight: 700; /* Bold */
  line-height: 1.05; /* Line height: 105% */
  margin: 10px 0 18px; /* Slightly tighter margins to keep buttons above the fold */
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 560px; /* Subtitle max width: 560px */
  margin: 0 0 22px; /* Tighter margin to keep buttons above the fold */
  color: var(--muted); /* Dark gray text */
  font-size: clamp(15px, 1.3vw, 20px); /* Scales up to 20px on desktop */
  font-weight: 400; /* Regular */
  line-height: 1.5;
}

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

/* Page Pills */
.hero-pages {
  position: absolute;
  z-index: 3;
  right: var(--x);
  top: 120px;
  width: min(360px, 30vw);
  display: grid;
  gap: 14px;
}

.page-pill {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius); /* Consistent corners */
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.67), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(24, 33, 45, 0.08);
}

.icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(228, 95, 47, 0.38);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 20px;
  background: rgba(255, 255, 255, 0.48);
}

.page-pill b {
  display: block;
  color: var(--primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-pill span {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: #293244;
}

/* Sections */
.section {
  padding: 60px 0; /* Increased vertical space by ~40% for premium feel */
}

.section.wide {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px; /* Increased space */
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Innovation Cards */
.innovation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px; /* Increased gap */
}

.innovation-card {
  position: relative;
  min-height: 290px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.innovation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(24, 33, 45, 0.08);
}

.innovation-card:nth-child(2) {
  --card-photo: var(--organizaciones-photo);
}

.innovation-card:first-child {
  --card-photo: var(--personas-photo);
}

.innovation-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  background: var(--card-photo) center/cover no-repeat;
  z-index: 0;
}

.innovation-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 43%;
  width: 16%;
  background: linear-gradient(
    90deg,
    rgba(254, 254, 254, 1) 0%,
    rgba(254, 254, 254, 0.88) 42%,
    rgba(254, 254, 254, 0.28) 78%,
    rgba(254, 254, 254, 0) 100%
  );
  z-index: 1;
}

.innovation-card .copy {
  position: relative;
  z-index: 2;
  width: 45%;
  height: 100%;
  min-height: inherit;
  padding: 32px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 16px;
}

.circle-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--primary-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 21px;
  background: rgba(255, 255, 255, 0.76);
}

.circle-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.innovation-card h3 {
  margin: 0;
  font-family: var(--font-manrope);
  font-size: 24px; /* Row 1: 24px */
  font-weight: 600; /* SemiBold */
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.innovation-card h3 .accent {
  font-size: 34px; /* Row 2: 34px */
  font-weight: 700; /* Bold */
  display: block; /* Second line protagonism */
  margin-top: 4px;
  color: var(--primary);
}

.innovation-card p {
  grid-column: 1/-1;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 320px;
}

.text-link {
  grid-column: 1/-1;
  align-self: end;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--primary-hover);
  gap: 8px;
}

/* Stats Section */
#capacidades {
  padding-top: 42px;
  padding-bottom: 46px;
}

#capacidades .section-head {
  margin-bottom: 14px;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 22px;
  background: #fff7f3;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(228, 95, 47, 0.07);
}

.stat {
  position: relative;
  min-height: 92px;
  padding: 10px 26px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.stat > div {
  display: grid;
  grid-template-rows: 40px 34px;
  align-items: start;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: rgba(228, 95, 47, 0.16);
}

.stat-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(228, 95, 47, 0.08);
}

.stat-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 8px;
  white-space: nowrap;
}

.stat div span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* Carousel & Cards */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 2px 20px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 10px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(24, 33, 45, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--surface);
  color: var(--primary-hover);
  border-color: var(--primary-soft);
  transform: scale(1.05);
}

.cards {
  display: flex;
}

.mini-card {
  position: relative;
  flex: 0 0 calc((100% - 25px)/2);
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(24, 33, 45, 0.08);
}

.mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background: var(--mini-photo) center/cover no-repeat;
  z-index: 0;
}

.mini-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 43%;
  width: 14%;
  background: linear-gradient(
    105deg,
    rgba(254, 254, 254, 1) 0%,
    rgba(254, 254, 254, 0.88) 42%,
    rgba(254, 254, 254, 0.28) 78%,
    rgba(254, 254, 254, 0) 100%
  );
  z-index: 1;
}

.mini-card > * {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 14px;
  max-width: 42%;
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 42%;
}

.mini-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 42%;
}

.coming-soon-card {
  --mini-photo: var(--innovation-01);
  min-height: 220px;
  padding: 22px 24px;
}

.coming-soon-card .badge {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.coming-soon-card .badge span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0;
}

.coming-soon-card h3 {
  max-width: 42%;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.12;
  color: var(--ink);
}

.coming-soon-card h3 span {
  display: block;
  color: var(--primary);
}

.coming-soon-card p {
  max-width: 42%;
  color: var(--muted);
  font-size: 12px;
}

.coming-soon-card p strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.coming-soon-card .text-link {
  font-size: 12px;
  color: var(--primary);
  margin-top: 6px;
}

.research-card {
  --mini-photo: var(--innovation-02);
  min-height: 220px;
  padding: 22px 24px;
}

.research-card .badge {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.research-card .badge span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0;
}

.research-card h3 {
  max-width: 42%;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.14;
  color: var(--ink);
  text-transform: none;
}

.research-card h3 span {
  display: block;
  color: var(--primary);
}

.research-card p {
  max-width: 42%;
  color: var(--muted);
  font-size: 12px;
}

.research-card .text-link {
  font-size: 12px;
  color: var(--primary);
  margin-top: 6px;
}

/* News Section */
.news-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px; /* Increased space */
}

.news-top .eyebrow {
  margin: 0;
}

.news-all {
  position: absolute;
  right: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  transition: color 0.2s ease;
}

.news-all:hover {
  color: var(--primary-hover);
}

.news {
  display: flex;
  gap: 20px;
}

.news-card {
  flex: 0 0 calc((100% - 60px)/4);
  min-height: 430px;
  border-radius: var(--radius); /* Consistent corners */
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(24, 33, 45, 0.08);
}

.thumb {
  height: 190px;
  background: var(--surface);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-early .thumb {
  background-image: linear-gradient(180deg, rgba(228, 95, 47, 0.02), rgba(6, 17, 34, 0.18)), var(--early-access); /* Updated primary RGB */
  background-position: center center;
}

.news-community .thumb {
  background-image: linear-gradient(180deg, rgba(228, 95, 47, 0.04), rgba(6, 17, 34, 0.24)), var(--comunidad); /* Updated primary RGB */
}

.news-innovation .thumb {
  background-image: linear-gradient(180deg, rgba(228, 95, 47, 0.04), rgba(6, 17, 34, 0.18)), var(--news-innovation);
}

.news-construction .thumb {
  background-image: linear-gradient(180deg, rgba(228, 95, 47, 0.04), rgba(6, 17, 34, 0.18)), var(--news-construction);
}

.news-company .thumb {
  background-image: linear-gradient(180deg, rgba(228, 95, 47, 0.04), rgba(6, 17, 34, 0.28)), var(--empresa); /* Updated primary RGB */
}

.news-card .body {
  padding: 22px; /* Increased padding */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card small {
  display: block;
  min-height: 13px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.news-card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 8px 0 8px;
  color: var(--ink);
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
  min-height: 78px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.date {
  display: block;
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
}

/* Footer CTA & Footer */
.footer-shell {
  margin-top: 48px;
}

.footer-cta {
  position: relative;
  color: var(--white);
  min-height: 320px;
  padding: 112px var(--x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(90deg, rgba(6, 17, 34, 0.96), rgba(6, 17, 34, 0.72), rgba(6, 17, 34, 0.22)), var(--final-photo) center/cover no-repeat;
}

.footer-cta .cta {
  min-height: 46px;
  padding-inline: 24px;
}

.footer-cta h2 {
  font-size: 33px;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.03em;
}

.footer-cta p {
  margin: 0;
  color: #e5edf8;
  line-height: 1.55;
  max-width: 445px;
}

.footer {
  background: #07131F;
  color: var(--white);
  padding: 48px 0; /* Increased vertical padding */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 32px;
}

.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer p, .footer a {
  color: #c8d0dc;
  font-size: 13px;
  line-height: 1.7;
}

.footer a:hover {
  color: var(--primary);
}

.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 14px;
  color: var(--white);
}

.small {
  grid-column: 1/-1;
  text-align: center;
  color: #aab4c2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px; /* Increased space */
}

/* Responsive Media Queries */
@media (max-width: 1050px) {
  .nav {
    display: none;
  }
  
  .menu {
    display: block;
  }
  
  .hero {
    height: clamp(500px, 54vw, 600px);
    padding-left: 28px;
    padding-right: 0;
  }
  
  .hero__image {
    right: 0;
    width: 72%;
    background-position: right center;
  }
  
  .hero__image::before {
    width: 70%;
  }
  
  .hero-content {
    width: min(455px, 48vw);
    margin-left: 0;
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 38px;
  }
  
  .hero-pages {
    display: none;
  }
  
  .innovation-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat:nth-child(2)::after {
    display: none;
  }
  
  .mini-card {
    flex-basis: 78%;
  }
  
  .news-card {
    flex-basis: 42%;
  }
  
  .footer-cta {
    align-items: flex-start;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container, .wide {
    width: calc(100% - 30px);
  }
  
  .header {
    height: 80px; /* Adjusted slightly */
    padding-inline: 16px;
  }
  
  .brand {
    min-width: 0;
  }
  
  .brand-logo {
    width: 142px;
  }
  
  .header > .cta {
    display: none;
  }
  
  .hero {
    height: auto;
    min-height: 720px;
    align-items: flex-start;
    background: var(--surface);
    padding-left: 16px;
    padding-right: 0;
  }
  
  .hero__image {
    top: 340px;
    left: 0;
    right: 0;
    bottom: auto;
    height: 360px;
    width: 100%;
    transform: none;
    background-size: contain;
    background-position: center top;
  }
  
  .hero__image::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 170px;
    background: linear-gradient(
      to bottom,
      var(--surface) 0%,
      rgba(254, 254, 254, 0.92) 34%,
      rgba(254, 254, 254, 0.45) 68%,
      rgba(254, 254, 254, 0) 100%
    );
  }
  
  .hero-content {
    width: calc(100% - 16px);
    margin: 0;
    padding: 40px 16px 40px 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .innovation-card .copy {
    width: 100%;
    padding: 24px;
  }

  .innovation-card::before {
    top: auto;
    left: 0;
    width: 100%;
    height: 48%;
    background-position: center bottom;
  }

  .innovation-card::after {
    top: 42%;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 18%;
    background: linear-gradient(
      180deg,
      rgba(254, 254, 254, 1) 0%,
      rgba(254, 254, 254, 0.82) 45%,
      rgba(254, 254, 254, 0) 100%
    );
  }
  
  .stats, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    padding: 10px 18px;
  }

  .stat {
    padding: 18px 0;
  }

  .stat::after,
  .stat:nth-child(2)::after {
    display: block;
    top: auto;
    right: 0;
    left: 80px;
    bottom: 0;
    width: auto;
    height: 1px;
  }

  .stat:last-child::after {
    display: none;
  }
  
  .mini-card, .news-card {
    flex-basis: 88%;
  }
  
  .coming-soon-card, .research-card {
    min-height: 330px;
    padding: 24px;
  }
  
  .mini-card::before {
    top: auto;
    left: 0;
    width: 100%;
    height: 46%;
    background-position: center bottom;
  }

  .mini-card::after {
    top: 42%;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 18%;
    background: linear-gradient(
      180deg,
      rgba(254, 254, 254, 1) 0%,
      rgba(254, 254, 254, 0.96) 42%,
      rgba(254, 254, 254, 0.72) 62%,
      rgba(254, 254, 254, 0.18) 100%
    );
  }

  .badge,
  .mini-card h3,
  .mini-card p,
  .coming-soon-card h3,
  .coming-soon-card p,
  .research-card h3,
  .research-card p {
    max-width: 100%;
  }
  
  .coming-soon-card h3, .research-card h3 {
    font-size: 23px;
  }
  
  .coming-soon-card p, .research-card p {
    font-size: 14px;
  }
  
  .coming-soon-card p strong {
    font-size: 16px;
  }
  
  .footer-cta {
    min-height: 360px;
    padding: 72px 18px;
  }
  
  .footer-cta h2 {
    font-size: 28px;
  }
}

/* Final carousel/layout tuning */
.innovation-card,
.mini-card,
.news-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.innovation-card:hover,
.mini-card:hover,
.news-card:hover {
  transform: scale(1.015);
}

.innovation-card {
  min-height: 245px;
}

.innovation-card::before {
  width: 50%;
  background-color: transparent;
  background-size: cover;
  background-position: center;
}

.innovation-card::after,
.mini-card::after {
  display: none;
}

.innovation-card .copy {
  width: 50%;
  padding: 26px;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
}

.innovation-card h3 {
  font-size: 21px;
}

.innovation-card h3 .accent {
  font-size: 28px;
}

.innovation-card p {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
}

.innovation-card .text-link {
  font-size: 11px;
}

#soluciones .circle-icon {
  width: 54px;
  height: 54px;
}

#soluciones .circle-icon img {
  width: 38px;
  height: 38px;
}

#soluciones .innovation-card .copy {
  grid-template-columns: 56px minmax(0, 1fr);
}

#soluciones .innovation-card h3 {
  min-width: 0;
  font-size: clamp(21px, 1.55vw, 23px);
}

#soluciones .innovation-card h3 .accent {
  font-size: clamp(27px, 2.05vw, 30px);
  white-space: nowrap;
}

.footer-mail {
  color: var(--primary);
  font-weight: 700;
}

.footer a.footer-mail {
  color: var(--primary);
}

.footer a.footer-mail:hover {
  color: #c8d0dc;
}

#innovaciones .carousel,
#actualidad .carousel {
  position: relative;
}

#innovaciones .carousel-track,
#actualidad .carousel-track {
  overflow: hidden;
  scroll-behavior: auto;
}

#innovaciones .cards {
  gap: 0;
}

#innovaciones .mini-card {
  flex: 0 0 100%;
  min-height: 260px;
  padding: 26px 30px;
  border-radius: 14px;
  box-shadow: none;
}

#innovaciones .mini-card::before {
  width: 50%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

#innovaciones .badge,
#innovaciones .mini-card h3,
#innovaciones .mini-card p {
  max-width: 46%;
}

#innovaciones .mini-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

#innovaciones .mini-card p {
  font-size: 14px;
}

#innovaciones .coming-soon-card p strong {
  font-size: 16px;
}

#innovaciones .carousel-controls,
#actualidad .carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  margin: 0;
}

#innovaciones .carousel-btn,
#actualidad .carousel-btn {
  pointer-events: auto;
  transform: translateX(-50%);
  z-index: 5;
}

#innovaciones [data-carousel-next],
#actualidad [data-carousel-next] {
  transform: translateX(50%);
}

#actualidad .news {
  gap: 20px;
}

#actualidad .news-card {
  flex: 0 0 calc((100% - 60px) / 4);
  box-shadow: none;
}

#actualidad .thumb {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

#innovaciones .mini-card:hover,
#actualidad .news-card:hover {
  box-shadow: none;
}

@media (max-width: 900px) {
  .innovation-card .copy,
  #innovaciones .badge,
  #innovaciones .mini-card h3,
  #innovaciones .mini-card p {
    max-width: none;
    width: 100%;
  }

  .innovation-card::before,
  #innovaciones .mini-card::before {
    top: auto;
    left: 0;
    width: 100%;
    height: 44%;
    background-size: cover;
  }

  #innovaciones .mini-card {
    min-height: 390px;
  }

  #actualidad .news-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 680px) {
  .news-top {
    flex-direction: column;
    gap: 10px;
  }

  .news-all {
    position: static;
  }

  #actualidad .news-card {
    flex-basis: 100%;
  }
}
