:root {
  --azul-980: #041526;
  --azul-950: #061f35;
  --azul-900: #07375f;
  --azul-800: #07527c;
  --azul-700: #0a6f99;
  --azul-600: #1294be;
  --cian: #38d7ff;
  --blanco: #fff;
  --fondo: #f2f8fc;
  --panel: rgba(255, 255, 255, .72);
  --panel-dark: rgba(5, 36, 61, .78);
  --texto: #0f2538;
  --muted: #5e7486;
  --border: rgba(12, 65, 100, .16);
  --shadow: 0 24px 70px rgba(3, 25, 44, .18);
  --shadow-soft: 0 12px 34px rgba(3, 25, 44, .10);
  --wrap: min(1200px, calc(100% - 36px));
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #eaf6fc 0%, #f9fcff 34%, #f0f7fb 100%);
  color: var(--texto);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: white;
  color: black;
  padding: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 8px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 70;
  background: linear-gradient(90deg, rgba(3, 21, 38, .96), rgba(7, 55, 95, .92), rgba(7, 82, 124, .88));
  color: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(3, 21, 38, .18);
}

.topbar__inner {
  width: var(--wrap);
  min-height: 42px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__ico {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(1.9);
}

.topbar__a {
  text-decoration: none;
  font-weight: 800;
}

.topbar__a:hover {
  text-decoration: underline;
}

.topbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(56, 215, 255, .8);
}

.topbar__wa {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .08);
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.topbar__socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-ico {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.social-ico:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .18);
  border-color: rgba(56, 215, 255, .45);
}

.social-ico img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .95;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .68));
  border-bottom: 1px solid rgba(7, 55, 95, .16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 10px 28px rgba(3, 24, 39, .08);
}

.header__inner {
  width: var(--wrap);
  margin: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand__logo {
  width: 170px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 9px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  color: #173d58;
  transition: .18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: linear-gradient(135deg, rgba(7, 82, 124, .14), rgba(56, 215, 255, .16));
  color: var(--azul-900);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(7, 82, 124, .18);
  background: rgba(255, 255, 255, .68);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--azul-900);
  margin: 5px auto;
  border-radius: 9px;
}

/* Menú móvil */
.menu-modal[hidden] {
  display: none;
}

.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.menu-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 21, 38, .60);
}

.menu-modal__dialog {
  position: absolute;
  right: 16px;
  top: 16px;
  width: min(420px, calc(100% - 32px));
  border-radius: 28px;
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(255, 255, 255, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.menu-modal__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-modal__close {
  border: 0;
  background: var(--azul-900);
  color: white;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 22px;
}

.menu-modal__links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.menu-modal__a {
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  background: rgba(7, 82, 124, .07);
}

/* Hero */
.main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: clamp(500px, 68vh, 680px);
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, var(--azul-950), var(--azul-800));
  isolation: isolate;
}

.hero--compact {
  min-height: clamp(340px, 48vh, 460px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 80% 0%, rgba(56, 215, 255, .24), transparent 46%),
    linear-gradient(135deg, #051c32, #07375f);
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.15s ease;
  filter: saturate(1.04);
  background: linear-gradient(135deg, #05233c, #0a5782 46%, #eaf6fc);
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide.is-front {
  z-index: 2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 21, 35, .92) 0%, rgba(5, 31, 53, .72) 36%, rgba(255, 255, 255, .12) 100%);
}

.hero__inner {
  position: relative;
  padding: 40px 0;
}

.hero__copy {
  max-width: min(500px, 100%);
}

.glass-panel {
  max-width: min(500px, 100%);
  padding: clamp(16px, 1.9vw, 24px);
  border-radius: 24px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
}

.hero--compact .glass-panel {
  max-width: min(440px, 100%);
  padding: clamp(15px, 1.7vw, 22px);
}

.h1 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero--compact .h1 {
  font-size: clamp(28px, 3.1vw, 40px);
}

.lead,
.sub {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 46ch;
}

.hero--compact .lead {
  max-width: 44ch;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero__cta .btn {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 13px;
}

.hero .eyebrow {
  margin-bottom: 8px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
  transition: .18s ease;
  font-size: 14px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--azul-700), var(--azul-950));
  box-shadow: 0 16px 34px rgba(4, 55, 95, .32);
}

.btn--primary:hover,
.btn--ghost:hover,
.btn--light:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  color: #eaffff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}

.btn--light {
  color: var(--azul-900);
  background: #fff;
  box-shadow: 0 12px 28px rgba(255, 255, 255, .18);
}

.btn--whatsapp {
  color: #06351d;
  background: linear-gradient(135deg, #d1fae5, #86efac);
  border-color: rgba(34, 197, 94, .24);
}

/* Secciones y cards */
.section {
  padding: 76px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .74));
  border-bottom: 1px solid rgba(7, 82, 124, .08);
}

.section--blue {
  background: linear-gradient(135deg, #07375f, #0a5f8c);
  color: white;
}

.section--blue .h2,
.section--blue p {
  color: white;
}

.section--soft {
  background: linear-gradient(180deg, #eff8fc, #ffffff);
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.featureGrid,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards--links,
.cards--service {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featureCard,
.card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(15px);
  transition: .2s ease;
}

.featureCard span {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--azul-900), var(--azul-600));
  color: #fff;
  font-weight: 950;
  margin-bottom: 18px;
}

.featureCard:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.featureCard h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #092c44;
  line-height: 1.15;
}

.featureCard p,
.card p {
  margin: 0;
  color: var(--muted);
}

/* Layouts */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
}

.imageCard {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .82);
  background: #fff;
}

.imageCard img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stats div,
.glassList div,
.contactCard {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .80);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.stats strong {
  display: block;
  font-size: 32px;
  color: var(--azul-800);
  line-height: 1;
}

.stats span,
.glassList span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.glassList {
  display: grid;
  gap: 14px;
}

.glassList strong {
  color: var(--azul-800);
}

/* CTA */
.ctaBand {
  padding: 52px 0;
  background: linear-gradient(135deg, var(--azul-950), var(--azul-800));
  color: #fff;
}

.ctaBand__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ctaBand .btn--light {
  min-width: 170px;
  padding: 16px 26px;
  font-size: 17px;
  font-weight: 900;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(3, 25, 44, .26);
}

.ctaBand h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
  margin: 0;
}

.ctaBand p {
  color: rgba(255, 255, 255, .8);
  max-width: 720px;
}

/* Soluciones */
.solutionFlow {
  display: grid;
  gap: 16px;
}

.solutionBlock {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-soft);
  transition: .2s ease;
}

.solutionBlock:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.solutionBlock > span {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--azul-900), var(--azul-600));
  color: #fff;
  font-weight: 950;
}

.solutionBlock h2 {
  margin: 0 0 8px;
  color: #0b2e46;
}

.solutionBlock p {
  margin: 0;
  color: var(--muted);
}

/* Catálogo */
.catalogGroups {
  display: grid;
  gap: 22px;
}

.catalogGroup {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: 32px;
  background: rgba(255, 255, 255, .80);
  border: 1px solid rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.catalogGroup__media {
  border-radius: 24px;
  overflow: hidden;
  background: var(--azul-900);
}

.catalogGroup__media img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.catalogGroup h2 {
  margin: 0;
  color: #0b2e46;
  font-size: 30px;
}

.catalogGroup p {
  color: var(--muted);
}

.catalogGroup li {
  margin: 8px 0;
}

.noteBox {
  margin-top: 22px;
  border-radius: 22px;
  padding: 18px;
  background: rgba(7, 82, 124, .09);
  border: 1px solid rgba(7, 82, 124, .16);
  color: #28495d;
}

/* Contacto */
.contactGrid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 26px;
  align-items: start;
}

.contactLink {
  display: block;
  margin: 7px 0;
  color: var(--azul-800);
  font-weight: 900;
}

.form {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .80);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  font-weight: 850;
  color: #244a61;
}

.field--full {
  grid-column: 1 / -1;
}

.field__input {
  width: 100%;
  border: 1px solid rgba(7, 82, 124, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  padding: 13px 14px;
  font: inherit;
  color: var(--texto);
  outline: none;
  transition: .18s ease;
}

.field__input:focus {
  border-color: rgba(56, 215, 255, .78);
  box-shadow: 0 0 0 5px rgba(56, 215, 255, .15);
}

.field__textarea {
  resize: vertical;
  min-height: 132px;
}

.form__notice {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(56, 215, 255, .10);
  border: 1px solid rgba(56, 215, 255, .18);
  color: #31536a;
  font-size: 13px;
  font-weight: 700;
}

.form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form__status {
  margin-top: 12px;
  font-weight: 850;
}

.form__status.is-ok {
  color: #047857;
}

.form__status.is-error {
  color: #b42318;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
}

/* Catálogo digital / flipbook */
.flipbookShell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.flipbook {
  min-height: 430px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, #eaf6fc);
  border: 1px solid rgba(7, 82, 124, .12);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.flipPage {
  display: none;
  max-width: 680px;
  text-align: center;
}

.flipPage p {
  color: var(--muted);
}

.flipPage.is-active {
  display: block;
  animation: flipIn .42s ease;
}

.flipPage h2 {
  font-size: 44px;
  color: var(--azul-900);
}

.flipBtn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--azul-900);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

@keyframes flipIn {
  from {
    opacity: .1;
    transform: rotateY(-18deg) translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #041526, #07375f);
  color: rgba(255, 255, 255, .78);
  padding: 56px 0 22px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 28px;
}

.footer__logo {
  width: 160px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 14px;
}

.footer a {
  display: block;
  color: #dff7ff;
  text-decoration: none;
  margin: 4px 0;
}

.footer h3 {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 26px;
  padding-top: 16px;
}

/* Animaciones */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1180px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

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

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

  .topbar__right {
    display: flex;
  }

  .topbar__socials {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: min(100% - 24px, 1180px);
  }

  .topbar {
    display: none;
  }

  .topbar__right {
    display: none;
  }

  .header__inner {
    min-height: 66px;
  }

  .brand__logo {
    width: 145px;
  }

  .hero,
  .hero--compact {
    min-height: 560px;
  }

  .hero__overlay {
    background: linear-gradient(180deg, rgba(5, 21, 35, .84), rgba(7, 55, 95, .62), rgba(7, 82, 124, .48));
  }

  .hero__inner {
    padding: 48px 0;
  }

  .glass-panel {
    max-width: 100%;
    padding: 20px;
    border-radius: 22px;
  }

  .h1 {
    font-size: 34px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .featureGrid,
  .cards,
  .cards--links,
  .cards--service,
  .split,
  .contactGrid,
  .footer__grid,
  .flipbookShell {
    grid-template-columns: 1fr;
  }

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

  .imageCard img {
    height: 300px;
  }

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

  .catalogGroup__media img {
    height: 220px;
  }

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

  .form__actions .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .flipBtn {
    width: 100%;
  }
}
