/* Maqueta 2 · Parecida a la página actual.
   Mismo orden, colores (negro y rojo #D50032) y letra (Raleway) que ya conocen, pero rápida,
   con la portada que sí carga, botones de WhatsApp y llamada, y páginas con contenido. */
:root {
  --negro: #0c0c0c;
  --rojo: #d50032;
  --rojo-osc: #b0002a;
  --texto: #3a3a3a;
  --titulo: #242323;
  --gris: #f5f5f5;
  --linea: #eaeaea;
  --ancho: 1160px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.65 'Open Sans', system-ui, sans-serif; color: var(--texto); background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Raleway', sans-serif; color: var(--titulo); margin: 0; line-height: 1.2; }
.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--rojo); color: #fff; font: 600 15px/1 'Raleway', sans-serif; padding: 14px 24px; border: 0; border-radius: 3px; cursor: pointer; }
.boton:hover { background: var(--rojo-osc); }
.boton.blanco { background: #fff; color: var(--titulo); }
.boton.verde { background: #25a35a; }

/* Encabezado negro, como hoy */
.encabezado { background: var(--negro); position: sticky; top: 0; z-index: 20; }
.encabezado .envoltura { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 20px 'Raleway', sans-serif; }
.logo img { height: 40px; width: auto; }
.menu { display: flex; gap: 30px; font: 600 15px 'Raleway', sans-serif; color: #fff; align-items: center; }
.menu a:hover, .menu a.activo { color: var(--rojo); }
.menu .tel { background: var(--rojo); padding: 10px 16px; border-radius: 3px; }
.menu .tel:hover { color: #fff; background: var(--rojo-osc); }
.hamburguesa { display: none; background: none; border: 0; padding: 8px; }
.hamburguesa span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Portada: la foto que hoy no carga, ahora fija */
.portada { position: relative; min-height: 560px; display: flex; align-items: center; background: #222 center/cover; }
.portada::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.portada .caja { position: relative; background: rgba(12,12,12,.82); color: #fff; padding: 40px 44px; max-width: 560px; border-left: 6px solid var(--rojo); }
.portada h1 { color: #fff; font-size: 40px; font-weight: 700; }
.portada p { margin: 14px 0 26px; font-size: 18px; color: #e6e6e6; }
.portada .acciones { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tres accesos */
.accesos { background: var(--negro); color: #fff; }
.accesos .envoltura { display: grid; grid-template-columns: repeat(4, 1fr); }
.acceso { padding: 26px 22px; border-right: 1px solid #262626; display: flex; gap: 14px; align-items: center; }
.acceso:last-child { border-right: 0; }
.acceso .icono { width: 44px; height: 44px; border-radius: 50%; background: var(--rojo); display: grid; place-items: center; font-weight: 700; flex: none; }
.acceso b { display: block; font-family: 'Raleway', sans-serif; }
.acceso small { color: #b5b5b5; }

/* Productos con barra de categorías, como hoy */
.seccion { padding: 72px 0; }
.seccion.gris { background: var(--gris); }
.seccion h2 { font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.seccion .bajada { color: var(--rojo); margin: 0 0 36px; }
.catalogo { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.categorias h3 { font-size: 18px; margin-bottom: 14px; }
.categorias ul { list-style: none; margin: 0; padding: 0; font-family: 'Raleway', sans-serif; font-size: 14px; }
.categorias li { padding: 7px 0; border-bottom: 1px solid var(--linea); }
.categorias li b { color: var(--titulo); text-transform: uppercase; font-size: 13px; }
.categorias li.sub { padding-left: 14px; }
.categorias li.sub::before { content: '› '; color: var(--rojo); }
.productos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.producto-tarjeta { display: flex; flex-direction: column; }
.producto-tarjeta .foto { aspect-ratio: 1; background: #fff; border: 1px solid var(--linea); display: grid; place-items: center; padding: 14px; }
.producto-tarjeta .foto img { max-height: 100%; object-fit: contain; }
.producto-tarjeta.usado .foto { padding: 0; overflow: hidden; }
.producto-tarjeta.usado .foto img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.producto-tarjeta small { text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: #8a8a8a; margin-top: 12px; }
.producto-tarjeta h3 { font-size: 17px; font-weight: 700; text-transform: uppercase; margin: 4px 0 6px; }
.producto-tarjeta .datos { font-size: 14px; margin-bottom: 12px; }
.producto-tarjeta .disp { color: #1f8a4c; font-weight: 600; font-size: 13px; }
.producto-tarjeta .boton { margin-top: auto; align-self: start; }

/* Nosotros */
.nosotros { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.nosotros img { border-radius: 4px; }
.nosotros p { margin: 14px 0; }
.cifras { display: flex; gap: 34px; margin-top: 20px; }
.cifras b { display: block; font: 700 34px 'Raleway', sans-serif; color: var(--rojo); }
.cifras span { font-size: 14px; }

/* Marcas */
.marcas { display: flex; justify-content: space-around; align-items: center; gap: 30px; flex-wrap: wrap; }
.marcas img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.sucursal { background: #fff; border: 1px solid var(--linea); border-top: 4px solid var(--rojo); padding: 26px; }
.sucursal h3 { font-size: 22px; margin-bottom: 8px; }
.sucursal p { margin: 4px 0; font-size: 15px; }
.sucursal .boton { margin-top: 14px; }
.lineas-tel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.lineas-tel a { background: var(--negro); color: #fff; padding: 18px; border-radius: 3px; font-family: 'Raleway', sans-serif; }
.lineas-tel small { display: block; color: #b5b5b5; }
.lineas-tel b { font-size: 17px; }

/* Pie negro */
.pie { background: var(--negro); color: #b5b5b5; padding: 50px 0 30px; font-size: 14px; }
.pie .columnas { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.pie h4 { color: #fff; font-family: 'Raleway', sans-serif; margin: 0 0 12px; }
.pie a { display: block; padding: 3px 0; }
.pie a:hover { color: #fff; }
.redes { display: flex; gap: 10px; margin-top: 14px; }
.redes a { width: 36px; height: 36px; border-radius: 50%; background: #262626; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.aviso { border-top: 1px solid #262626; margin-top: 30px; padding-top: 16px; font-size: 12px; }

/* WhatsApp flotante */
.flotante { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: #25a35a; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-weight: 700; font-size: 12px; }
.flotante svg { width: 30px; height: 30px; fill: #fff; }

/* Página de máquina, como la ficha de producto de hoy */
.migas { padding: 24px 0; font-size: 14px; color: #8a8a8a; }
.migas a { color: var(--rojo); }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.ficha .foto { border: 1px solid var(--linea); padding: 30px; }
.ficha .chicas { display: flex; gap: 10px; margin-top: 10px; }
.ficha .chicas div { width: 90px; height: 70px; background: center/cover; border: 1px solid var(--linea); }
.ficha .categoria { font-size: 13px; text-transform: uppercase; color: #8a8a8a; letter-spacing: .06em; }
.ficha h1 { font-size: 34px; text-transform: uppercase; margin: 6px 0 12px; }
.ficha .disp { color: #1f8a4c; font-weight: 600; }
.ficha .corta { margin: 16px 0 22px; }
.ficha .datos { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 15px; }
.ficha .datos td { padding: 10px 12px; border: 1px solid var(--linea); }
.ficha .datos td:first-child { background: var(--gris); font-weight: 600; width: 40%; }
.formulario { background: var(--gris); padding: 22px; border-radius: 4px; }
.formulario h3 { font-size: 20px; margin-bottom: 12px; }
.formulario .campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.formulario input, .formulario select { padding: 12px; border: 1px solid #d6d6d6; border-radius: 3px; font: 15px 'Open Sans', sans-serif; width: 100%; }
.formulario .ancho { grid-column: 1 / -1; }
.formulario .acciones { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pestanas { border-bottom: 1px solid var(--linea); display: flex; gap: 4px; }
.pestanas span { padding: 12px 20px; font: 600 15px 'Raleway', sans-serif; }
.pestanas span.activa { border: 1px solid var(--linea); border-bottom-color: #fff; margin-bottom: -1px; background: #fff; color: var(--rojo); }
.pestana { padding: 26px 0; max-width: 760px; }

@media (max-width: 900px) {
  .menu { display: none; }
  .hamburguesa { display: block; }
  .accesos .envoltura, .lineas-tel { grid-template-columns: 1fr 1fr; }
  .catalogo, .nosotros, .contacto, .ficha { grid-template-columns: 1fr; }
  .categorias { display: none; }
}
@media (max-width: 600px) {
  .envoltura { padding: 0 16px; }
  .encabezado .envoltura { height: 64px; }
  .portada { min-height: 480px; align-items: end; padding-bottom: 20px; }
  .portada .caja { padding: 26px 22px; margin: 0; }
  .portada h1 { font-size: 30px; }
  .accesos .envoltura { grid-template-columns: 1fr; }
  .acceso { border-right: 0; border-bottom: 1px solid #262626; padding: 18px 0; }
  .seccion { padding: 52px 0; }
  .productos { grid-template-columns: 1fr 1fr; gap: 16px; }
  .producto-tarjeta h3 { font-size: 14px; }
  .producto-tarjeta .datos { font-size: 12px; }
  .producto-tarjeta .boton { padding: 11px 12px; font-size: 13px; width: 100%; }
  .lineas-tel { grid-template-columns: 1fr; }
  .pie .columnas { grid-template-columns: 1fr; }
  .formulario .campos { grid-template-columns: 1fr; }
  .ficha h1 { font-size: 28px; }
}
