:root {
  --ink: #1c2e42;
  --ink-strong: #0f263d;
  --muted: #647485;
  --line: #dfe5ea;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --dark: #0c0e10;
  --accent: #00b8b0;
  --accent-2: #e6b94f;
  --max-width: 1120px;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(15, 38, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color:#1c2e42;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 3px solid var(--accent);
  background: var(--paper);
  color: var(--ink-strong);
  box-shadow: 0 8px 22px rgba(15, 38, 61, 0.08);
}

.header-inner {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 12px 0 0 var(--accent), 0 12px 0 var(--accent), 12px 12px 0 var(--accent);
  transform: translateY(-3px) scale(0.75);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink-strong);
  color: var(--paper);
  cursor: pointer;
}

.menu-toggle-line {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-menu-open .menu-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(12, 14, 16, 0.98) 0%, rgba(12, 14, 16, 0.9) 42%, rgba(12, 14, 16, 0.46) 66%, rgba(12, 14, 16, 0.2) 100%),
    url("../images/hero-sebastian.webp") right bottom / auto 100% no-repeat,
    var(--dark);
  overflow: hidden;
}

.hero-grid {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-block: 68px 128px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
}

.hero-kicker {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  line-height: 1.1;
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--paper);
  font-size: clamp(2.7rem, 11vw, 5rem);
  line-height: 0.95;
}

.hero-name {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.03;
}

.hero-name strong {
  color: var(--paper);
}

.hero-summary {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.98rem, 2vw, 1.13rem);
  line-height: 1.25;
}

.featured-projects {
  position: relative;
  z-index: 3;
  margin-top: -78px;
  padding: 0 0 20px;
  background: transparent;
}

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

.project-card {
  margin: 0;
  background: var(--ink-strong);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 8px solid var(--ink-strong);
}

.section-pad {
  padding-block: 30px;
}

.content-grid {
  display: grid;
  gap: 34px;
  align-items: start;
}

.section-eyebrow {
  margin: 0 0 6px;
  color: #004591;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile h2,
.contact h2 {
  margin: 0 0 10px;
  color: #1c2e42;
  font-size: 1rem;
  line-height: 1.2;
}

.lead {
  margin-top: 0;
  color: var(--ink-strong);
  font-weight: 800;
  text-transform: uppercase;
}

.profile-copy p {
  font-size: 0.98rem;
}

.signature {
  color: var(--ink-strong);
  font-weight: 700;
}

.strengths-text {
  margin-top: 72px;
}

.strengths-text h2 {
  margin: 0 0 12px;
  color: var(--ink-strong);
  font-size: 0.98rem;
  line-height: 1.2;
}

.strength-list {
  display: grid;
  gap: 20px;
}

.strength-list h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.98rem;
  line-height: 1;
}

.strength-list p {
  margin: 0;
}

.product-showcase {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 22px;
  align-items: start;
}

.product-showcase figure {
  margin: 0;
}

.product-showcase img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius);
}

.profile-caption {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.15;
}

.contact {
  padding-bottom: 0;
  background: var(--paper);
}

.contact-panel {
  padding: 28px;
  border-top: 20px solid #dce2e6;
  background: var(--soft);
}

.contact-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.contact-grid p {
  margin: 0 0 2px;
  font-weight: 700;
}

.contact-grid a {
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-weight: 800;
}

.contact-note {
  margin: 28px 0 0;
}

.site-footer {
  padding-block: 24px;
  background: #dce2e6;
  color: var(--ink);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0 0 4px;
  line-height: 1.15;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 38, 61, 0.24);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.whatsapp-float svg {
  width: 33px;
  height: 33px;
  fill: currentColor;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe5d;
  box-shadow: 0 18px 34px rgba(15, 38, 61, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 92px;
  }

  .header-inner {
    min-height: 68px;
    align-items: center;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .brand {
    max-width: calc(100% - 62px);
    white-space: normal;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .site-header.is-menu-open .site-nav {
    max-height: 280px;
    padding: 8px 0 10px;
    border-top: 1px solid var(--line);
    visibility: visible;
    opacity: 1;
  }

  .site-nav a {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    font-size: 0.82rem;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 700px) {
  .project-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr);
  }

  .product-showcase {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(12, 14, 16, 0.98) 0%, rgba(12, 14, 16, 0.9) 58%, rgba(12, 14, 16, 0.56) 100%),
      url("../images/hero-sebastian.webp") 70% bottom / auto 100% no-repeat,
      var(--dark);
  }

  .hero-grid {
    min-height: 560px;
    padding-block: 52px 112px;
  }

  .hero-copy {
    width: min(100%, 520px);
  }
}

@media (max-width: 640px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(12, 14, 16, 0.98) 0%, rgba(12, 14, 16, 0.9) 58%, rgba(12, 14, 16, 0.68) 100%),
      url("../images/hero-sebastian.webp") right bottom / auto 58% no-repeat,
      var(--dark);
  }

  .hero-grid {
    min-height: 540px;
    align-items: flex-start;
    padding-block: 36px 112px;
  }

  .hero-copy {
    width: 100%;
  }

  .featured-projects {
    margin-top: -52px;
  }
}

/* Ajustes de texto para la sección de servicios */
#servicios .strength-list h3 {
  color: #004591;
}

#servicios .strength-list > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#servicios .strength-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

#servicios .strength-list p + p {
  margin-top: 8px;
}

#servicios .services-interview {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}



/* Ajustes finales según la versión aprobada */
body {
  color: #1c2e42;
}

.language-switch {
  margin: 16px 0 0;
  color: #004591;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-switch a,
.contact-grid a,
.site-footer a,
.blue-link-text {
  color: #004591;
}

.language-switch a {
  text-decoration: none;
}

.dotted-divider {
  width: 48%;
  margin: 34px 0 28px;
  border-top: 2px dotted #aab5bf;
}

.services-copy h3{
    color:#004591;
    margin-top:24px;
    margin-bottom:2px;
}

.services-copy > p {
  margin-top: 0;
}

.section-rule {
  margin: 28px 0 18px;
  border-top: 1px solid #aab5bf;
}

.agency-block {
  margin-top: 52px;
}

.agency-block img {
  width: min(250px, 100%);
  margin-bottom: 14px;
}

.site-footer a {
  font-weight: 700;
}

.language-switcher {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1c2e42;
  font-size: 0.78rem;
  line-height: 1.2;
}

.language-switcher a {
  color: #004591;
  font-weight: 700;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  text-decoration: underline;
}

.language-switcher [aria-current="page"] {
  font-weight: 700;
}
