/* ==========================================================================
   MONTLAC LLC — Sitio corporativo
   Distribuidor oficial de la línea GMI / tecnología GOMOCOL
   ========================================================================== */

:root {
  /* Marca */
  --navy: #12233d;
  --navy-light: #1a3358;
  --blue: #1a6fb8;
  --blue-dark: #124f85;
  --green: #2fa84f;
  --green-dark: #238a3f;

  /* Neutrales */
  --ink: #16181c;
  --body-text: #56585e;
  --muted: #7c828c;
  --line: #e4e6ea;
  --bg-soft: #f4f5f7;
  --bg-soft-2: #eef1f4;
  --white: #ffffff;

  /* Tipografía */
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container: 1220px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(18, 35, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(18, 35, 61, 0.16);
  --header-h: 84px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.82); }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #6fe08f; }

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 168, 79, 0.32);
}
.btn--primary:hover { background: var(--green-dark); box-shadow: 0 14px 30px rgba(47,168,79,0.4); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--dark {
  background: var(--navy);
  color: #fff;
}
.btn--dark:hover { background: var(--navy-light); }

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease, height .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 6px 24px rgba(18,35,61,0.08);
  height: 72px;
  backdrop-filter: blur(6px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 52px; width: auto;
  transition: height .25s ease, filter .25s ease;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.site-header.is-scrolled .brand img { height: 44px; filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  color: #fff;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .25s ease;
}
.site-header.is-scrolled .nav-links a { color: var(--navy); }
.site-header.nav-open .nav-links a { color: var(--navy); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 12px 22px; font-size: 0.86rem; }
.header-actions .btn--outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.header-actions .btn--outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.site-header.is-scrolled .header-actions .btn--outline { border-color: var(--navy); color: var(--navy); }
.site-header.is-scrolled .header-actions .btn--outline:hover { background: var(--navy); color: #fff; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  transition: border-color .25s ease;
}
.site-header.is-scrolled .lang-switch { border-color: var(--line); }
.lang-switch a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
  padding: 6px 11px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.site-header.is-scrolled .lang-switch a { color: var(--muted); }
.lang-switch a.is-active { background: var(--green); color: #fff; }
.site-header.is-scrolled .lang-switch a.is-active { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; display: block; border-radius: 2px; transition: background .25s ease; }
.site-header.is-scrolled .nav-toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #0d1c30 0%, #14304d 55%, #175a8a 100%);
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/brand/hero-bg-faded.png");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: screen;
}
.hero__glow {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,79,0.35), transparent 70%);
  top: -220px; right: -180px;
  filter: blur(10px);
}
.hero .container { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-inner { max-width: 760px; padding: 60px 0 90px; }
.hero-inner .eyebrow { color: #7fe89a; }
.hero-inner .eyebrow::before { background: #7fe89a; }

.hero-inner h1 {
  color: #fff;
  margin-bottom: 10px;
}
.hero-inner .tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: #cfe4f5;
  margin-bottom: 24px;
}
.hero-inner .lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 720px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 32px;
}
.hero-stats .stat-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  margin-top: 4px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.about-card__logo { height: 46px; width: auto; margin-bottom: 22px; }

.wordmark-gomocol {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 22px;
}
.wordmark-gomocol span { color: var(--green); }
.about-card h3 { margin-bottom: 14px; }
.about-card .quote {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 0.94rem;
  color: var(--navy);
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.value-card {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.value-card .icon {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(47,168,79,0.18);
  display: flex; align-items: center; justify-content: center;
}
.value-card .icon svg { width: 24px; height: 24px; stroke: #7fe89a; }
.value-card h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: rgba(255,255,255,0.66); margin: 0; }

/* ---------- Category strip ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  isolation: isolate;
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform .4s ease;
}
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,35,61,0.05) 20%, rgba(12,20,34,0.92) 100%);
  z-index: -1;
}
.cat-card:hover::before { transform: scale(1.08); }
.cat-card h4 { color: #fff; margin: 0 0 4px; font-size: 1.05rem; }
.cat-card span { font-size: 0.82rem; color: rgba(255,255,255,0.78); }

.cat-card--1::before { background-image: url("https://images.unsplash.com/photo-1674485169641-bcb2bf6f1df9?auto=format&fit=crop&w=500"); }
.cat-card--2::before { background-image: url("https://images.unsplash.com/photo-1642469409191-90b182a80427?auto=format&fit=crop&w=500"); }
.cat-card--3::before { background-image: url("https://images.unsplash.com/photo-1677240017139-6fad362533e6?auto=format&fit=crop&w=500"); }
.cat-card--4::before { background-image: url("https://images.unsplash.com/photo-1568430977245-312ab5097875?auto=format&fit=crop&w=500"); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__img {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.product-card__img img { height: 92%; width: auto; object-fit: contain; }
.product-card .tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: #e7f1fa;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-card h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 8px; }
.product-card p { font-size: 0.86rem; color: var(--body-text); margin-bottom: 16px; flex-grow: 1; }
.product-card .quote-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card .quote-link svg { width: 14px; height: 14px; }

.gomocol-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}
.gomocol-banner img { width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: center 30%; }

/* ---------- Gomocol lines ---------- */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.line-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px;
  border-top: 3px solid var(--green);
}
.line-card { display: flex; flex-direction: column; }
.line-card h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; color: var(--navy); }
.line-card p { font-size: 0.9rem; margin: 0; }
.line-card__type {
  display: block; font-size: 0.78rem; color: var(--green-dark);
  font-weight: 600; letter-spacing: .01em; margin-bottom: 14px;
}
.line-card__uso { font-size: 0.88rem; margin-bottom: 12px !important; }
.line-card__uso strong { color: var(--navy); }
.line-card__adv { list-style: none; padding: 0; margin: 0 0 16px; }
.line-card__adv li {
  position: relative; padding-left: 18px; font-size: 0.85rem;
  margin-bottom: 6px; color: var(--body-text); line-height: 1.5;
}
.line-card__adv li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}
.line-card__spec {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
}
@media (min-width: 900px) { .lines-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Presencia / paises ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.project-card .loc-flag { font-size: 2rem; display: block; margin-bottom: 10px; line-height: 1; }
.project-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border-left: 4px solid var(--blue);
}
.project-card .place {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 10px;
  display: block;
}
.project-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.project-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonial .stars { color: #f5b700; font-size: 1.3rem; letter-spacing: 4px; margin-bottom: 20px; }
.testimonial blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 22px;
  line-height: 1.4;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--body-text);
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card .flag { font-size: 1.2rem; }
.contact-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.contact-line:first-of-type { border-top: none; }
.contact-line strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.contact-card .btn { margin-top: 20px; }

.contact-form-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form-card h3 { color: #fff; }
.contact-form-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.85);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.76rem; color: rgba(255,255,255,0.5); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1729;
  color: rgba(255,255,255,0.62);
  padding: 70px 0 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 300px; }
.footer-col h5 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  z-index: 950;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.back-to-top {
  position: fixed;
  bottom: 26px; right: 96px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  z-index: 950;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--navy); }

/* ---------- Reveal animation ----------
   Visible by default (no-JS / slow-JS safe). JS opts elements into the
   hidden->visible transition only once it is ready to reveal them. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.reveal-armed.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-card { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header-actions a[href^="tel:"] { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
