:root {
  color-scheme: light;
  /* Granate / Rojo Corporativo KANSERT / MME */
  --mme-red: #B21921;
  --mme-red-bright: #d91d27;
  
  /* Azul Suministro Industrial */
  --supply-blue: #12558A;
  --supply-accent: #168fe1;
  
  /* Neutrales */
  --text-dark: #102c49;
  --text-muted: #62788c;
}

* {
  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-dark);
  background: #fff;
  line-height: 1.6;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

/* HEADER */
.site-header {
  height: 86px;
  background: #fff;
  border-bottom: 1px solid #e7edf2;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  height: 45px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.header-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

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

.nav nav a {
  color: #173553;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 31px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav nav a:hover {
  color: var(--mme-red-bright);
}

.menu-toggle {
  display: none;
  border: 1px solid #d7e2ea;
  background: white;
  border-radius: 8px;
  padding: 9px 12px;
  color: #173553;
  font-size: 18px;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #0e1e2e;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 30, 46, 0.6) 0%, rgba(14, 30, 46, 0.25) 45%, rgba(0, 0, 0, 0) 80%), 
              url('https://kansert.es/mme/wp-content/uploads/2021/09/kansert_6.jpg') center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 80px 0;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #ff525a;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0 0 20px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

.hero h1 span {
  color: #ff525a;
  background: none;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 32px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* BOTONES */
.btn,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: .2s ease;
}

.btn {
  padding: 14px 26px;
}

.btn-mme {
  background: var(--mme-red-bright);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.btn-mme:hover {
  background: #9e131a;
  transform: translateY(-2px);
}

/* SECCIÓN TARJETAS */
.solutions {
  padding: 100px 0 90px;
  background: #f8fafc;
}

.section-heading {
  max-width: 1000px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image-wrap {
  height: 320px;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* TARJETA MME (Granate) */
.card-mme {
  background: var(--mme-red);
  color: #fff;
}

.card-mme h3 {
  color: #fff;
  font-size: 26px;
  margin: 0 0 12px;
}

.card-mme p {
  color: #f3d6d8;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
}

.card-mme .card-link {
  margin-top: auto;
  padding: 12px 24px;
  background: #fff;
  color: var(--mme-red);
}

.card-mme .card-link:hover {
  background: #f3d6d8;
}

/* TARJETA SUMINISTRO (Azul) */
.card-supply {
  background: var(--supply-blue);
  color: #fff;
}

.card-supply h3 {
  color: #fff;
  font-size: 26px;
  margin: 0 0 12px;
}

.card-supply p {
  color: #d4e4f2;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
}

.card-supply .card-link {
  margin-top: auto;
  padding: 12px 24px;
  background: #fff;
  color: var(--supply-blue);
}

.card-supply .card-link:hover {
  background: #d4e4f2;
}

/* SECCIÓN POR QUÉ ELEGIRNOS */
.why {
  padding: 90px 0;
}

.centered {
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.features > div {
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e7edf2;
}

.feature-icon {
  font-size: 32px;
  color: var(--mme-red-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #fdf2f2;
  border-radius: 50%;
  margin-bottom: 16px;
}

.features h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.features p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* FOOTER */
.footer {
  background: #061826;
  color: #fff;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.footer-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.footer-company {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
}

.footer-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #b9cbd9;
  margin-top: 5px;
}

.footer-contact {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-contact p {
  margin: 0 0 4px 0;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #ff525a;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: #b9cbd9;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-header {
    height: 72px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Se asegura que el menú esté totalmente oculto en tablet y móvil por defecto */
  .nav nav {
    display: none;
    position: absolute;
    top: 72px;
    left: -24px;
    right: -24px;
    background: #ffffff;
    padding: 16px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid #e7edf2;
  }
  
  /* Clase activa para cuando se toca el botón ☰ */
  .nav nav.open {
    display: flex;
  }
  
  .nav nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .nav nav a:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: 520px;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 60px 0;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .features {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, 1180px);
  }
  
  .hero-content {
    padding: 48px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .lead {
    font-size: 15px;
  }
  
  .section-heading h2 {
    font-size: 32px;
  }
  
  .card-image-wrap {
    height: 220px;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 26px;
  }
  
  .footer-company {
    font-size: 20px;
  }
  
  .footer-subtitle {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .card-link,
  .card {
    transition: none;
  }
}