:root {
  --texto-principal: #071B33;
  --botones: #46617D;
  --fondo: #C4CDCD;
  --encabezado: #F3F5F7;
  --text-secondary: #4A5568;
  --text-muted: #7A8794;
  --border: #E2E5E7;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  color: #1C2B3D;
  line-height: 1.5;
}

h1, h2, h3, .subtitle {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  color: var(--texto-principal);
}

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

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 32px;
  background: var(--encabezado);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav__logo {
  display: block;
  height: 150px;
}
.nav__logo img {
  height: 100%;
  width: auto;
  display: block;
  background: transparent;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--texto-principal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav__links a.is-active { border-bottom-color: var(--texto-principal); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--texto-principal); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 32px;
  text-align: center;
  background-color: var(--texto-principal);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,27,51,0.55) 0%, rgba(7,27,51,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn--primary { background: var(--botones); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }

/* ===== SECTIONS ===== */
.section { padding: 72px 48px; max-width: 1100px; margin: 0 auto; }
.section--alt { background: var(--fondo); max-width: none; }
.section--dark { background: var(--texto-principal); max-width: none; }
.section__title { font-size: 30px; margin-bottom: 28px; }
.section__title--center { text-align: center; }
.section__title--light { color: #fff; }
.section__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section__note { font-size: 13px; color: var(--text-muted); }
.section__footnote { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

.divider { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.grid-2--reverse { grid-template-columns: 1fr 1.1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--botones);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.subtitle { font-size: 22px; margin-bottom: 12px; }
p { color: var(--text-secondary); font-size: 14px; }

.img-block { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }

.card-flag {
  border-top: 3px solid var(--botones);
  padding-top: 16px;
}
.card-flag h3 { font-size: 17px; margin-bottom: 6px; }
.card-flag p { font-size: 13px; }

/* ===== SERVICES ===== */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  border-top: 3px solid var(--botones);
  padding: 20px 18px;
  background: var(--white);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(7,27,51,0.06);
  min-height: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.service-icon {
  width: 100px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #153b63;
  color: var(--texto-principal);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 21px;
  font-weight: 600;
}
.service-card h3 { font-size: 17px; margin: 0; }

/* ===== PROJECT CARDS ===== */
.project-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(7,27,51,0.12); }
.project-card__media { position: relative; height: 180px; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 18px; }
.project-card__body h3 { font-size: 15px; margin-bottom: 6px; }
.project-card__body p { font-size: 13px; margin-bottom: 8px; }
.location { font-size: 12px; color: var(--text-muted); }

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--texto-principal);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--texto-principal);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}

/* ===== CAROUSEL ===== */
.carousel__slide { position: absolute; inset: 0; display: none; }
.carousel__slide.is-active { display: block; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.88);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 2;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.dot.is-active { background: #fff; }

/* ===== LOGOS ===== */
.logos-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; align-items: center; }
.client-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.2s, opacity 0.2s;
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; }

/* ===== FORM ===== */
.form input, .form textarea {
  width: 100%;
  border: none;
  border-radius: 5px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}
.form textarea { height: 90px; resize: none; }
.form__msg { display: block; margin-top: 10px; font-size: 13px; color: var(--fondo); }
.contact-info p { color: var(--fondo); font-size: 14px; margin-bottom: 10px; }
.contact-info strong { color: #fff; }

.footer {
  text-align: center;
  padding: 18px;
  background: var(--encabezado);
  color: #fff;
  font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav { padding: 8px 20px; }
  .nav__logo { height: 100px; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--encabezado);
    padding: 16px 32px;
    gap: 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .hero h1 { font-size: 30px; }
  .grid-2, .grid-2--reverse, .grid-3, .grid-projects, .grid-services {
    grid-template-columns: 1fr;
  }
  .section { padding: 48px 24px; }
  .hero { padding: 96px 24px; }
}

.service-icon svg {
  width: 94px;
  height: 70px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header centrado: logo protagonista con navegación debajo */
.nav {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 32px 14px;
}
.nav__logo { height: 170px; margin: 0 auto; }
.nav__links { justify-content: center; width: 100%; }
.nav__toggle { position: absolute; right: 20px; bottom: 18px; }
.project-placeholder { width:100%; height:100%; min-height:220px; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; background:#eef2f5; color:var(--texto-principal); font-family:'Barlow Semi Condensed',sans-serif; font-size:24px; font-weight:600; }
.project-placeholder small { font-family:'Inter',sans-serif; font-size:12px; font-weight:400; color:var(--text-muted); margin-top:6px; }
@media (max-width: 860px) {
  .nav { padding: 8px 20px 12px; }
  .nav__logo { height: 115px; }
  .nav__toggle { bottom: 16px; }
  .nav__links { top: 100%; }
}
