/* =========================================================
   Behmak - estilos del sitio
   Cambiá los colores y fuentes en :root y se actualiza todo.
   ========================================================= */

:root {
  --accent: #D7141B;        /* rojo Behmak */
  --accent-hover: #B01016;
  --accent-light: #FF8A8E;  /* rojo claro para fondos oscuros */
  --ink: #2B2A2A;           /* texto principal */
  --ink-soft: #4A4848;      /* párrafos */
  --muted: #5C5A5A;         /* textos secundarios */
  --line: #E6E4E4;          /* bordes */
  --bg-soft: #F7F6F6;       /* fondos grises */
  --bg-dark: #2B2A2A;
  --bg-footer: #1E1D1D;
  --on-dark: #D6D4D4;       /* texto sobre fondo oscuro */

  --font-body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-title: 'Archivo', sans-serif;

  --radius: 10px;
  --max-width: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-title); }
p { margin: 0; }

/* Contenedor centrado que usan todas las secciones */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

/* ---------- Encabezado y menú ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .container {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { height: 44px; width: auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
}
.nav a.active { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); padding: 14px 24px; }
.btn-outline-light { border: 1.5px solid #FFFFFF; color: #FFFFFF; padding: 14px 24px; }
.btn-white { background: #FFFFFF; color: var(--ink); font-weight: 700; }
.btn-small { padding: 12px 18px; font-size: 15px; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Textos reutilizables ---------- */
.eyebrow {               /* el texto chico en mayúsculas sobre los títulos */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 36px; }
.section-title { font-weight: 800; font-size: 38px; line-height: 1.1; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Secciones de fondo ---------- */
.bg-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-dark { background: var(--bg-dark); color: #FFFFFF; }
.bg-dark .eyebrow { color: var(--accent-light); }

/* ---------- Hero (portada) ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-title { font-weight: 900; font-size: 54px; line-height: 1.04; letter-spacing: -0.01em; }
.hero-text .lead { font-size: 18px; max-width: 520px; }
.hero-media { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-media .frame {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(43, 42, 42, 0.10);
}
.caption { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Franja de datos ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats .container {
  padding-top: 32px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.stat-value { font-family: var(--font-title); font-weight: 900; font-size: 30px; }
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- Grillas ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Tarjetas de producto ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.featured { border: 2px solid var(--accent); }
.card-media {
  height: 170px;
  background: #EFEEEE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}
.card-media.dark { background: var(--bg-dark); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-title { font-weight: 800; font-size: 20px; }
.card-text { font-size: 15px; line-height: 1.55; color: var(--ink-soft); flex-grow: 1; }
.card-link { font-weight: 600; font-size: 15px; color: var(--accent); }
.badge {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}
.title-row { display: flex; align-items: center; gap: 8px; }

/* ---------- Industrias (fondo oscuro) ---------- */
.industry {
  border: 1px solid #4A4848;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.industry .icon { width: 28px; height: 28px; stroke: var(--accent-light); }
.industry h3 { font-weight: 800; font-size: 19px; }
.industry p { font-size: 15px; line-height: 1.55; color: var(--on-dark); }

/* ---------- Nosotros ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.mini-card { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.mini-card h3 { font-weight: 800; font-size: 17px; }
.mini-card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Testimonios ---------- */
.testimonial {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.testimonial figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Banda roja de llamado a la acción ---------- */
.cta { background: var(--accent); color: #FFFFFF; }
.cta .container {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta h2 { font-weight: 900; font-size: 32px; line-height: 1.15; }
.cta p { font-size: 17px; line-height: 1.55; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--bg-footer); color: var(--on-dark); }
.site-footer .container { padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  font-size: 15px;
  line-height: 1.7;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-title { font-family: var(--font-title); font-weight: 800; color: #FFFFFF; font-size: 16px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #FFFFFF; }
.copyright { border-top: 1px solid #3A3939; padding-top: 18px; font-size: 13px; color: #A9A7A7; }

/* ---------- Smart QR: pasos numerados ---------- */
.step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.step-num { font-family: var(--font-title); font-weight: 900; font-size: 26px; color: var(--accent); }
.step-head h2 { font-weight: 800; font-size: 32px; margin-bottom: 6px; }
.step-head p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 720px; }
.image-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #FFFFFF; margin-bottom: 28px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.icon-circle {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 20px; height: 20px; stroke: var(--accent); }
.feature-title { font-weight: 600; font-size: 16px; }
.feature-text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.panel-shot { border: 1px solid #E2E0E0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(43, 42, 42, 0.12); background: #FFFFFF; }
.info-box { background: #FFFFFF; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.info-box strong { font-size: 16px; }
.info-box span { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.phone { width: 240px; background: var(--bg-dark); border-radius: 34px; padding: 9px; box-shadow: 0 14px 32px rgba(43, 42, 42, 0.22); margin: 0 auto; }
.phone-screen { border-radius: 26px; overflow: hidden; background: #FFFFFF; }
.steps-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps-list li { display: flex; gap: 14px; align-items: center; font-size: 16px; }
.steps-list .dot {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent); color: #FFFFFF; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Contacto ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.form-card { flex: 999 1 520px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid #B5B3B3;
  border-radius: 6px;
  background: #FFFFFF;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-note { font-size: 13px; color: var(--muted); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.contact-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.whatsapp-card { background: var(--bg-dark); color: #FFFFFF; border-radius: 12px; padding: 24px; display: flex; gap: 14px; align-items: center; }
.whatsapp-card:hover { color: #FFFFFF; background: #000000; }
.whatsapp-card strong { display: block; font-size: 17px; }
.whatsapp-card small { font-size: 14px; color: var(--on-dark); }
.contact-info { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.55; }
.contact-item { display: flex; gap: 12px; }
.contact-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--accent); }
.map-placeholder { height: 200px; border-radius: 12px; background: #EFEEEE; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); text-align: center; padding: 0 20px; }

/* ---------- Íconos SVG de línea ---------- */
svg.icon, .icon-circle svg, .contact-item svg, .industry svg {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn svg, .whatsapp-card svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Portada oscura con foto de fondo ---------- */
.hero-dark {
  /* capa oscura encima de la foto para que el texto se lea */
  background:
    linear-gradient(90deg, rgba(20, 19, 19, 0.94) 0%, rgba(20, 19, 19, 0.80) 55%, rgba(20, 19, 19, 0.55) 100%),
    url("../img/hero-fondo.jpg") center / cover no-repeat;
  color: #FFFFFF;
}
.hero-dark .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 96px; }
.hero-dark .eyebrow { color: var(--accent-light); }
.hero-dark .lead { color: var(--on-dark); }
.hero-dark .hero-media img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Fotos dentro de las tarjetas ---------- */
.card-media.photo img { object-position: center; }
.card-media.contain { background: #F3F2F2; }
.card-media.contain img {           /* para fotos chicas: se muestran enteras, sin estirarse */
  width: auto;
  height: auto;
  max-height: 150px;
  max-width: 90%;
  object-fit: contain;
  border-radius: 6px;
}

/* ---------- Bloque "así funciona el VOID" ---------- */
.void-steps { display: flex; flex-direction: column; gap: 16px; }
.void-steps img { border-radius: var(--radius); background: #FFFFFF; border: 1px solid var(--line); padding: 10px; }
.void-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.void-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; padding: 0; }

/* ---------- Galería de fotos ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.25s ease;
}
.gallery img:hover { transform: scale(1.04); }

/* =========================================================
   Celulares (pantallas de 700px o menos)
   ========================================================= */
@media (max-width: 700px) {
  .container { padding: 56px 18px; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .step-head h2 { font-size: 26px; }
  .cta h2 { font-size: 26px; }
  .nav { gap: 16px; font-size: 14px; }
  .form-card { padding: 22px; }
  .hero-dark .container { padding-top: 64px; padding-bottom: 64px; }
}
