@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --c1: #EAF2F8;
  --c2: #C9DCE8;
  --c3: #8AA9C4;
  --c4: #3E5C76;
  --c5: #1D2D44;
  --white: #ffffff;
  --text: #1d2d44;
  --muted: #587086;
  --border: rgba(62, 92, 118, .18);
  --shadow: 0 22px 55px rgba(29, 45, 68, .13);
  --radius: 18px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 105px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29,45,68,.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 58px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong { font-size: 13px; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 5px; letter-spacing: .18em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 700; color: var(--c4); transition: .2s; }
.nav-links a:hover { color: var(--c5); }

.nav-cta {
  background: var(--c5);
  color: white !important;
  padding: 12px 17px;
  border-radius: 10px;
}

.nav-login {
  border: 1px solid var(--c5);
  color: var(--c5) !important;
  padding: 11px 16px;
  border-radius: 10px;
  transition: .2s;
}

.nav-login:hover {
  background: var(--c5);
  color: white !important;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--c5);
  font-size: 28px;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(138,169,196,.28), transparent 30%),
    linear-gradient(135deg, var(--c1), #fff 58%);
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  color: var(--c4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  margin-bottom: 16px;
}

.eyebrow.light { color: var(--c2); }

.hero h1 {
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 760px;
}

.hero h1 span { color: var(--c4); }

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  margin-top: 27px;
}

.hero-actions { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 14px 21px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--c5); color: white; box-shadow: 0 12px 28px rgba(29,45,68,.18); }
.btn-outline { border-color: var(--c4); color: var(--c5); background: rgba(255,255,255,.5); }
.btn-light { background: white; color: var(--c5); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 650px;
  margin-top: 60px;
}

.hero-stats div {
  padding-top: 17px;
  border-top: 1px solid var(--border);
}

.hero-stats strong { display: block; font-size: 24px; }
.hero-stats span { color: var(--muted); font-size: 11px; }

.hero-visual { position: relative; min-height: 470px; }

.visual-card {
  position: absolute;
  inset: 0 30px 40px 30px;
  border-radius: 30px;
  background: linear-gradient(145deg, var(--c5), var(--c4));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.main-card::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  right: -80px;
  top: -80px;
}

.blueprint {
  position: absolute;
  inset: 70px 50px;
  border: 1px solid rgba(255,255,255,.18);
}

.blueprint .line { position: absolute; background: rgba(255,255,255,.35); }
.line-a { width: 78%; height: 1px; left: 11%; top: 27%; }
.line-b { height: 70%; width: 1px; top: 15%; left: 31%; }
.line-c { height: 1px; width: 54%; left: 30%; bottom: 24%; }

.blueprint .circle {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  right: 12%;
  top: 24%;
}

.blueprint .square {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255,255,255,.45);
  left: 14%;
  bottom: 17%;
}

.visual-label {
  position: absolute;
  left: 50px;
  bottom: 38px;
  color: white;
}

.visual-label small { display: block; color: var(--c2); font-size: 10px; letter-spacing: .2em; }
.visual-label strong { font-size: 21px; letter-spacing: .04em; }

.floating-card {
  position: absolute;
  right: -4px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 19px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.check {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c2);
  color: var(--c5);
  font-weight: 900;
}

.floating-card strong { display: block; font-size: 13px; }
.floating-card small { color: var(--muted); font-size: 11px; }

.section-heading h2,
.values-intro h2 {
  font-size: clamp(35px, 4vw, 55px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.heading-line {
  width: 70px;
  height: 4px;
  margin-top: 20px;
  background: var(--c3);
  border-radius: 20px;
}

.centered { text-align: center; max-width: 760px; margin: 0 auto 55px; }
.centered .eyebrow { margin-bottom: 13px; }
.centered > p:last-child { color: var(--muted); margin-top: 18px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 70px;
  margin-top: 55px;
  align-items: center;
}

.about-copy { max-width: 760px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy .lead { color: var(--text); font-size: 22px; line-height: 1.45; font-weight: 600; }

.about-panel {
  padding: 42px;
  background: var(--c1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-number { display: block; font-size: 50px; line-height: 1; font-weight: 800; color: var(--c4); margin-bottom: 18px; }
.about-panel h3 { font-size: 21px; margin-bottom: 10px; }
.about-panel p { color: var(--muted); font-size: 14px; }

.dark-section {
  background: var(--c5);
  color: white;
}

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

.statement-card {
  position: relative;
  min-height: 370px;
  padding: 45px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.statement-card.statement-accent { background: var(--c4); }

.card-number {
  position: absolute;
  top: 27px;
  right: 30px;
  color: rgba(255,255,255,.35);
  font-weight: 800;
  font-size: 12px;
}

.statement-card h2 { max-width: 500px; font-size: 36px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 22px; }
.statement-card > p:last-child { color: rgba(255,255,255,.75); max-width: 580px; }

.services { background: var(--c1); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.service-card {
  min-height: 265px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 29px;
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.service-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--c2);
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  color: var(--c5);
  margin-bottom: 25px;
}

.service-card h3 { font-size: 18px; line-height: 1.25; margin-bottom: 13px; }
.service-card p { color: var(--muted); font-size: 13px; }

.values-section { background: white; }

.values-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.values-intro > p:last-child { color: var(--muted); margin-top: 22px; max-width: 500px; }

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.values-list span {
  border: 1px solid var(--border);
  color: var(--c4);
  background: var(--c1);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
}

/* PROYECTOS */

.projects-section {
  background: linear-gradient(180deg, var(--c1) 0%, #fff 100%);
  border-top: 1px solid rgba(29,45,68,.06);
}

.project-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.project-button {
  min-height: 82px;
  padding: 18px 24px;
  border: 1px solid rgba(62,92,118,.25);
  border-radius: 14px;
  background: white;
  color: var(--c5);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  text-align: left;
  transition: .22s ease;
  box-shadow: 0 7px 20px rgba(29,45,68,.05);
}

.project-button:hover {
  background: var(--c5);
  color: white;
  border-color: var(--c5);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(29,45,68,.15);
}

.clients-image-wrap {
  max-width: 1050px;
  margin: 48px auto 0;
  text-align: center;
}

.clients-caption {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--c4);
  margin-bottom: 15px;
}

.clients-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 15px 45px rgba(29,45,68,.09);
}

/* MODAL */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.project-modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,24,38,.76);
  backdrop-filter: blur(7px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1050px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
  padding: 38px;
  animation: modalIn .22s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--c1);
  color: var(--c5);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.modal-header { padding-right: 55px; margin-bottom: 27px; }
.modal-header h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }

.modal-project { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 28px; }
.modal-project:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.modal-project h3 { font-size: 22px; line-height: 1.2; margin-bottom: 13px; color: var(--c5); }
.modal-project p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-gallery figure {
  margin: 0;
  background: var(--c1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-gallery img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .25s;
}

.project-gallery img:hover { transform: scale(1.025); }

.contact-section { background: var(--c5); padding: 85px 0; }

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  color: white;
}

.contact-card h2 { font-size: clamp(35px, 4vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.contact-card p:not(.eyebrow) { color: rgba(255,255,255,.72); max-width: 650px; margin-top: 15px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; white-space: nowrap; }
.contact-actions > span { color: var(--c2); font-size: 12px; }

.footer { padding: 28px 0; background: #142235; color: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer strong { font-size: 12px; letter-spacing: .08em; }
.footer p { color: rgba(255,255,255,.55); font-size: 11px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { min-height: 420px; max-width: 650px; width: 100%; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-actions { align-items: flex-start; }
}

@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .section { padding: 78px 0; }

  .nav { min-height: 70px; }
  .brand strong { font-size: 10px; }
  .brand-logo { width: 48px; height: 48px; flex-basis: 48px; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { text-align: center; margin-top: 4px; }

  .hero { padding: 65px 0; min-height: auto; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero-text { font-size: 16px; }
  .hero-stats { margin-top: 45px; }
  .hero-stats strong { font-size: 20px; }

  .about-grid, .mission-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { margin-top: 40px; }
  .statement-card { min-height: auto; padding: 35px; }
  .statement-card h2 { font-size: 30px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }

  .project-buttons { grid-template-columns: 1fr; }
  .project-button { min-height: 70px; }

  .modal-dialog { padding: 26px 18px; border-radius: 18px; max-height: 94vh; }
  .modal-header { padding-right: 48px; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .project-gallery img { height: 180px; }

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

@media (max-width: 470px) {
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-visual { min-height: 350px; }
  .visual-card { inset: 0 12px 30px 12px; }
  .blueprint { inset: 50px 35px; }
  .floating-card { right: 0; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery img { height: 230px; }
}
