/* =========================================================
   Atlas Distribución — Estilos
   Paleta: navy (marca), teal (Atlas Oficina), ámbar (Atlas Acuícola)
   Tipografía: Montserrat (alojada localmente, sin llamadas a Google Fonts)
   ========================================================= */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/montserrat-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/montserrat-latin-800-normal.woff2') format('woff2');
}

:root {
  --navy: #02377D;
  --navy-dark: #01214F;
  --navy-tint: #EAF0FB;
  --teal: #0B84A3;
  --teal-dark: #086884;
  --teal-tint: #E7F4F7;
  --amber: #C2740A;
  --amber-dark: #9C5C08;
  --amber-tint: #FBF1E3;
  --ink: #0F1E36;
  --muted: #59677E;
  --muted-light: #8794A8;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --border: #E3E8F0;
  --shadow: 0 10px 30px -12px rgba(2, 55, 125, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(2, 55, 125, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow--teal { color: var(--teal); }
.eyebrow--amber { color: var(--amber); }
.eyebrow--light { color: rgba(255,255,255,0.75); }

/* Larger product-name label, used for "Atlas Oficina" / "Atlas Acuícola" above section headlines */
.eyebrow--product {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy-dark);
}

h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }

p { margin: 0 0 16px; color: var(--muted); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 40px; text-align: left; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); }

.btn--amber { background: var(--amber); color: var(--white); }
.btn--amber:hover { background: var(--amber-dark); }

.btn--outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 18px rgba(2,55,125,0.08);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-dark);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--teal); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy-dark);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 88px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 65%, #011339 100%);
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 12%, rgba(11,132,163,0.35), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(194,116,10,0.22), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.hero-inner { max-width: 100%; }
.hero h1 { color: var(--white); }
.hero .lead {
  color: rgba(255,255,255,0.82);
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 32px;
  text-align: justify;
  hyphens: auto;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-stats div { max-width: 170px; }

/* Hero visual: floating product cards */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  position: absolute;
  width: 270px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,0.45);
}
.hero-card .hc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.hero-card .hc-badge {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card .hc-badge svg { width: 18px; height: 18px; }
.hero-card .hc-title { font-size: 13px; font-weight: 700; color: var(--white); }
.hero-card .hc-sub { font-size: 11px; color: rgba(255,255,255,0.55); }

.hero-card--acuicola {
  top: 0; left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}
.hero-card--acuicola .hc-badge { background: rgba(194,116,10,0.35); }
.hero-card--acuicola .hc-badge svg { stroke: #F5C067; }
.hc-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.hc-progress-track { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.14); overflow: hidden; }
.hc-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C2740A, #F5C067); width: 84%; }

.hero-card--oficina {
  bottom: 0; right: 0;
  transform: rotate(4deg);
  z-index: 2;
}
.hero-card--oficina .hc-badge { background: rgba(11,132,163,0.35); }
.hero-card--oficina .hc-badge svg { stroke: #7FE3F2; }
.hc-step-row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: rgba(255,255,255,0.78); margin-bottom: 9px; }
.hc-step-row:last-child { margin-bottom: 0; }
.hc-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(11,132,163,0.9);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hc-check svg { width: 10px; height: 10px; stroke: var(--white); }
.hc-step-row.is-pending .hc-check { background: rgba(255,255,255,0.14); }
.hc-step-row.is-pending { color: rgba(255,255,255,0.45); }
.hero-stats div strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
}
.hero-stats div span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ---------- Sobre Atlas ---------- */
.about {
  padding: 96px 0;
  background: var(--white);
  text-align: center;
}
.about .section-head { margin-bottom: 8px; }
.about p.lead {
  font-size: 18px;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 620px;
  margin: 40px auto 0;
}
.about-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-dark);
  text-align: left;
}
.about-pillar .dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* ---------- Business sections shared ---------- */
.biz-section { padding: 100px 0; position: relative; }
.biz-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.section-intro { text-align: justify; hyphens: auto; }

.biz-steps { display: flex; flex-direction: column; gap: 22px; margin: 32px 0 36px; }
.biz-step { display: flex; gap: 16px; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.step-text h4 { margin: 0 0 4px; font-size: 16px; }
.step-text p { margin: 0; font-size: 15px; }

.biz-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
}

.icon-panel {
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.icon-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.icon-card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
}
.icon-card--wide .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon-card h4 { font-size: 15px; margin: 0 0 4px; color: var(--navy-dark); }
.icon-card p { font-size: 13.5px; margin: 0; }

/* Oficina (teal) */
.section--oficina { background: var(--teal-tint); }
.section--oficina .step-num { background: var(--teal); color: var(--white); }
.section--oficina .biz-tagline { background: rgba(11,132,163,0.12); color: var(--teal-dark); }
.section--oficina .icon-panel { background: rgba(11,132,163,0.08); }
.section--oficina .icon-badge { background: var(--teal-tint); }
.section--oficina .icon-badge svg { stroke: var(--teal); }

/* Acuícola (amber on navy) */
.section--acuicola {
  background: linear-gradient(160deg, var(--navy-dark), #011a44 70%);
  color: rgba(255,255,255,0.88);
}
.section--acuicola h2 { color: var(--white); }
.section--acuicola p { color: rgba(255,255,255,0.72); }
.section--acuicola .step-text h4 { color: var(--white); }
.section--acuicola .step-num { background: var(--amber); color: var(--white); }
.section--acuicola .biz-tagline { background: rgba(194,116,10,0.18); color: #F5C067; }
.section--acuicola .icon-panel { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.section--acuicola .icon-card { background: rgba(255,255,255,0.06); box-shadow: none; border: 1px solid rgba(255,255,255,0.08); }
.section--acuicola .icon-card h4 { color: var(--white); }
.section--acuicola .icon-card p { color: rgba(255,255,255,0.65); }
.section--acuicola .icon-badge { background: rgba(194,116,10,0.18); }
.section--acuicola .icon-badge svg { stroke: #F5C067; }

.offline-callout {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.offline-callout svg { stroke: #F5C067; flex-shrink: 0; margin-top: 2px; }
.offline-callout h4 { color: var(--white); margin: 0 0 4px; font-size: 15px; }
.offline-callout p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.68); }

/* ---------- Por qué Atlas ---------- */
.why {
  padding: 100px 0;
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card .icon-badge { margin: 0 auto 16px; background: var(--navy-tint); }
.why-card .icon-badge svg { stroke: var(--navy); }
.why-card h4 { font-size: 16px; }
.why-card p { font-size: 14px; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, #F4F7FB, #EAF0FB);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-card .icon-badge { background: var(--navy-tint); flex-shrink: 0; margin: 0; }
.contact-card .icon-badge svg { stroke: var(--navy); }
.contact-card h4 { margin: 0 0 4px; font-size: 15px; }
.contact-card a, .contact-card p { color: var(--muted); font-size: 15px; margin: 0; }
.contact-card a:hover { color: var(--teal); }

.contact-card--whatsapp { background: linear-gradient(135deg, #1FA855, #168741); }
.contact-card--whatsapp .icon-badge { background: rgba(255,255,255,0.18); }
.contact-card--whatsapp .icon-badge svg { stroke: var(--white); }
.contact-card--whatsapp h4, .contact-card--whatsapp p { color: var(--white); }
.contact-card--whatsapp a.wa-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--white);
  color: #168741;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.form-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--navy-dark);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted-light); margin-top: 14px; text-align: center; }
.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.form-feedback.success { background: #E3F7EA; color: #1B7A3D; }
.form-feedback.error { background: #FBE7E7; color: #B23434; }

/* ---------- Footer ---------- */
.site-footer { background: #08132B; color: rgba(255,255,255,0.7); }
.footer-inner {
  padding: 64px 0 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; max-width: 320px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { max-width: 100%; }
  .hero-visual { height: 300px; margin-top: 12px; }
  .biz-grid { grid-template-columns: 1fr; }
  .icon-panel { max-width: 480px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero { padding: 132px 0 64px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 24px; }
  .hero-visual { height: 230px; }
  .hero-card { width: 210px; padding: 16px; }
  .about-pillars { grid-template-columns: 1fr; }
  .icon-panel { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 48px 0 24px; }
  .form-panel { padding: 26px; }
  .site-header .container { height: 76px; }
  .brand img { height: 42px; }
}
