/* =========================================================
   Belgon — Landing corporativa
   Hoja de estilos principal
   ========================================================= */

/* ---------- Variables de diseño ---------- */
:root {
  --navy-900: #0B2338;
  --navy-800: #123a5c;
  --navy-700: #1E4E79;
  --navy-600: #2A628F;
  --blue-500: #3E8EC7;
  --blue-400: #4A9CD6;
  --blue-300: #86C2E8;
  --blue-100: #E4F1FB;
  --blue-50:  #F2F8FD;

  --ink: #14202B;
  --gray-700: #46535F;
  --gray-600: #5C6B78;
  --gray-500: #7C8A96;
  --gray-300: #CBD6E0;
  --gray-200: #E3EAF0;
  --gray-100: #EFF4F8;
  --gray-50:  #F7FAFC;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(11, 35, 56, .06);
  --shadow: 0 12px 30px rgba(11, 35, 56, .10);
  --shadow-lg: 0 26px 60px rgba(11, 35, 56, .18);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --header-h: 82px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }

::selection { background: var(--blue-400); color: #fff; }

/* Accesibilidad */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-700); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-sub { color: var(--gray-600); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-600);
  background: var(--blue-100);
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy-700); color: #fff; box-shadow: 0 8px 22px rgba(30, 78, 121, .28); }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 78, 121, .35); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { background: var(--gray-50); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 0 rgba(11,35,56,.02);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  letter-spacing: .02em; color: var(--navy-800);
}
.brand-text small {
  font-size: .63rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gray-500); margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav > ul { display: flex; gap: 1.7rem; }
.main-nav > ul a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy-800);
  position: relative; padding: .3rem 0;
}
.main-nav > ul a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--blue-400); transition: width .25s ease;
}
.main-nav > ul a:hover::after { width: 100%; }

.nav-contact { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--navy-700); font-size: .95rem; }
.nav-phone svg { width: 17px; height: 17px; fill: var(--blue-400); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--navy-700); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(74,156,214,.35), transparent 60%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-bottom: clamp(48px, 7vw, 84px);
}
.hero .eyebrow { background: rgba(255,255,255,.12); color: var(--blue-300); }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }

.hero-points { display: grid; gap: .55rem; }
.hero-points li { position: relative; padding-left: 1.7rem; color: rgba(255,255,255,.9); font-size: .98rem; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue-300); font-weight: 700;
}

.hero-logo-card {
  margin: 0; background: #fff; border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 38px);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  border: 1px solid rgba(255,255,255,.6);
}
.hero-logo-card img { width: 100%; height: auto; }

.hero-strip {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .9rem;
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.1rem 1rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero-strip span:nth-child(even) { color: var(--blue-400); }

/* =========================================================
   TRUST BAR
   ========================================================= */
.trustbar { background: var(--navy-900); color: #fff; }
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.1);
}
.trust { background: var(--navy-900); padding: 1.8rem 1.2rem; text-align: center; }
.trust strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue-300); line-height: 1;
  margin-bottom: .45rem;
}
.trust strong.is-text { font-size: 1.15rem; padding-top: .4rem; }
.trust span { font-size: .85rem; color: rgba(255,255,255,.72); }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.service-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }

.service-body { padding: 1.6rem 1.5rem 1.8rem; position: relative; }
.service-icon {
  position: absolute; top: -30px; left: 1.5rem;
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--navy-700); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(30,78,121,.35);
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-body h3 { margin-top: .7rem; }
.service-body p { margin: 0; color: var(--gray-600); font-size: .96rem; }

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,35,56,.82) 0%, rgba(11,35,56,.15) 45%, transparent 70%);
  opacity: .9; transition: opacity .3s ease;
}
.project:hover img { transform: scale(1.07); }
.project:hover::after { opacity: 1; }

.project-info {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2;
  text-align: left; color: #fff;
  transform: translateY(4px); transition: transform .3s ease;
}
.project:hover .project-info { transform: translateY(0); }
.project-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; background: var(--blue-400); color: #fff;
  padding: .22rem .6rem; border-radius: 999px; margin-bottom: .45rem;
}
.project-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-img-main {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.about-img-badge {
  position: absolute; right: -22px; bottom: -28px; width: 46%;
  border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1; object-fit: cover;
}
.about-copy p { color: var(--gray-600); }
.about-list { display: grid; gap: .7rem; margin: 1.4rem 0 2rem; }
.about-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: var(--navy-800); }
.about-list .check {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-100); color: var(--navy-700);
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 2px;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(74,156,214,.4), transparent 65%),
    linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: #fff;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(44px, 6vw, 68px) 22px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info .section-sub { text-align: left; }

.contact-list { display: grid; gap: 1.3rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: #fff;
  border: 1px solid var(--gray-200); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.ci-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy-900); }
.contact-list span { color: var(--gray-600); font-size: .95rem; }
.contact-list a:hover { color: var(--navy-700); text-decoration: underline; }

.contact-form {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .97rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  background: var(--gray-50); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); background: #fff;
  box-shadow: 0 0 0 4px rgba(74,156,214,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy-700); }
.field-check label { font-weight: 400; font-size: .87rem; color: var(--gray-600); margin: 0; }
.field-check .error { grid-column: 1 / -1; }

.error { display: none; color: #C0392B; font-size: .8rem; margin-top: .3rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; background: #FDF2F1; }
.field.has-error .error { display: block; }

.form-note { margin: .9rem 0 0; font-size: .9rem; text-align: center; }
.form-note.success { color: #1E7A44; font-weight: 600; }
.form-note.info { color: var(--gray-600); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 2.5rem;
  padding: clamp(48px, 6vw, 72px) 22px 48px;
}
.footer-brand img { height: 62px; width: auto; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .93rem; max-width: 340px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col li, .footer-col a { font-size: .93rem; }
.footer-col a:hover { color: var(--blue-300); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 22px; flex-wrap: wrap; font-size: .84rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { color: rgba(255,255,255,.5); }

/* =========================================================
   FAB + LIGHTBOX
   ========================================================= */
.call-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue-400); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(74,156,214,.5);
  transition: transform .25s ease, background .25s ease;
}
.call-fab svg { width: 26px; height: 26px; fill: currentColor; }
.call-fab:hover { transform: scale(1.08); background: var(--navy-700); }

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8, 22, 36, .94);
  display: none; align-items: center; justify-content: center;
  padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 1080px; width: 100%; text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 78vh; width: auto; margin-inline: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lightbox-figure figcaption { color: rgba(255,255,255,.85); margin-top: 1rem; font-size: .95rem; }

.lightbox-close {
  position: absolute; top: 18px; right: 24px; width: 50px; height: 50px;
  background: transparent; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
  display: grid; place-items: center; transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

/* =========================================================
   Animaciones reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-card { max-width: 520px; transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow); padding: 0 22px;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 520px; padding: 1rem 22px 1.6rem; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--gray-100); }
  .nav-contact { flex-direction: column; align-items: stretch; gap: .8rem; margin-top: 1rem; }
  .nav-contact .btn { width: 100%; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info .section-sub { text-align: left; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.12rem; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .about-img-badge { right: 0; bottom: -18px; width: 52%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
  .call-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
