:root {
  --blue-900: #063266;
  --blue-700: #0A4182;
  --blue-500: #0f8fcf;
  --aqua: #26c6da;
  --orange: #f58220;
  --ink: #132233;
  --muted: #667789;
  --line: #dce7ef;
  --soft: #f4f9fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 55, 95, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.sr-only, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 30;
  padding: 10px 14px;
  background: var(--blue-900);
  color: var(--white);
}

.topbar {
  background: var(--blue-900);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,231,239,.8);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--blue-900);
}
.brand__logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7,55,95,.12);
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--aqua));
  letter-spacing: 0;
}
.brand__text { max-width: 150px; line-height: 1.12; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: opacity .45s ease, visibility .45s ease;
}
.site-loader img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  border-radius: 16px;
  animation: logoPulse 1.1s ease-in-out infinite;
}
body.is-loaded .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(.96); opacity: .78; }
  50% { transform: scale(1.04); opacity: 1; }
}
.nav__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  color: #35475b;
}
.nav__menu a:hover, .link:hover { color: var(--blue-700); }
.nav__toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(245,130,32,.22);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost {
  background: var(--white);
  color: var(--blue-900);
  border-color: var(--line);
  box-shadow: none;
}
.btn--small { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.link { color: var(--blue-700); font-weight: 800; }

.hero {
  padding-top: 84px;
  background:
    linear-gradient(180deg, rgba(244,249,252,.95), rgba(255,255,255,1) 72%),
    radial-gradient(circle at 80% 10%, rgba(38,198,218,.18), transparent 34%);
}
.hero--water {
  background:
    linear-gradient(180deg, rgba(244,249,252,.93), rgba(255,255,255,.92)),
    url("../img/textura-hero/textura-hero.jpg") center/cover no-repeat;
}
.hero__grid, .about__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 58px;
}
.hero__center {
  min-height: 660px;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero__center .hero__copy {
  max-width: 980px;
  margin: 0 auto;
}
.hero__center h1,
.hero__center p {
  margin-left: auto;
  margin-right: auto;
}
.hero__center .hero__actions {
  justify-content: center;
}
.hero__center .hero__stats {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue-700);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Anton, Montserrat, Arial, sans-serif; font-weight: 400; letter-spacing: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
}
h2 {
  color: var(--blue-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin-bottom: 16px;
}
h3 { color: var(--blue-900); font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.hero p, .page-hero p { max-width: 680px; font-size: 19px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}
.hero__stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
}
.hero__stats dt { color: var(--blue-700); font-size: 30px; font-weight: 800; line-height: 1; }
.hero__stats dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.visual {
  min-height: 460px;
  border-radius: 8px;
  border: 1px dashed rgba(0,95,158,.38);
  background:
    linear-gradient(135deg, rgba(10,65,130,.13), rgba(38,198,218,.17)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.7) 0 12px, rgba(255,255,255,.35) 12px 24px);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  color: var(--blue-900);
  font-weight: 800;
  text-align: center;
  padding: 24px;
}
.hero__visual { min-height: 620px; }
.visual.small { min-height: 220px; box-shadow: none; font-size: 13px; }

.image-card {
  position: relative;
  min-height: 460px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
}
.image-card img,
.service-card--photo > img,
.product-grid img,
.quote-card img,
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7,55,95,.72));
  pointer-events: none;
}
.image-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
}
.image-card--stacked img { object-position: center 22%; }

.section__head {
  max-width: 760px;
  margin-bottom: 42px;
}
.section__head p { color: var(--muted); }
.section__head--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.section__head--split > div { max-width: 720px; }

.benefits, .products, .clients { background: var(--soft); }
.benefit-grid, .card-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.benefit-grid article, .service-card, .product-grid article, .testimonial-row article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 10px 34px rgba(7,55,95,.06);
}
.benefit-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue-500);
  font-weight: 800;
}
.benefit-grid p, .service-card p, .product-grid p, .testimonial-row p, .about p, .footer p { color: var(--muted); }

.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card { min-height: 250px; }
.service-card h2 { font-size: 24px; line-height: 1.12; }
.service-card--photo {
  padding: 0;
  overflow: hidden;
}
.service-card--photo > img {
  height: 170px;
  border-bottom: 1px solid var(--line);
}
.service-card--photo h2,
.service-card--photo h3,
.service-card--photo p,
.service-card--photo a {
  margin-left: 22px;
  margin-right: 22px;
}
.service-card--photo h2,
.service-card--photo h3 { margin-top: 22px; }
.service-card--photo a { display: inline-flex; margin-bottom: 24px; }
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: #e9f7fc;
  color: var(--blue-700);
  font-weight: 800;
}
.service-card a, .product-grid a {
  color: var(--blue-700);
  font-weight: 800;
}

.about__visual { min-height: 520px; }
.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.proof-list span {
  padding: 14px;
  border-left: 4px solid var(--aqua);
  background: var(--soft);
  border-radius: 8px;
  font-weight: 700;
}

.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid article { padding: 12px; }
.product-grid img {
  height: 250px;
  border-radius: 6px;
}
.product-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-grid--wide article {
  padding-bottom: 26px;
}
.product-grid h3, .product-grid h2 { font-size: 20px; margin: 18px 12px 8px; }
.product-grid p, .product-grid a { margin-left: 12px; margin-right: 12px; }

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-900);
  font-weight: 800;
}
.category-nav a:hover { border-color: var(--blue-700); color: var(--blue-700); }

.catalog-section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.catalog-section:first-child { padding-top: 20px; border-top: 0; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.catalog-card {
  display: grid;
  grid-template-rows: 250px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(7,55,95,.06);
}
.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  background: #f8fbfd;
  border-bottom: 1px solid var(--line);
}
.catalog-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
}
.catalog-card__body span {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.process-list li {
  position: relative;
  padding: 26px 20px;
  border-top: 4px solid var(--blue-500);
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.process-list span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--white);
  font-weight: 800;
}

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-row strong { color: var(--blue-900); }
.quote-card {
  overflow: hidden;
  padding: 0 !important;
}
.quote-card img {
  height: 220px;
}
.quote-card p, .quote-card strong {
  display: block;
  margin-left: 24px;
  margin-right: 24px;
}
.quote-card p { margin-top: 24px; }
.quote-card strong { margin-bottom: 24px; }

.cta { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: var(--white); }
.cta h2, .cta .eyebrow { color: var(--white); }
.cta p { color: rgba(255,255,255,.78); }
.cta__box {
  display: grid;
  grid-template-columns: .9fr .72fr;
  gap: 46px;
  align-items: start;
}
.cta__box--compact { align-items: center; grid-template-columns: 1fr auto; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.contact-form label { display: grid; gap: 6px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-form__full { grid-column: 1 / -1; }
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  background: var(--soft);
  padding-top: 84px;
  padding-bottom: 76px;
}
.page-hero--image {
  background:
    linear-gradient(90deg, rgba(244,249,252,.98), rgba(244,249,252,.82)),
    url("../img/textura-hero/textura-hero.jpg") center/cover no-repeat;
}
.page-hero h1 { font-size: clamp(40px, 5vw, 62px); }

.project-grid {
  display: grid;
  gap: 28px;
}
.project-card {
  display: grid;
  grid-template-columns: .86fr 1fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.project-card img {
  min-height: 360px;
}
.project-card div {
  padding: 42px;
  align-self: center;
}
.project-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue-700);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.portfolio-strip {
  background: var(--soft);
}
.portfolio-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 38%);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-bottom: 14px;
}
.portfolio-carousel img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.contact-options article {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-options p {
  color: var(--muted);
}

.landing-body {
  min-height: 100vh;
  background: #061d32;
}
.landing__hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 58px 0;
  overflow: hidden;
}
.landing__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,29,50,.92), rgba(6,29,50,.62)),
    url("../Proyectos/IMG_20220624_174707.jpg") center/cover no-repeat;
}
.landing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 54px;
  align-items: center;
}
.landing__copy h1,
.landing__copy p,
.landing__copy .eyebrow {
  color: var(--white);
}
.landing__copy p {
  max-width: 680px;
  color: rgba(255,255,255,.82);
  font-size: 20px;
}
.landing__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.landing__proof span {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255,255,255,.1);
  font-weight: 800;
}
.landing__form {
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.landing__form h2 {
  font-size: 28px;
  margin-bottom: 4px;
}
.landing__form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 70px 0 0;
  background: #071f36;
  color: var(--white);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .9fr 1fr;
  gap: 34px;
}
.brand--footer { color: var(--white); margin-bottom: 18px; }
.footer h2 { color: var(--white); font-size: 17px; }
.footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.76); }
.map-box {
  min-height: 130px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 0;
  display: block;
}
.map-box--large {
  min-height: 430px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.map-box--large iframe {
  min-height: 430px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 16px 38px rgba(37,211,102,.34);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 44px rgba(37,211,102,.42);
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}
.footer__bottom {
  margin-top: 52px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.72);
}

@media (max-width: 980px) {
  .topbar { display: none; }
  .nav { min-height: 70px; justify-content: space-between; }
  .nav .btn { display: none; }
  .nav__toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
  .nav__toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--blue-900); }
  .nav__menu {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px; }
  .hero__grid, .about__grid, .cta__box, .cta__box--compact { grid-template-columns: 1fr; }
  .hero__visual, .about__visual { min-height: 420px; }
  .card-grid, .product-grid, .product-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid, .process-list, .testimonial-row, .footer__grid, .catalog-grid { grid-template-columns: 1fr 1fr; }
  .project-card, .landing__grid, .contact-options { grid-template-columns: 1fr; }
  .project-card img { min-height: 300px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 70px 0; }
  .hero { padding-top: 58px; }
  h1 { font-size: 42px; }
  h2 { font-size: 31px; }
  .hero__stats, .benefit-grid, .card-grid, .product-grid, .product-grid--wide, .process-list, .testimonial-row, .proof-list, .footer__grid, .catalog-grid, .contact-form__grid { grid-template-columns: 1fr; }
  .hero__visual, .about__visual { min-height: 320px; }
  .product-grid img, .quote-card img { height: 220px; }
  .catalog-card { grid-template-rows: 220px 1fr; }
  .catalog-card__actions .btn { width: 100%; }
  .contact-form__full { grid-column: auto; }
  .project-card div { padding: 26px; }
  .landing__hero { padding: 34px 0; }
  .section__head--split, .footer__bottom { display: block; }
  .footer__bottom a { margin-top: 10px; }
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}
