:root {
  --navy: #0F1C2E;
  --blue: #1252B1;
  --black: #0B0B0C;
  --gray-bg: #F4F5F7;
  --gray-text: #5A616B;
  --gray-text-2: #343A42;
  --border: #E1E4E8;
  --border-2: #D5D9DE;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--black);
  font-family: "Poppins", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand__name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  margin: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.flag { height: 13px; width: auto; display: inline-block; vertical-align: middle; margin-left: 2px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
}
.eyebrow--light { color: #9CC1FF; }

.icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--black);
  white-space: nowrap;
}
.btn--dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn--outline { background: #fff; color: var(--black); }
.btn--accent { background: var(--blue); color: #fff; border: none; }
.btn--block { justify-content: center; width: 100%; cursor: pointer; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.section {
  box-sizing: border-box;
  padding: 56px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
/* Full-bleed gray background wrapper: the section itself spans edge to edge
   with no max-width, while the inner .section div (max-width + padding +
   centering) holds the actual content. Keeps the bg full-width on big
   screens instead of boxing it in at 1440px like the content. */
.section-gray-wrap { background: var(--gray-bg); }

.link-accent { color: var(--blue); text-decoration: none; }

/* Top bar */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.topbar__full { display: none; }
.topbar__short { white-space: nowrap; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar__email { display: none; }
.topbar a { text-decoration: none; color: #fff; }
.topbar__full b, .topbar__short b { font-weight: 700; }

/* Header */
.header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 50; }
.header__top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand__logo { width: 46px; height: 27px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-size: 16.5px; letter-spacing: 0.5px; }
.brand__tag { font-size: 11px; letter-spacing: 1px; color: var(--gray-text); }

.header__badges { display: none; }
.badge-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--blue);
  white-space: nowrap;
}
.badge-btn--solid { background: var(--blue); color: #fff; }
.badge-btn--outline { background: none; color: var(--blue); }

.nav-toggle {
  margin-left: auto;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--black); border-radius: 2px; }

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 14px 20px 22px;
  gap: 18px;
}
.nav.is-open { display: flex; }
.nav a { text-decoration: none; font-size: 16.5px; font-weight: 500; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero__text { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.3px; }
.lead { font-size: 17.5px; line-height: 1.65; color: var(--gray-text-2); margin: 0; }
.lead strong { font-weight: 700; color: var(--black); }

.checklist {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  font-size: 15px;
}
.checklist li { display: flex; align-items: center; gap: 9px; }
.check { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero__media { display: flex; flex-direction: column; gap: 18px; }
.hero__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}
.collage__item { position: relative; height: 180px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.collage__item--big { grid-column: span 2; height: 250px; }
.collage__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collage__label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #fff;
  border-radius: 5px;
  padding: 6px 11px;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 12.5px;
  color: var(--gray-text);
  max-width: calc(100% - 20px);
}
.collage__label b { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--black); }

.hero__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__card-logo { width: 52px; height: 30px; object-fit: contain; flex-shrink: 0; }
.hero__card-text { display: flex; flex-direction: column; gap: 3px; }
.hero__card-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 17px; }
.hero__card-detail { font-size: 14px; color: var(--gray-text); }

/* Trayectoria */
.trayectoria { display: flex; flex-direction: column; gap: 32px; }
.trayectoria h2 { font-size: 34px; }
.trayectoria__grid { display: flex; flex-direction: column; gap: 22px; }
.trayectoria__text { display: flex; flex-direction: column; gap: 18px; }
.trayectoria__text p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--gray-text-2); }

.prioridad-box { background: #fff; border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.prioridad-box__title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 19px; }

.cards-row-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mini-card__title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 17.5px; }
.mini-card__text { font-size: 15px; line-height: 1.55; color: var(--gray-text); }

/* Como trabajamos */
.como-trabajamos { display: flex; flex-direction: column; gap: 16px; }
.como-trabajamos__text { margin: 0; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 22px; line-height: 1.45; }

/* Empresas */
.empresas { display: flex; flex-direction: column; gap: 16px; }
.empresas__title { font-size: 29px; line-height: 1.2; max-width: 800px; }
.empresas__text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--gray-text); max-width: 800px; }
.empresas__grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
.empresa-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.empresa-card__logo-box { height: 68px; display: flex; align-items: center; }
.empresa-card__logo { height: 54px; max-width: 100%; width: auto; object-fit: contain; }
.empresa-card__title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 18.5px; line-height: 1.3; }
.empresa-card__text { font-size: 15px; line-height: 1.55; color: var(--gray-text); }
.link-arrow { margin-top: auto; font-size: 15.5px; font-weight: 500; color: var(--blue); text-decoration: none; }
.empresas__note { margin: 8px 0 0; font-size: 15px; color: var(--gray-text); }

/* BER */
.ber { display: flex; flex-direction: column; gap: 44px; }
.ber__intro { display: flex; flex-direction: column; gap: 30px; }
.ber__text { display: flex; flex-direction: column; gap: 18px; }
.ber__text h2 { font-size: 27px; line-height: 1.2; }
.ber__text p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--gray-text-2); }
.logo-inline { height: 48px; width: auto; align-self: flex-start; }
.logo-inline--light { border-radius: 3px; }
.logo-card { height: auto; width: 280px; align-self: flex-start; border-radius: 8px; }

.stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 5px; }
.stat__num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 23px; }
.stat__text { font-size: 13px; line-height: 1.4; color: var(--gray-text); }

.ber__media { display: flex; flex-direction: column; gap: 18px; }
.ber__photo { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; }
.diferenciales { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.diferenciales__title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 17px; }
.diferencial { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.diferencial .check { margin-top: 3px; }

.tipos { display: flex; flex-direction: column; gap: 18px; }
.tipos h3 { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 21px; }
.tipos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tipo { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 9px; }
.tipo img { width: 100%; height: 100px; object-fit: contain; }
.tipo span { font-size: 14px; font-weight: 500; line-height: 1.3; }

.marcas-confiaron-grid { display: grid; grid-template-columns: 1fr; gap: 30px; border-top: 1px solid var(--border-2); padding-top: 30px; }
.marcas-row, .confiaron-row { display: flex; flex-direction: column; gap: 18px; }
.marcas-row h3, .confiaron-row h3 { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 21px; }
.marcas-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; }
.confiaron-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--gray-text); }

/* Cinflex */
.cinflex { display: flex; flex-direction: column; gap: 36px; }
.cinflex__media { display: flex; flex-direction: column; gap: 12px; }
.cinflex__main-img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.cinflex__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.thumb { display: flex; flex-direction: column; gap: 7px; }
.thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.thumb span { font-size: 12.5px; color: var(--gray-text); }
.cinflex__content { display: flex; flex-direction: column; gap: 18px; }
.cinflex__content p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--gray-text-2); }
.list-2col { display: grid; grid-template-columns: 1fr; column-gap: 26px; }
.list-2col span { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.callout { background: var(--gray-bg); border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.callout__title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15.5px; }
.callout__text { font-size: 14.5px; line-height: 1.55; color: var(--gray-text); }

/* VH */
.vh { display: flex; flex-direction: column; gap: 32px; }
.vh__media { display: flex; }
.vh__photo { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.vh__content { display: flex; flex-direction: column; gap: 18px; }
.vh__content p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--gray-text-2); }

/* Tecnosim */
.tecnosim { display: flex; flex-direction: column; gap: 32px; }
.tecnosim__text { display: flex; flex-direction: column; gap: 18px; }
.tecnosim__text p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--gray-text-2); }
.tecnosim__brand { display: flex; align-items: center; gap: 16px; }
.tecnosim__brand img { height: 56px; width: auto; }
.tecnosim__brand h2 { font-size: 25px; }
.tecnosim__media img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }

/* Decofer productos */
.decofer-productos { display: flex; flex-direction: column; gap: 32px; }
.decofer-productos__text { display: flex; flex-direction: column; gap: 16px; }
.small-note { font-size: 14.5px; color: var(--gray-text); }
.decofer-productos__media { display: flex; flex-direction: column; gap: 24px; }
.captioned-img { display: flex; flex-direction: column; gap: 9px; }
.captioned-img img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; }
.captioned-img span { font-size: 14px; color: var(--gray-text); }

/* Aplicaciones */
.aplicaciones { display: flex; flex-direction: column; gap: 32px; }
.aplicaciones__top { display: flex; flex-direction: column; gap: 26px; }
.aplicaciones__media { display: flex; flex-direction: column; gap: 10px; }
.aplicaciones__media img { width: 100%; height: 240px; object-fit: cover; border-radius: 8px; }
.aplicaciones__text { display: flex; flex-direction: column; gap: 12px; }
.aplicaciones__text h3 { font-size: 23px; line-height: 1.25; }
.aplicaciones__text p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--gray-text); }
.aplicaciones__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aplicacion-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.aplicacion-card img { width: 100%; height: 120px; object-fit: cover; }
.aplicacion-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.aplicacion-card__title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; }
.aplicacion-card__text { font-size: 12.5px; line-height: 1.4; color: var(--gray-text); }

/* Industrias */
.industrias__text { margin: 12px 0 0; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.4; }

/* Contacto */
.contacto { background: var(--navy); color: #fff; }
.contacto__grid { max-width: var(--max); margin: 0 auto; padding: 56px 20px; display: flex; flex-direction: column; gap: 26px; }

.contact-card { background: #fff; color: var(--black); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-card__head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.contact-card__head img { width: 46px; height: 27px; object-fit: contain; flex-shrink: 0; }
.contact-card__head div { display: flex; flex-direction: column; gap: 3px; }
.contact-card__name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 19px; }
.contact-card__role { font-size: 14.5px; color: var(--gray-text); }
.contact-card__row { display: flex; align-items: center; gap: 20px; }
.contact-card__row--stack { flex-direction: column; align-items: flex-start; gap: 5px; }
.qr-box { width: 100px; height: 100px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: 5px; padding: 9px; }
.contact-card__phone { display: flex; flex-direction: column; gap: 5px; }
.contact-card__label { font-size: 13px; color: var(--gray-text); }
.contact-card__phone a { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 25px; color: var(--black); text-decoration: none; }
.contact-card__small { font-size: 13.5px; line-height: 1.45; color: var(--gray-text); }

.contact-form { background: #fff; color: var(--black); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-form h3 { font-size: 25px; }
.contact-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid #B9BEC5;
  border-radius: 6px;
  background: #fff;
  color: var(--black);
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form__note { font-size: 14px; color: var(--gray-text); }

/* Footer */
.footer {
  background: var(--navy);
  color: #A9B4C2;
  padding: 26px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer__logo { width: 40px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.footer__name { color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: 0.3px; }
.footer__phone { font-weight: 700; color: #fff; }
.footer__url { margin-left: auto; }

/* ===================== TABLET / DESKTOP ===================== */
@media (min-width: 760px) {
  .section { padding: 80px 32px; }
  .header__top { padding: 20px 32px; }

  .hero { flex-direction: row; align-items: center; padding-top: 56px; padding-bottom: 64px; gap: 56px; }
  .hero__text { flex: 0 0 470px; }
  .hero__media { flex: 1; }
  .hero h1 { font-size: 42px; }
  .hero__collage { grid-template-columns: 1fr 1fr 1fr; height: 100%; }
  .collage__item { height: 190px; }
  .collage__item--big { grid-column: span 1; grid-row: span 2; height: 100%; }

  .trayectoria__grid { flex-direction: row; gap: 52px; align-items: stretch; }
  .trayectoria__text { flex: 1; }
  .prioridad-box { flex: 0 0 340px; }
  .cards-row-4 { grid-template-columns: repeat(4, 1fr); }

  .empresas__grid { grid-template-columns: repeat(3, 1fr); }

  .ber__intro { flex-direction: row; gap: 48px; align-items: flex-start; }
  .ber__text, .ber__media { flex: 1; }
  .ber__photo { height: 340px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .tipos__grid { grid-template-columns: repeat(4, 1fr); }
  .marcas-confiaron-grid { grid-template-columns: 1fr 1fr; }

  .cinflex { flex-direction: row; gap: 48px; align-items: flex-start; }
  .cinflex__media, .cinflex__content { flex: 1; }
  .list-2col { grid-template-columns: 1fr 1fr; }

  .vh { flex-direction: row; gap: 48px; }
  .vh__media, .vh__content { flex: 1; }
  .vh__photo { height: 100%; }

  .tecnosim { flex-direction: row; gap: 48px; align-items: flex-start; }
  .tecnosim__text, .tecnosim__media { flex: 1; }

  .decofer-productos { flex-direction: row; gap: 48px; align-items: flex-start; }
  .decofer-productos__text, .decofer-productos__media { flex: 1; }
  .captioned-img img { height: 300px; }

  .aplicaciones__top { flex-direction: row; gap: 48px; }
  .aplicaciones__media, .aplicaciones__text { flex: 1; }
  .aplicaciones__media img { height: 100%; }

  .contacto__grid { flex-direction: row; gap: 36px; }
  .contact-card, .contact-form { flex: 1; }
}

@media (min-width: 1040px) {
  .topbar__full { display: inline; }
  .topbar__short { display: none; }
  .topbar__email { display: inline; }
  .nav-toggle { display: none; }
  .header__badges { display: flex; gap: 12px; margin-left: auto; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 16px 32px;
    border: none;
    max-width: var(--max);
    margin: 0 auto;
  }
  .nav a { font-size: 15.5px; }

  .hero h1 { font-size: 52px; }
  .tipos__grid { grid-template-columns: repeat(7, 1fr); }
}

/* Extra breathing room / scale-up for large desktop screens */
@media (min-width: 1300px) {
  .section { padding: 96px 40px; }
  body { font-size: 17px; }
  .lead { font-size: 19px; }
  .trayectoria__text p, .ber__text p, .cinflex__content p, .vh__content p, .tecnosim__text p,
  .empresas__text { font-size: 18px; }
  .hero h1 { font-size: 56px; }
  .trayectoria h2 { font-size: 38px; }
  .empresas__title { font-size: 32px; }
  .ber__text h2 { font-size: 30px; }
  .como-trabajamos__text { font-size: 24px; }
  .contact-card, .contact-form { padding: 38px; }
}
