:root {
  --blue: #25245b;
  --green: #35b54a;
  --pale: #eef8f4;
  --soft-blue: #edf3f8;
  --ink: #20223a;
  --muted: #5d6275;
  --white: #ffffff;
  --line: #d9e7e2;
  --shadow: 0 20px 55px rgba(37, 36, 91, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(37, 36, 91, .08);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 230px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 6px 0;
  background: var(--blue);
  border-radius: 4px;
}

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at top right, rgba(53, 181, 74, .13), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--blue);
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 24px;
}

.hero-text {
  font-size: 20px;
  color: var(--muted);
  max-width: 620px;
  margin: 24px 0 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 12px 28px rgba(53, 181, 74, .25);
}

.btn.secondary {
  border-color: rgba(37, 36, 91, .20);
  color: var(--blue);
  background: white;
}

.btn.linkedin {
  background: var(--blue);
  color: white;
}

.hero-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.hero-card-caption {
  padding: 24px;
  border-left: 5px solid var(--green);
}

.hero-card-caption strong,
.hero-card-caption span {
  display: block;
}

.hero-card-caption strong {
  color: var(--blue);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 20px;
}

.hero-card-caption span {
  color: var(--muted);
  margin-top: 4px;
}

.section {
  padding: 82px 0;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.split p {
  color: var(--muted);
  margin-top: 0;
  font-size: 18px;
}

.intro {
  background: white;
}

.solutions {
  background: var(--soft-blue);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.solution-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(37, 36, 91, .08);
}

.solution-card img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: 16px;
}

.solution-card h3 {
  margin-bottom: 8px;
}

.solution-card p {
  color: var(--muted);
  margin: 0;
}

.value {
  background:
    linear-gradient(135deg, rgba(37, 36, 91, .96), rgba(37, 36, 91, .88)),
    url("assets/areas-comunes.png") center/cover;
  color: white;
}

.value h2, .value .eyebrow {
  color: white;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.value-panel {
  max-width: 560px;
}

.value-panel p:last-child {
  color: rgba(255,255,255,.82);
  font-size: 18px;
}

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

.value-list div {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 20px;
}

.value-list strong, .value-list span {
  display: block;
}

.value-list strong {
  font-size: 18px;
  margin-bottom: 6px;
}

.value-list span {
  color: rgba(255,255,255,.78);
}

.cta {
  padding: 72px 0;
  background: white;
}

.cta-box {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 30px;
  text-align: center;
  padding: 54px 28px;
}

.cta-box p {
  color: var(--muted);
  font-size: 18px;
  margin: 14px auto 26px;
}

.contact {
  background: #f7fbfa;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.contact p {
  color: var(--muted);
  font-size: 18px;
}

.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.footer {
  padding: 34px 0 24px;
  background: var(--blue);
  color: rgba(255,255,255,.82);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  width: 190px;
  background: white;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-links a,
.legal-open {
  color: white;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.copyright {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255,255,255,.62);
}

.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(53,181,74,.35);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.legal-modal.open {
  display: block;
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.legal-dialog {
  position: relative;
  width: min(920px, calc(100% - 32px));
  max-height: 86vh;
  margin: 7vh auto;
  overflow: auto;
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

.legal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.legal-content h3 {
  margin-top: 24px;
  color: var(--blue);
  font-family: "Montserrat", system-ui, sans-serif;
}

.legal-content p {
  color: var(--muted);
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    background: white;
    border-bottom: 1px solid rgba(37, 36, 91, .10);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }

  .hero-grid,
  .split,
  .value-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

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

@media (max-width: 640px) {
  .brand img { width: 175px; }
  .nav { min-height: 74px; }
  .nav-links { top: 74px; }
  .hero-card img { height: 230px; }
  .solution-card {
    grid-template-columns: 1fr;
  }
  .solution-card img {
    height: 190px;
  }
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
  .floating-contact {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
  }
}
