:root {
  --navy: #041732;
  --navy-2: #0b2448;
  --black: #0a0d12;
  --blueargo: #163f56;
  --black-soft: #11161d;
  --charcoal: #171d26;
  --steel: #6d7c90;
  --light: #f5f7fa;
  --white: #ffffff;
  --line: rgba(9, 15, 24, 0.10);
  --line-strong: rgba(9, 15, 24, 0.16);
  --shadow: 0 22px 60px rgba(3, 11, 22, 0.10);
  --shadow-soft: 0 12px 34px rgba(3, 11, 22, 0.08);
  --radius: 26px;
  --radius-sm: 20px;
  --max: 1180px;
  --bg: #041732;
  --bg2: #0b2448;
  --footer-text: #ffffff;
  --footer-muted: rgba(255,255,255,.72);
  --footer-line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  color: var(--black);
  background:
    radial-gradient(900px 360px at 10% 0%, rgba(4,23,50,.055), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f4f6f9 46%, #eef1f5 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - clamp(18px, 4vw, 40px))); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255);
  border-bottom: 1px solid rgba(9, 15, 24, 0.08);
  box-shadow: 0 10px 30px rgba(8, 16, 28, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img { display: block; height: 48px; width: auto; max-width: min(100%, 230px); object-fit: contain; }
.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: .25s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav-links a {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--black);
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, var(--black), var(--navy));
  color: var(--white);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.hero {
  padding: 72px 0 46px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}
.hero-copy,
.hero-visual,
.panel,
.card,
.project-card,
.contact-wrap,
.value-card {
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 58px;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(255,255,255,.10), transparent 58%),
    linear-gradient(135deg, rgba(9,13,18,1), rgba(4,23,50,0.98) 48%, rgba(0, 0, 0, 0.92));
  color: var(--white);
}
.eyebrow,
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .9;
  margin-bottom: 14px;
}
.eyebrow::before,
.page-hero .eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.hero h1,
.page-hero h1 {
  margin: 0 0 14px;
  line-height: .95;
  font-size: clamp(3rem, 7vw, 5.3rem);
}
.hero p,
.page-hero p {
  margin: 0;
  font-size: 1.18rem;
  max-width: 700px;
  line-height: 1.45;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,.22);
}
.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.hero-visual {
  overflow: hidden;
  min-height: 100%;
  position: relative;
  background: linear-gradient(160deg, #dfe7ef, #b9c6d3);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,11,22,.10), rgba(3,11,22,.24));
  z-index: 1;
  pointer-events: none;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 22px 0 68px;
}
.section:nth-of-type(odd) {
  position: relative;
}
.section:nth-of-type(odd)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
  pointer-events: none;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2,
.section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--blueargo);
}
.section-head h2::after,
.section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--navy), var(--black));
}
.section p.lead,
.panel .lead {
  margin: 8px 0 0;
  color: #465669;
  font-size: 1.08rem;
  max-width: 760px;
  line-height: 1.58;
}
.panel {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}
.about-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.media-frame {
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  min-height: 320px;
  background: linear-gradient(135deg, #dde5ee, #bbc8d6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 15, 24, 0.08);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.media-frame:hover img,
.card:hover img,
.project-card:hover img {
  transform: scale(1.03);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery .card {
  overflow: hidden;
  border-radius: 20px;
  min-height: 180px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff, #f4f6f9);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card,
.value-card {
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover,
.value-card:hover,
.project-card:hover,
.panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(3, 11, 22, 0.14);
  border-color: var(--line-strong);
}
.card .thumb,
.project-card .thumb,
.value-card .icon-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #e2e9f0, #c8d4df);
  margin-bottom: 18px;
}
.card .thumb img,
.project-card .thumb img {
  width: 100%;
  height: 220px;
  transition: transform .7s ease;
}
.card h3,
.value-card h3,
.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--black);
}
.card p,
.value-card p,
.project-card p {
  margin: 0;
  color: #49596d;
  font-size: 1.03rem;
  line-height: 1.56;
}
.page-hero {
  padding: 42px 0 24px;
}
.page-hero .panel {
  padding: 46px;
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(255,255,255,.10), transparent 62%),
    linear-gradient(135deg, rgba(10,13,18,1), rgba(4,23,50,1) 55%, rgba(0, 0, 0, 0.9));
  color: var(--white);
}
.page-hero .panel h1,
.page-hero .panel p {
  color: var(--white);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(4,23,50,.08), rgba(9,13,18,.08));
}
.icon-wrap svg {
  width: 30px;
  height: 30px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.project-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
}
.project-card .thumb {
  aspect-ratio: 4 / 3;
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card .content {
  padding: 0 24px 24px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.pagination a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(9,15,24,.12);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.pagination a:hover {
  transform: translateY(-2px);
  border-color: rgba(9,15,24,.2);
}
.pagination a.active {
  background: linear-gradient(135deg, var(--black), var(--navy));
  color: var(--white);
}
.contact-wrap {
  padding: 30px;
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
}
.contact-grid {
  align-items: stretch;
}
.contact-card {
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, rgba(10,13,18,1), rgba(4,23,50,1), rgba(11,36,72,0.90));
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.contact-card .media-frame {
  min-height: 320px;
  background: linear-gradient(180deg, #ffffff, #f3f5f8);
  display: grid;
  place-items: center;
}
.contact-card__frame {
  margin-top: 20px;
  min-height: 280px;
}
.contact-card .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}
.form-grid {
  display: grid;
  gap: 16px;
}
.field {
  background: var(--white);
  border: 1px solid rgba(9,15,24,.12);
  border-radius: 18px;
  padding: 16px 18px;
  color: #607187;
  min-height: 58px;
  display: flex;
  align-items: center;
}
.field.area {
  min-height: 150px;
  align-items: start;
}
.submit {
  width: fit-content;
  background: linear-gradient(135deg, var(--black), var(--navy));
  color: var(--white);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(.96); }
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view { transform: none; }

.site-footer,
.site-footer * {
  font-family: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
}
.site-footer {
  background:
    radial-gradient(1000px 360px at 10% 0%, rgba(255,255,255,.055), transparent 55%),
    linear-gradient(180deg, #11161d, #041732 78%);
  color: var(--footer-text);
  width: 100%;
  display: block;
  padding: 0 !important;
  margin-top: 28px !important;
  margin-bottom: 0 !important;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 16px 0 !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  padding-bottom: 8px;
  align-items: start;
}
.footer-divider {
  width: 1px;
  background: var(--footer-line);
  margin: 6px 0;
}
.footer-col {
  padding: 4px 14px;
  min-height: 110px;
}
.footer-title {
  font-size: 22px;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
  line-height: 1.12;
}
.footer-text {
  margin: 0 0 10px;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.4;
}
.footer-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  margin: 2px 0 8px;
  opacity: .95;
}
.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.social-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.social-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.20);
}
.icon {
  width: 17px;
  height: 17px;
  fill: white;
  opacity: .95;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0 6px;
  border-top: 1px solid var(--footer-line);
  color: rgba(255,255,255,.70);
  font-size: 11.5px;
}
.bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* ===== DETALLE DE PROYECTOS ===== */
.project-detail-section {
  padding-top: 18px;
}
.project-detail-shell {
  display: grid;
  gap: 26px;
}
.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,251,.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.project-detail-media {
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(9, 15, 24, 0.08);
  background: linear-gradient(135deg, #dde5ee, #bbc8d6);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.project-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.project-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(225,231,239,.95), rgba(214,223,233,.92));
  border: 1px solid rgba(9, 15, 24, 0.08);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
  margin-bottom: 18px;
}
.project-detail-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.8vw, 3.35rem);
  line-height: .98;
  color: var(--navy);
}
.project-detail-content p {
  margin: 0 0 24px;
  color: #4b5d73;
  font-size: 1.08rem;
  line-height: 1.65;
}
.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
  align-items: center;
}
.project-detail-card {
  background: linear-gradient(180deg, #ffffff, #f5f8fb);
  border: 1px solid rgba(9, 15, 24, 0.10);
  border-radius: 22px;
  padding: 18px 18px 16px;
}
.project-detail-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--navy);
}
.project-detail-card p {
  margin: 0;
  font-size: 1rem;
  color: #5c6d81;
  line-height: 1.55;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-gallery-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
  box-shadow: var(--shadow-soft);
}
.project-gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .7s ease;
}
.project-gallery-card:hover img {
  transform: scale(1.03);
}
.project-back-row {
  display: flex;
  justify-content: flex-start;
}
.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--black), var(--navy));
  color: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(225,231,239,.95), rgba(214,223,233,.92));
  border: 1px solid rgba(9, 15, 24, 0.08);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .86rem;
  margin-bottom: 18px;
}
.project-detail-text {
  margin: 0 0 24px;
  color: #4b5d73;
  font-size: 1.05rem;
  line-height: 1.65;
}
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.project-meta-item {
  background: linear-gradient(180deg, #ffffff, #f5f8fb);
  border: 1px solid rgba(9, 15, 24, 0.10);
  border-radius: 18px;
  padding: 16px 18px;
}
.project-meta-item strong {
  color: var(--black);
}
.project-meta-label {
  display: block;
  font-size: .96rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.project-highlight-list {
  display: grid;
  gap: 16px;
}
.project-highlight-item {
  background: linear-gradient(180deg, #ffffff, #f5f8fb);
  border: 1px solid rgba(9, 15, 24, 0.10);
  border-radius: 22px;
  padding: 18px;
}
.project-highlight-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--navy);
}
.project-highlight-item p {
  margin: 0;
  font-size: 1rem;
  color: #5c6d81;
  line-height: 1.55;
}

/* ===== SERVICIOS ===== */
.services-detail-section {
  padding-top: 34px;
}
.service-stack {
  display: grid;
  gap: 34px;
}
.service-feature {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,251,.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  min-width: 0;
}
.service-feature__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 28px;
  align-items: center;
}
.service-feature--reverse .service-feature__layout {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
}
.service-feature__content,
.service-feature__media,
.service-mini-card {
  min-width: 0;
}
.service-feature__media {
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(9, 15, 24, 0.08);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
  background: transparent;
}
.service-feature__media--tall {
  aspect-ratio: 16 / 11;
}
.service-feature__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .7s ease;
}
.service-feature:hover .service-feature__media img {
  transform: scale(1.03);
}
.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(225,231,239,.95), rgba(214,223,233,.92));
  border: 1px solid rgba(9, 15, 24, 0.08);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .86rem;
  margin-bottom: 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.service-feature__content h2 {
  line-height: 1.02;
  margin: 0 0 18px;
  color: var(--blueargo);
}
.service-feature__text {
  color: #4b5d73;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 24px;
}
.service-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-mini-card {
  background: linear-gradient(180deg, #ffffff, #f5f8fb);
  border: 1px solid rgba(9, 15, 24, 0.10);
  border-radius: 22px;
  padding: 18px 18px 16px;
}
.service-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--navy);
}
.service-mini-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #5c6d81;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body {
  overflow-x: hidden;
}

.site-footer-host{
  display:block;
  margin:0;
  padding:0;
  line-height:0;
  background: linear-gradient(180deg, #11161d, #041732 78%);
}

.footer-frame{
  display:block;
  width:100%;
  border:0;
  min-height: 220px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.in-view,
  .card,
  .value-card,
  .project-card,
  .panel,
  .btn,
  .nav-links a,
  .social-btn,
  .pagination a,
  .media-frame img,
  .card img,
  .project-card img,
  .project-gallery-card img,
  .service-feature__media img {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 1200px) {
  .hero-copy {
    padding: 48px;
  }

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

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

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

  .nav-links a {
    padding: 11px 14px;
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .split-grid,
  .contact-grid,
  .project-detail-grid,
  .service-feature__layout,
  .service-feature--reverse .service-feature__layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
    aspect-ratio: 16 / 10;
  }

  .page-hero .panel,
  .service-feature,
  .contact-wrap,
  .project-detail-card {
    padding: 26px;
  }

  .media-frame {
    min-height: 300px;
  }

  .project-detail-media {
    aspect-ratio: 4 / 3;
  }

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

  .footer-divider {
    display: none;
  }

  .footer-col {
    padding: 10px 2px;
    min-height: auto;
  }

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

@media (max-width: 900px) {
  .topbar {
    backdrop-filter: none;
  }

  .nav {
    padding: 12px 0;
    min-height: auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand img {
    height: 40px;
    max-width: 185px;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 8px;
    margin: 6px 0 0;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(8, 16, 28, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 16px;
    text-align: center;
    width: 100%;
  }

  .page-hero {
    padding: 28px 0 18px;
  }

  .hero-copy,
  .panel,
  .contact-wrap,
  .service-feature,
  .project-detail-card {
    padding: 22px;
  }

  .project-meta-grid,
  .project-secondary-grid,
  .service-mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .media-frame {
    min-height: 260px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card .media-frame {
    min-height: 240px;
  }

  .footer-inner {
    padding-top: 16px !important;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 22px));
  }

  .hero {
    padding: 18px 0 36px;
  }

  .gallery,
  .cards-3,
  .values-grid,
  .project-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 52px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .submit {
    width: 100%;
    justify-content: center;
  }

  .hero-copy,
  .page-hero .panel,
  .service-feature,
  .project-detail-card,
  .contact-wrap,
  .panel {
    padding: 20px;
  }

  .service-feature__layout {
    gap: 20px;
  }

  .service-feature__media,
  .service-feature__media--tall,
  .hero-visual,
  .media-frame,
  .project-detail-media {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .project-card .content {
    padding: 0 18px 20px;
  }

  .project-gallery-card img {
    height: 240px;
  }
}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 18px);
  }

  .brand img {
    height: 34px;
    max-width: 150px;
  }

  .hero h1,
  .page-hero h1 {
    line-height: 1;
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .hero p,
  .page-hero p,
  .section p.lead,
  .panel .lead,
  .service-feature__text,
  .project-detail-text {
    font-size: 1rem;
  }

  .service-feature__content h2,
  .project-detail-content h2 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .contact-card__frame {
    margin-top: 0;
    min-height: 220px;
  }

  .field {
    padding: 14px 16px;
    min-height: 54px;
  }

  .field.area {
    min-height: 130px;
  }
}

@media (max-width: 430px) {
  .service-kicker,
  .project-chip {
    font-size: .78rem;
    padding: 9px 14px;
  }

  .project-back-link {
    padding: 12px 18px;
  }

  .project-gallery-card img {
    height: 220px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-status {
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 600;
  line-height: 1.4;
}
.form-status-success {
  background: rgba(17, 135, 90, .10);
  color: #0d6b48;
  border: 1px solid rgba(17, 135, 90, .20);
}
.form-status-error {
  background: rgba(179, 49, 49, .08);
  color: #8f2323;
  border: 1px solid rgba(179, 49, 49, .16);
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: #243447;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #607187;
  opacity: 1;
}
.field:focus-within {
  border-color: rgba(4,23,50,.28);
  box-shadow: 0 0 0 4px rgba(4,23,50,.08);
}
.field textarea {
  min-height: 118px;
}
.submit {
  border: 0;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.submit:hover {
  transform: translateY(-2px);
}
.submit:active {
  transform: translateY(0);
}

.project-detail-section {
  padding-top: 18px;
}

.project-detail-section .container {
  display: grid;
  gap: 24px;
}

.project-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
/* ===== AJUSTES FINALES RESPONSIVE: PROYECTOS + CONTACTO ===== */
.project-secondary-grid {
  align-items: stretch;
}

.project-secondary-grid > .panel {
  height: 100%;
}

.project-secondary-grid .section-head {
  margin-bottom: 16px;
}

.project-secondary-grid .section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.08;
}

.project-secondary-grid .panel {
  padding: 26px;
}

.project-highlight-item {
  padding: 16px;
}

.project-highlight-item h3,
.project-meta-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-wrap {
  overflow: hidden;
}

.contact-grid {
  align-items: stretch;
}

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

.contact-card__frame {
  margin-top: 0;
  min-height: 300px;
  aspect-ratio: 4 / 3;
}

.contact-card .media-frame {
  min-height: 0;
}

.contact-card .media-frame img {
  max-width: min(100%, 480px);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .project-secondary-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-secondary-grid .panel {
    padding: 22px;
  }

  .contact-grid {
    gap: 18px;
  }

  .contact-wrap {
    padding: 20px;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-card__frame {
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }

  .contact-card .media-frame img {
    max-width: min(100%, 340px);
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .project-back-link {
    width: 100%;
    justify-content: center;
  }

  .project-secondary-grid .panel,
  .project-highlight-item,
  .project-meta-item {
    padding: 18px;
  }

  .project-secondary-grid .section-head h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .project-secondary-grid .lead,
  .project-highlight-item p {
    font-size: .98rem;
    line-height: 1.55;
  }

  .contact-wrap,
  .contact-card,
  .contact-wrap > .panel {
    padding: 16px;
  }

  .contact-grid {
    gap: 14px;
  }

  .contact-card__frame {
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }

  .contact-card .media-frame img {
    max-width: min(100%, 260px);
    padding: 14px;
  }

  .field {
    border-radius: 16px;
  }
}

@media (max-width: 430px) {
  .project-secondary-grid .panel,
  .project-highlight-item,
  .project-meta-item,
  .contact-wrap,
  .contact-card,
  .contact-wrap > .panel {
    padding: 14px;
  }

  .project-secondary-grid {
    gap: 14px;
  }

  .project-secondary-grid .section-head {
    margin-bottom: 12px;
  }

  .project-secondary-grid .section-head h2::after {
    width: 60px;
    margin-top: 10px;
  }

  .project-highlight-list {
    gap: 12px;
  }

  .contact-card__frame {
    aspect-ratio: 5 / 3;
    min-height: 160px;
  }

  .contact-card .media-frame img {
    max-width: min(100%, 220px);
    padding: 10px;
  }

  .field {
    min-height: 52px;
    padding: 13px 14px;
  }

  .field.area {
    min-height: 122px;
  }
}
