/* ==========================================================
   MACEGUA — estilos del sitio
   Colores principales: cambia --acento para ajustar la marca
   ========================================================== */
:root {
  --fondo: #F2EFE9;
  --carbon: #1B1B19;
  --acento: #FC9A00;          /* naranja del logo */
  --acento-oscuro: #E08800;   /* hover de fondos naranja */
  --acento-texto: #B45309;    /* naranja legible para textos sobre fondo claro */
  --acento-texto-hover: #92400E;
  --amarillo: #F2B705;
  --blanco: #FFFFFF;
  --gris-claro: #D9D4CB;
  --gris-medio: #BDB7AC;
  --gris-borde: #A39D92;
  --texto-2: #4A463F;
  --texto-3: #5E5A53;
  --linea-oscura: #3A3833;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --cuerpo: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1248px;
  --gutter: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--cuerpo); background: var(--fondo); color: var(--carbon); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--acento-texto); }
a:hover { color: var(--acento-texto-hover); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; line-height: 0.95; }
p { margin: 0; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.saltar { position: absolute; left: -9999px; top: 0; background: var(--carbon); color: #fff; padding: 12px 16px; z-index: 100; }
.saltar:focus { left: 16px; top: 16px; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; font-family: var(--cuerpo); font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--acento { background: var(--acento); color: var(--carbon); }
.btn--acento:hover { background: var(--acento-oscuro); color: var(--carbon); }
.btn--oscuro { background: var(--carbon); color: #fff; }
.btn--oscuro:hover { background: #000; color: #fff; }
.btn--borde { border-color: var(--carbon); color: var(--carbon); background: transparent; }
.btn--borde:hover { background: var(--carbon); color: #fff; }
.btn--blanco { background: #fff; color: var(--carbon); }
.btn--blanco:hover { background: var(--fondo); color: var(--carbon); }
.btn--grande { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.btn--chico { min-height: 48px; padding: 10px 14px; font-size: 15px; flex: 1; gap: 8px; }
.btn--ancho { width: 100%; }

.enlace { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--carbon); color: var(--gris-claro); font-size: 14px; }
.topbar__in { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__grupo { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: var(--gris-claro); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .sep { color: #6E6960; }
.topbar .destacado { color: var(--amarillo); font-weight: 600; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--fondo); border-bottom: 1px solid var(--gris-claro); }
.header__in { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--carbon); }
.logo img { height: 56px; width: auto; }
.footer__logo { width: 120px; height: auto; }
.logo:hover { color: var(--carbon); }
.nav { display: flex; align-items: center; gap: 32px; font-weight: 500; }
.nav a:not(.btn) { color: var(--carbon); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--acento-texto); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--carbon); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Portada ---------- */
.hero__in { min-height: 720px; display: flex; align-items: center; gap: 64px; padding-top: 40px; padding-bottom: 40px; }
.hero__texto { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--texto-3); }
.raya { width: 40px; height: 4px; background: var(--acento); display: inline-block; }
.hero h1 { font-weight: 800; font-size: clamp(52px, 7.2vw, 104px); line-height: .92; letter-spacing: -1px; }
.lead { font-size: 21px; color: var(--texto-2); max-width: 560px; }
.acciones { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { width: 560px; height: 560px; position: relative; flex-shrink: 0; }
.muro { position: absolute; inset: 0; width: 100%; height: 100%; }
.saco { position: absolute; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.saco--izq { left: -2%; top: 23%; width: 41%; }
.saco--der { right: -2%; top: 23%; width: 41%; }
.saco--centro { left: 23%; top: 10%; width: 54%; }
.hero__etiqueta { position: absolute; left: 0; bottom: -8px; padding: 12px 18px; background: var(--carbon); color: var(--fondo); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Marcas ---------- */
.marcas { background: var(--carbon); color: var(--fondo); }
.marcas__in { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.marcas__titulo { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--gris-medio); }
.marcas__lista { display: flex; align-items: center; gap: 56px; font-family: var(--display); font-weight: 800; font-size: 40px; text-transform: uppercase; letter-spacing: 1px; }
.marcas__lista i { width: 10px; height: 10px; background: var(--acento); display: inline-block; }

/* ---------- Secciones ---------- */
.seccion { padding: 120px 0; }
.seccion__cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.seccion__cabeza h2 { font-weight: 800; font-size: clamp(44px, 5vw, 72px); margin-top: 16px; }
.seccion__cabeza p { max-width: 440px; font-size: 18px; color: var(--texto-2); }
.eyebrow-s { font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--acento-texto); }
.eyebrow-s--oscuro { color: var(--carbon); font-weight: 700; }
.eyebrow-s--amarillo { color: var(--amarillo); }

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

/* ---------- Tarjetas ---------- */
.card { background: #fff; display: flex; flex-direction: column; }
.card__media { height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media--oscuro { background: var(--carbon); }
.card__media--gris { background: #C9C3B8; }
.card__media--acento { background: var(--acento); }
.card__media--sacos { align-items: flex-end; }
.card__media--sacos img { width: 130px; }
.card__media--sacos img:nth-child(1) { margin-right: -24px; }
.card__media--sacos img:nth-child(2) { width: 150px; position: relative; z-index: 1; }
.card__media--sacos img:nth-child(3) { margin-left: -24px; }
.card__cuerpo { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tag { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--acento-texto); }
.card h3 { font-weight: 700; font-size: 38px; line-height: 1; }
.card p { font-size: 16px; color: var(--texto-2); }
.card ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; }
.card .enlace { margin-top: auto; }

/* ---------- Línea Stark ---------- */
.stark { background: var(--amarillo); }
.stark .seccion__cabeza p { color: var(--carbon); }
.cemento__media { height: 360px; background: #EFECE6; display: flex; align-items: center; justify-content: center; position: relative; }
.cemento__media img { width: 200px; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.2)); transition: transform .25s; }
.cemento:hover .cemento__media img { transform: translateY(-6px) rotate(-1.5deg); }
.cemento__psi { position: absolute; left: 0; top: 24px; padding: 10px 16px; background: var(--carbon); color: #fff; font-family: var(--display); font-weight: 800; font-size: 28px; }
.cemento h3 { font-size: 36px; }
.usos { padding: 16px 0; border-top: 1px solid #E4E0D8; border-bottom: 1px solid #E4E0D8; }
.usos__titulo { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--texto-3); margin-bottom: 8px; }
.card ul.check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; font-size: 15px; }
.check li { display: flex; gap: 10px; }
.check li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.datos div { display: flex; flex-direction: column; gap: 2px; }
.datos span { font-size: 13px; color: var(--texto-3); }
.datos strong { font-size: 15px; line-height: 1.3; }
.datos .dato-grande { font-family: var(--display); font-size: 26px; font-weight: 700; }
.card__botones { margin-top: auto; padding-top: 8px; display: flex; gap: 12px; }
.aviso { margin-top: 32px; display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--carbon); color: var(--fondo); font-size: 16px; }
.aviso svg { flex-shrink: 0; }

/* ---------- Nosotros ---------- */
.nosotros { background: var(--carbon); color: var(--fondo); }
.nosotros__in { display: flex; gap: 96px; }
.nosotros__texto { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.nosotros__texto h2 { font-weight: 800; font-size: clamp(44px, 5vw, 72px); }
.nosotros__texto p { font-size: 19px; line-height: 1.6; color: var(--gris-claro); }
.beneficios { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--linea-oscura); }
.beneficio { padding: 40px; background: var(--carbon); display: flex; flex-direction: column; gap: 14px; }
.beneficio h3 { font-weight: 700; font-size: 30px; }
.beneficio p { color: var(--gris-medio); }

/* ---------- Sucursales ---------- */
.sucursal { background: #fff; border-top: 6px solid var(--acento); padding: 40px; display: flex; flex-direction: column; gap: 12px; }
.sucursal__num { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--gris-claro); }
.sucursal h3 { font-weight: 700; font-size: 40px; }
.sucursal p { font-size: 18px; color: var(--texto-2); }
.sucursal .enlace { margin-top: auto; }

/* ---------- Cotiza ---------- */
.cotiza-wrap { padding-bottom: 120px; }
.cotiza { background: var(--acento); color: var(--carbon); padding: 72px; display: flex; gap: 72px; align-items: flex-start; }
.cotiza__texto { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.cotiza__texto h2 { font-weight: 800; font-size: clamp(46px, 5.2vw, 76px); }
.cotiza__texto p { font-size: 20px; }
.cotiza .horario { font-size: 17px; line-height: 1.6; }
.form { width: 520px; flex-shrink: 0; background: #fff; color: var(--carbon); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 15px; font-weight: 600; }
.campo input, .campo select { height: 50px; padding: 0 14px; border: 1px solid var(--gris-borde); font-size: 16px; font-family: inherit; background: #fff; color: var(--carbon); border-radius: 0; }
.campo input:focus, .campo select:focus { outline: 3px solid var(--amarillo); outline-offset: 0; border-color: var(--carbon); }
.campo-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__error { color: #B91C1C; font-weight: 600; font-size: 15px; }

/* ---------- Pie ---------- */
.footer { background: var(--carbon); color: var(--gris-claro); padding: 80px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 64px; }
.footer__marca { max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.footer__marca p { color: var(--gris-medio); }
.footer__cols { display: flex; gap: 96px; line-height: 2; }
.footer__cols > div { display: flex; flex-direction: column; }
.footer__cols a { color: var(--gris-claro); text-decoration: none; }
.footer__cols a:hover { color: #fff; }
.footer__tit { font-weight: 600; color: #fff; margin-bottom: 6px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linea-oscura); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #8F897F; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #1FA855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; }
.wa-flotante:hover { color: #fff; background: #178A45; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .hero__visual { width: 460px; height: 460px; }
  .nosotros__in { gap: 56px; }
  .nosotros__texto { width: 380px; }
  .cotiza { padding: 56px; gap: 48px; }
  .form { width: 460px; }
}

@media (max-width: 960px) {
  .topbar__grupo:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .menu-btn { display: flex; }
  .nav { position: absolute; top: 88px; left: 0; right: 0; background: var(--fondo); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--gris-claro); display: none; }
  .nav.abierto { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--gris-claro); }
  .nav .btn { margin-top: 16px; }
  .hero__in { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 48px; padding-bottom: 72px; gap: 48px; }
  .hero__visual { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .seccion__cabeza { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nosotros__in { flex-direction: column; }
  .nosotros__texto { width: auto; }
  .cotiza { flex-direction: column; }
  .form { width: 100%; }
  .footer__top { flex-direction: column; }
  .footer__cols { gap: 48px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .header__in { height: 68px; }
  .nav { top: 68px; }
  html { scroll-padding-top: 70px; }
  .logo img { height: 42px; }
  .topbar { font-size: 13px; }
  .topbar__grupo { gap: 10px; justify-content: center; }
  .eyebrow { font-size: 13px; letter-spacing: 1.5px; }
  .lead { font-size: 17px; }
  .acciones { flex-direction: column; }
  .acciones .btn { width: 100%; }
  .btn--grande { min-height: 54px; font-size: 17px; }
  .marcas__in { justify-content: center; min-height: 0; }
  .marcas__titulo { display: none; }
  .marcas__lista { font-size: 24px; gap: 20px; }
  .seccion { padding: 64px 0; }
  .seccion__cabeza { margin-bottom: 32px; }
  .card__cuerpo { padding: 24px; }
  .card h3 { font-size: 30px; }
  .cemento__media { height: 280px; }
  .cemento__media img { width: 150px; }
  .cemento__psi { font-size: 22px; padding: 8px 12px; top: 16px; }
  .aviso { align-items: flex-start; padding: 18px; font-size: 15px; }
  .beneficios { grid-template-columns: 1fr; }
  .beneficio { padding: 24px; }
  .beneficio h3 { font-size: 24px; }
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .sucursal { padding: 24px 20px; }
  .sucursal__num { font-size: 40px; }
  .cotiza-wrap { padding-bottom: 0; }
  .cotiza-wrap .contenedor { padding: 0; }
  .cotiza { padding: 48px 20px; gap: 28px; }
  .cotiza__texto p { font-size: 17px; }
  .form { padding: 20px; }
  .campo-doble { grid-template-columns: 1fr; }
  .footer { padding: 48px 0 96px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Ajustes de desbordamiento en pantallas pequeñas */
.campo { min-width: 0; }
.campo input, .campo select { width: 100%; }
.seccion__cabeza > div { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 600px) {
  .seccion__cabeza h2, .nosotros__texto h2 { font-size: 40px; }
}
.sucursal { min-width: 0; }
@media (max-width: 600px) {
  .sucursal h3 { font-size: 30px; }
  .sucursal p { font-size: 16px; }
}
.topbar__grupo span, .topbar__grupo a { white-space: nowrap; }
@media (max-width: 1200px) { .topbar__grupo:first-child span:first-child, .topbar__grupo:first-child span:first-child + .sep { display: none; } }
