:root {
  --blue: #0067b1;
  --blue-dark: #004f88;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee6;
  --soft: #f3f7fb;
  --white: #ffffff;
  --accent: #8a6f2a;
  --shadow: 0 16px 40px rgba(31, 41, 51, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-logo {
  width: 252px;
  max-width: 52vw;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a,
.lang-toggle button,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.main-nav a {
  padding: 0 12px;
  color: #3f4650;
}

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

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.lang-toggle button {
  min-width: 42px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-toggle button.active {
  color: var(--white);
  background: var(--blue);
}

.hero {
  background:
    linear-gradient(120deg, rgba(0, 103, 177, .95), rgba(31, 41, 51, .86)),
    url("../images/Graduados-Social-cat.png") right 9% center / min(430px, 64vw) no-repeat;
  color: var(--white);
}

.hero .section-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(220px, 1fr);
  align-items: center;
  gap: 36px;
  padding: 86px 0;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.hero .button.primary {
  color: var(--blue-dark);
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .48);
}

.section {
  padding: 82px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.feature,
.service,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature,
.service {
  padding: 26px;
}

.feature p,
.service p {
  margin: 12px 0 0;
  color: var(--muted);
}

.service ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.service li + li {
  margin-top: 8px;
}

.services-overview .section-head {
  align-items: start;
}

.eyebrow.dark {
  color: var(--accent);
}

.service-wide {
  padding: 30px;
}

.service-list {
  columns: 2;
  column-gap: 46px;
}

.service-list li {
  break-inside: avoid;
  margin: 0 0 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.identity-panel {
  padding: 28px;
  border-left: 5px solid var(--blue);
  background: var(--soft);
}

.identity-panel img {
  display: block;
  width: 260px;
  margin-bottom: 24px;
}

.identity-panel p {
  margin: 0;
  color: var(--muted);
}

.page-title {
  padding: 62px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue), #39424e);
}

.page-title p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.12rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
  gap: 30px;
  align-items: start;
}

.contact-panel {
  padding: 38px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(31, 41, 51, .08);
}

.contact-panel h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.contact-details {
  position: relative;
  overflow: hidden;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .14), transparent 38%),
    linear-gradient(145deg, var(--blue-dark), #17364f 82%);
}

.contact-details::after {
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
}

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

.contact-eyebrow {
  margin: 0 0 8px;
  color: #a9d9fb;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-intro {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .75);
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, .07);
  transition: transform .2s ease, background .2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
}

.contact-icon,
.office-pin {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
}

.contact-icon svg,
.office-pin svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-copy {
  min-width: 0;
}

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

.contact-copy small {
  color: rgba(255, 255, 255, .62);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-copy strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: .98rem;
}

.office-section {
  margin-top: 27px;
}

.office-heading {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.office-list {
  display: grid;
  gap: 10px;
}

.office-card {
  display: flex;
  gap: 13px;
  padding: 15px;
  border-radius: 12px;
  color: var(--ink);
  font-style: normal;
  background: var(--white);
}

.office-pin {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--blue);
  background: var(--soft);
}

.office-card > span:last-child {
  min-width: 0;
}

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

.office-card strong {
  margin-bottom: 3px;
  font-size: .98rem;
}

.office-card small {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.contact-web {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-web:hover {
  color: var(--white);
}

.contact-form-panel {
  border-color: #e2e8f0;
}

.contact-form-panel form {
  margin-top: 25px;
}

.contact-form-panel input,
.contact-form-panel textarea,
.contact-form-panel select {
  border-color: #dbe3ec;
  border-radius: 10px;
  background: #fbfcfe;
}

.contact-form-panel input,
.contact-form-panel select {
  min-height: 52px;
}

.contact-form-panel textarea {
  min-height: 175px;
}

.contact-form-panel .button.primary {
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 10px;
}

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

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

label {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(0, 103, 177, .18);
  border-color: var(--blue);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  color: var(--muted);
  font-size: .94rem;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.site-footer {
  padding: 34px 0;
  color: #d7dde6;
  background: #242b33;
}

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

.footer-inner p {
  margin: 0;
}

[data-lang="es"],
html.lang-es [data-lang="ca"] {
  display: none !important;
}

html.lang-es [data-lang="es"] {
  display: revert !important;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

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

.legal-note {
  padding: 18px 20px;
  border-left: 5px solid var(--accent);
  background: #fff8e8;
  color: #554315;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d7dde6;
  font-size: .92rem;
}

.footer-links a,
.footer-links button {
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  background: transparent;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-copy p {
  margin: 6px 0 4px;
  color: var(--muted);
}

.cookie-copy a {
  color: var(--blue);
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner .button.secondary {
  color: var(--ink);
  border-color: var(--line);
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions,
  .main-nav {
    width: 100%;
  }

  .nav-actions {
    align-items: flex-start;
    justify-content: space-between;
  }

  .main-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero .section-inner,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(120deg, rgba(0, 103, 177, .96), rgba(31, 41, 51, .9)),
      url("../images/Graduados-Social-cat.png") right -40px bottom 24px / 270px no-repeat;
  }

  .hero .section-inner {
    min-height: 520px;
    padding: 70px 0 130px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-cols,
  .three-cols,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    columns: 1;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .section-inner,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .brand-logo {
    max-width: 76vw;
  }

  .nav-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .main-nav a {
    padding: 0 10px;
    white-space: nowrap;
  }

  .section {
    padding: 58px 0;
  }

  .contact-panel {
    padding: 26px 22px;
    border-radius: 14px;
  }

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