/* ============================================================
   KARMAR SPA — Sistema de diseño
   Paleta negro y amarillo: negro/grafito como base, amarillo
   como acento primario (color de advertencia/industrial, muy
   usado en maquinaria y equipos de construcción). Tipografía
   condensada para títulos (proporción de perfil estructural)
   + sans técnica para cuerpo.
   ============================================================ */

:root{
  --steel-charcoal: #141414;
  --steel-graphite: #2C2C2E;
  --steel-line: #C7CCCE;
  --steel-mist: #E7E9EA;
  --steel-paper: #F6F7F6;
  --brand-yellow: #FFC72C;
  --brand-yellow-dark: #E0A800;
  --brand-black: #141414;
  --white: #FFFFFF;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1180px;
}

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

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--steel-charcoal);
  background: var(--steel-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; color: var(--steel-graphite); max-width: 62ch; }

.eyebrow-label{
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-charcoal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-label::before{
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--brand-yellow);
}
.hero .eyebrow-label{ color: var(--brand-yellow); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--brand-yellow);
  outline-offset: 3px;
}

/* -------------------- Top promo bar -------------------- */
.top-bar{
  background: var(--brand-yellow);
}
.top-bar .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  font-size: 0.84rem;
}
.top-bar-promo{
  color: var(--steel-charcoal);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.top-bar-cta{
  color: var(--steel-charcoal);
  font-weight: 700;
  border-left: 1px solid rgba(20,20,20,0.35);
  padding-left: 14px;
}
.top-bar-cta:hover{ text-decoration: underline; }
@media (max-width: 680px){
  .top-bar .wrap{ height: auto; padding-top: 8px; padding-bottom: 8px; }
  .top-bar-promo{ font-size: 0.78rem; }
  .top-bar-cta{ font-size: 0.78rem; white-space: nowrap; margin-left: 10px; }
}
@media (max-width: 460px){ .top-bar-promo{ display:none; } .top-bar-cta{ border-left:none; padding-left:0; margin-left:0; } }

/* -------------------- Header / Nav -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--steel-charcoal);
  background-image: linear-gradient(120deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0) 45%);
  border-bottom: 3px solid var(--brand-yellow);
  box-shadow: 0 3px 16px rgba(0,0,0,0.2);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo{
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span{ color: var(--brand-yellow); }
.logo-mark{ width: 32px; height: 32px; flex: none; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a{
  color: var(--steel-mist);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 2px;
  margin-right: 30px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:last-of-type{ margin-right: 0; }
.main-nav a:hover, .main-nav a[aria-current="page"]{
  color: var(--white);
  border-bottom-color: var(--brand-yellow);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary{
  background: var(--brand-yellow);
  color: var(--steel-charcoal);
  box-shadow: 0 5px 16px rgba(255,199,44,0.4);
}
.btn-primary:hover{ background: var(--brand-yellow-dark); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(224,168,0,0.45); }

.btn-outline{
  background: transparent;
  border-color: var(--steel-charcoal);
  color: var(--steel-charcoal);
}
.btn-outline:hover{ background: var(--steel-charcoal); color: var(--white); transform: translateY(-1px); }

.btn-outline-light{
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-light:hover{ background: var(--white); color: var(--steel-charcoal); transform: translateY(-1px); }

.nav-cta{
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-bar{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2){ opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero{
  position: relative;
  background: var(--steel-charcoal);
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 44px),
    radial-gradient(ellipse at 12% -10%, rgba(255,255,255,0.06), transparent 55%);
  color: var(--white);
  padding: 60px 0 64px;
  overflow: hidden;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}
.hero-copy{ min-width: 0; }
.hero h1{ color: var(--white); }
.hero p.lead{
  color: var(--steel-mist);
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-actions > * { margin-right: 14px; margin-bottom: 10px; }
.hero-actions > *:last-child { margin-right: 0; }
.hero-figure{ padding: 10px; position: relative; z-index: 1; min-width: 0; }
.hero-figure svg{ width: 100%; height: auto; display: block; }

/* -------------------- Trust strip -------------------- */
.trust-strip{ padding: 0; }
.trust-strip .wrap{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.trust-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  border-right: 1px solid var(--steel-line);
}
.trust-item:last-child{ border-right: none; }
.trust-item .ico{
  width: 28px; height: 28px;
  flex: none;
  color: var(--steel-charcoal);
}
.trust-item strong{
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.trust-item span{
  display: block;
  font-size: 0.8rem;
  color: var(--steel-graphite);
}
@media (max-width: 880px){
  .trust-strip .wrap{ grid-template-columns: repeat(2, 1fr); }
  .trust-item{ border-bottom: 1px solid var(--steel-line); }
}
@media (max-width: 460px){
  .trust-strip .wrap{ grid-template-columns: 1fr; }
}

/* -------------------- Section rhythm -------------------- */
section{ padding: 64px 0; }
.section-head{
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--steel-line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2{ margin-bottom: 0; }

.rule{
  border: none;
  border-top: 1px solid var(--steel-line);
  margin: 0;
}

/* -------------------- Product line tiles -------------------- */
.line-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--steel-line);
}
.line-tile{
  position: relative;
  padding: 28px 22px;
  border-bottom: 1px solid var(--steel-line);
  border-right: 1px solid var(--steel-line);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.line-tile:last-child{ border-right: none; }
.line-tile:hover{
  background: var(--white);
  box-shadow: 0 14px 30px -18px rgba(30,35,40,0.4);
  transform: translateY(-2px);
  z-index: 1;
}
.ico-badge{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,199,44,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.line-tile .ico{
  width: 26px; height: 26px;
  color: var(--steel-charcoal);
}
.line-tile h3{ margin-bottom: 6px; }
.line-tile p{ font-size: 0.94rem; margin-bottom: 12px; }
.line-tile a.more{
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-black);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* -------------------- Featured products (estilo tienda) -------------------- */
.featured{ background: var(--white); border-top: 1px solid var(--steel-line); border-bottom: 1px solid var(--steel-line); }
.featured-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.product-card{
  position: relative;
  background: var(--steel-paper);
  border: 1px solid var(--steel-line);
  border-radius: 6px;
  padding: 26px 22px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.product-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(30,35,40,0.4);
  border-color: var(--brand-yellow);
  background: var(--white);
}
.product-card .ico-badge{ margin-bottom: 16px; }
.product-card h3{ font-size: 1.05rem; margin-bottom: 4px; }
.product-card .spec{ font-size: 0.85rem; color: var(--steel-graphite); margin-bottom: 18px; min-height: 2.6em; }
.product-card .btn{ width: 100%; justify-content: center; padding: 10px 16px; font-size: 0.88rem; }
.card-tag{
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--brand-black);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* -------------------- Value list -------------------- */
.value-list{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.value-item{ border-left: 3px solid var(--brand-yellow); padding-left: 20px; }
.value-item .ico{ width: 28px; height: 28px; color: var(--steel-charcoal); margin-bottom: 14px; }
.value-item h3{ margin-bottom: 8px; }
.value-item p{ font-size: 0.95rem; }

/* -------------------- Sector tags -------------------- */
.sector-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.sector-tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--steel-line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel-graphite);
  background: var(--white);
}
.sector-tag .ico{ width: 18px; height: 18px; color: var(--steel-charcoal); flex: none; }

/* -------------------- Steps -------------------- */
.steps{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}
.step{
  padding: 30px 26px;
  border-right: 1px solid var(--steel-line);
  position: relative;
}
.step:last-child{ border-right: none; }
.step .num{
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--steel-line);
  display: block;
  margin-bottom: 10px;
}
.step h3{ margin-bottom: 8px; }
.step p{ font-size: 0.93rem; margin-bottom: 0; }

/* -------------------- CTA band -------------------- */
.cta-band{
  background: var(--brand-black);
  color: var(--white);
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: var(--steel-mist); }
.cta-band .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band-actions{ display:flex; gap: 14px; flex-wrap: wrap; }
.cta-band-actions > * { margin-right: 14px; margin-bottom: 10px; }
.cta-band-actions > *:last-child { margin-right: 0; }

/* -------------------- Footer -------------------- */
.site-footer{
  background: var(--steel-charcoal);
  color: var(--steel-mist);
  padding: 52px 0 26px;
  border-top: 3px solid var(--brand-yellow);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
}
.footer-grid h4{ color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid p, .footer-grid a{ color: #B9C0C3; font-size: 0.9rem; }
.footer-grid a{ display:block; margin-bottom: 8px; }
.footer-grid a:hover{ color: var(--white); }
.social-row{ display: flex; gap: 10px; margin-top: 14px; }
.social-row a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--steel-graphite);
  border-radius: 50%;
  margin-bottom: 0;
}
.social-row a:hover{ background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--steel-charcoal); }
.social-row svg{ width: 16px; height: 16px; }
.footer-bottom{
  border-top: 1px solid var(--steel-graphite);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8A9296;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.placeholder-note{
  color: var(--brand-yellow);
}

/* -------------------- Page header (inner pages) -------------------- */
.page-hero{
  background: var(--steel-mist);
  border-bottom: 1px solid var(--steel-line);
  padding: 46px 0 40px;
}
.page-hero .eyebrow-label{ display:block; margin-bottom: 8px; }
.page-hero p{ font-size: 1.02rem; }

/* -------------------- Product catalog (productos.html) -------------------- */
.cat-nav{
  position: sticky;
  top: 76px;
  background: var(--steel-paper);
  border-bottom: 1px solid var(--steel-line);
  z-index: 40;
  overflow-x: auto;
}
.cat-nav .wrap{
  display: flex;
  gap: 26px;
  padding-top: 14px;
  padding-bottom: 14px;
  white-space: nowrap;
}
.cat-nav a{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--steel-graphite);
  padding-bottom: 4px;
  margin-right: 26px;
  border-bottom: 2px solid transparent;
}
.cat-nav a:last-of-type{ margin-right: 0; }
.cat-nav a:hover{ color: var(--steel-charcoal); border-color: var(--brand-yellow); }

.category-block{
  padding: 54px 0;
  border-bottom: 1px solid var(--steel-line);
  scroll-margin-top: 158px;
}
.category-block:last-of-type{ border-bottom: none; }
.category-head{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 26px;
}
.ico-badge-lg{
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,199,44,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-head .ico{ width: 40px; height: 40px; color: var(--steel-charcoal); }
.category-head p{ font-size: 0.98rem; }

table.spec-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 8px;
}
.spec-table th, .spec-table td{
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--steel-line);
  font-variant-numeric: tabular-nums;
}
.spec-table th{
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--steel-graphite);
  border-bottom: 2px solid var(--steel-charcoal);
}
.spec-table tr:hover td{ background: var(--steel-mist); }
.table-wrap{ overflow-x: auto; }
.spec-note{ font-size: 0.85rem; color: var(--steel-graphite); margin-top: 10px; }

/* -------------------- Nosotros -------------------- */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.mission-list{ list-style: none; padding: 0; margin: 0; }
.mission-list li{
  padding: 16px 0;
  border-bottom: 1px solid var(--steel-line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.mission-list li:first-child{ border-top: 1px solid var(--steel-line); }
.mission-list strong{ font-family: var(--font-display); font-weight: 600; }

/* -------------------- Contacto -------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.contact-detail{ padding: 18px 0; border-bottom: 1px solid var(--steel-line); }
.contact-detail:first-child{ border-top: 1px solid var(--steel-line); }
.contact-detail .label{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel-graphite);
  margin-bottom: 4px;
}
.contact-detail .value{ font-size: 1.05rem; }

form.quote-form{
  background: var(--white);
  border: 1px solid var(--steel-line);
  padding: 30px;
}
.form-row{ margin-bottom: 18px; }
.form-row label{
  display:block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--steel-graphite);
}
.form-row input, .form-row select, .form-row textarea{
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--steel-line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--steel-paper);
}
.form-row textarea{ resize: vertical; min-height: 110px; }
.form-two{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.map-frame{
  border: 1px solid var(--steel-line);
  height: 260px;
  margin-top: 18px;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

/* -------------------- Responsive -------------------- */
@media (max-width: 880px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-figure{ order: -1; }
  .value-list{ grid-template-columns: 1fr; gap: 26px; }
  .steps{ grid-template-columns: 1fr; }
  .step{ border-right: none; border-bottom: 1px solid var(--steel-line); }
  .step:last-child{ border-bottom: none; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid{ grid-template-columns: 1fr; }
  .category-head{ grid-template-columns: 60px 1fr; }
  .ico-badge-lg{ width: 60px; height: 60px; }
  .category-head .ico{ width: 30px; height: 30px; }
  .form-two{ grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .main-nav{
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--steel-charcoal);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 28px 22px;
    gap: 4px;
    border-bottom: 3px solid var(--brand-yellow);
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid var(--steel-graphite); }
  .nav-toggle{ display: flex; }
  .nav-cta{ display:none; }
  .main-nav .nav-cta{ display: inline-flex; margin-top: 10px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-band .wrap{ flex-direction: column; align-items: flex-start; }
}
