/* ============================================================
   MPA — Global design system, shared layout, navigation, buttons, footer, and utilities
   Refactored from the original combined stylesheet.
============================================================ */

/* Base styles */

:root {
  --brand: #c83d43;
  --brand-dark: #a80f13;
  --brand-deep: #8d0b0e;
  --text: #2e2a2b;
  --muted: #6b6264;
  --cream: #fffaf7;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(91, 9, 13, .18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,61,67,.08);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: clamp(110px, 10vw, 150px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  color: #7b3135;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  border-radius: 9px;
  background: var(--brand);
  transition: right .22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(200,61,67,.2);
  transition: transform .2s ease, background .2s ease;
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: #b42a30;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--brand);
  display: block;
  margin: 5px 0;
}

.eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 36px;
  font-weight: 800;
  opacity: .85;
}

.btn-light {
  border-radius: 999px;
  padding: 13px 24px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
}

.btn-ghost {
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  font-weight: 750;
}

.section {
  padding: 92px 0;
}

.section.soft {
  background: var(--cream);
}

.section-title {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-title h2 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
}

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

.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 92px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .7fr .8fr 1.15fr;
  gap: 46px;
}

.footer-logo {
  width: 116px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  max-width: 250px;
}

.footer h4 {
  margin: 0 0 18px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}

.socials {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
}

.newsletter label {
  font-size: 13px;
}

.newsletter input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: transparent;
  outline: 0;
  margin: 7px 0 8px;
}

.newsletter input::placeholder {
  color: rgba(255,255,255,.7);
}

.newsletter button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 66px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

.whatsapp {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20c96b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  font-size: 25px;
  border: 3px solid rgba(255,255,255,.65);
}

.page-hero {
  padding: 92px 0 78px;
  background: linear-gradient(135deg, #fff6f3, #fff);
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  margin: 0 0 15px;
  color: var(--brand-dark);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.product-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 750;
  transition: background 0.2s ease,
    transform 0.2s ease;
}

.product-outline-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.product-introduction {
  background: #ffffff;
}

.core-services-section {
  background: var(--cream);
}


/* ============================================================
   Header actions and language selector
============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #efd5d7;
  border-radius: 999px;
  background: #ffffff;
  color: #9b7376;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.06em;
}

.language-switch a {
  color: #9b7376;
  transition: color 0.2s ease;
}

.language-switch a:hover,
.language-switch a.active {
  color: var(--brand-dark);
}

.language-switch span {
  color: #dfbabc;
  font-weight: 500;
}

/* Responsive styles */

@media (max-width: 980px) {

  .nav-links {
    gap: 17px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {

  .navbar {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1100px) {
  .navbar {
    gap: 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  .language-switch {
    padding: 7px 9px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .brand img {
    width: 105px;
  }

  .language-switch {
    gap: 5px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .menu-toggle {
    padding: 6px;
  }
}