/* ==========================================================================
   Andes Austral SpA — Design System
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-800: #123262;
  --navy-700: #1B4079;
  --blue: #1D64E0;
  --blue-600: #1554BE;
  --blue-light: #EAF1FD;
  --blue-100: #DCE8FB;
  --gray-900: #1A2332;
  --gray-700: #3D4A5C;
  --gray-500: #6B7A8D;
  --gray-300: #D7DEE7;
  --gray-200: #E7ECF2;
  --gray-100: #F5F7FA;
  --white: #FFFFFF;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(11, 37, 69, 0.06);
  --shadow: 0 14px 40px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.16);
  --container: 1200px;
  --header-h: 84px;

  /* Per-product theme accent (overridden inline per product page) */
  --accent: var(--blue);
  --accent-2: var(--navy);
  --accent-soft: var(--blue-light);
  --accent-dark: var(--blue-600);
}

/* ---- Reset ---- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
.lead { font-size: 1.15rem; color: var(--gray-700); }

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

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.bg-alt { background: var(--gray-100); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.78); }
.bg-blue-light { background: var(--blue-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.bg-navy .eyebrow { color: #7EA6F2; }
.bg-navy .eyebrow::before { background: #7EA6F2; }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(29,100,224,0.28); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(11,37,69,0.22); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.bg-navy .btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.bg-navy .btn-outline:hover { border-color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 10px 20px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { width: 34px; height: auto; }
.brand-text { font-family: var(--font-serif); line-height: 1.1; }
.brand-text .name { display: block; font-weight: 700; font-size: 1.14rem; color: var(--navy); letter-spacing: 0.01em; }
.brand-text .suffix { display: block; font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--gray-500); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--navy); border-color: var(--blue); }
.nav-links > a.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.85rem;
}
.nav-links > a.nav-admin-link svg { width: 15px; height: 15px; }
.nav-links > a.nav-admin-link:hover { color: var(--blue); border-color: transparent; }
.nav-links .lang-switch { margin-left: 4px; }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch a, .lang-switch span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--gray-500);
  line-height: 1.2;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch .active { color: var(--white); background: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 70%);
  padding: 110px 0 60px;
}
.hero-mountains-bg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
  z-index: 0;
}
.hero-mountains-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-tagline { font-size: 1.2rem; color: var(--gray-700); max-width: 620px; }

/* ---- Dashboard / Stats ---- */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card {
  background: var(--white);
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.stat-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.stat-icon svg { width: 100%; height: 100%; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Mission / Vision */
.mv-card { position: relative; }
.mv-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.mv-icon svg { width: 26px; height: 26px; }

/* ---- Portfolio ---- */
.category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card-media {
  height: 200px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue-600) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-media svg { width: 64px; height: 64px; color: rgba(255,255,255,0.9); position: relative; z-index: 1; }
.product-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { margin-bottom: 8px; }
.product-card-body p { flex: 1; font-size: 0.95rem; }
.product-card-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
}
.product-card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.product-card:hover .product-card-link svg { transform: translateX(4px); }

/* ---- Reach / Regions ---- */
.reach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reach-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--white);
}
.reach-item .region-icon { color: var(--blue); width: 30px; height: 30px; margin-bottom: 14px; }
.reach-item h4 { font-family: var(--font-sans); font-size: 1rem; color: var(--navy); margin: 0 0 6px; font-weight: 700; }
.reach-item p { font-size: 0.88rem; margin: 0; color: var(--gray-500); }

/* ---- Value list ---- */
.value-list { display: grid; gap: 20px; }
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .num {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 44px;
}
.value-item h4 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; }
.value-item p { margin: 0; font-size: 0.94rem; }

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0; max-width: 480px; }

/* ---- Product detail page ---- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-hero-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-hero-media svg { width: 40%; height: 40%; color: rgba(255,255,255,0.92); filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.product-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.spec-table tr { border-bottom: 1px solid var(--gray-200); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 0; vertical-align: top; }
.spec-table th { width: 220px; font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.spec-table td { color: var(--gray-700); font-size: 0.95rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: 999px;
}

.breadcrumbs { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; }
.breadcrumbs a { color: var(--gray-500); font-weight: 600; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { margin: 0 8px; }

.related-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; font-size: 0.86rem; color: var(--navy); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.info-panel { background: var(--gray-100); border-radius: var(--radius); padding: 36px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--gray-200); }
.info-row:last-of-type { border-bottom: none; }
.info-row .icon { color: var(--blue); width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.info-row h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--navy); font-family: var(--font-sans); }
.info-row p { margin: 0; font-size: 0.9rem; }
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background .2s ease, color .2s ease;
}
.social-row a:hover { background: var(--navy); color: var(--white); }
.social-row svg { width: 18px; height: 18px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.site-footer p { color: rgba(255,255,255,0.7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 32px; }
.footer-brand .name { font-family: var(--font-serif); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom .social-row a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: var(--white); }
.footer-bottom .social-row a:hover { background: var(--blue); border-color: var(--blue); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .reach-grid { grid-template-columns: repeat(2, 1fr); }
  .related-products { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 30px 28px; gap: 22px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a { font-size: 1.1rem; width: 100%; }
  .nav-links .lang-switch { margin-top: 10px; margin-left: 0; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .product-hero-media { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 40px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-header .container { padding: 0 18px; }
  .nav-cta { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 28px; }
  .brand-text .name { font-size: 1rem; }
  .brand-text .suffix { font-size: 0.6rem; }
  .nav-cta .btn-sm { padding: 9px 16px; font-size: 0.82rem; }
  .nav-toggle { padding: 8px 4px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .reach-grid { grid-template-columns: 1fr; }
  .related-products { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 90px; }
  .spec-table th { width: 140px; }
  .spec-table tr { display: flex; flex-direction: column; padding: 10px 0; }
  .spec-table th, .spec-table td { padding: 2px 0; }
}
