:root {
  --color: #0b6fa4;
  --color-osc: #08537b;
  --texto: #1b2430;
  --gris: #5f6b78;
  --borde: #e1e7ed;
  --fondo-gris: #f4f7fa;
  --radio: 14px;
  --sombra: 0 6px 24px rgba(16, 38, 60, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--texto); background: #fff; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--color); }
[hidden] { display: none !important; }
.contenedor { width: min(1180px, 100%); margin: 0 auto; padding: 0 20px; }

/* Botones */
.boton { display: inline-block; background: var(--color); color: #fff; border: 2px solid var(--color); padding: 11px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.boton:hover { transform: translateY(-1px); background: var(--color-osc); border-color: var(--color-osc); }
.boton.secundario { background: transparent; color: var(--color); }
.boton.secundario:hover { background: var(--color); color: #fff; }
.boton.whatsapp { background: #25d366; border-color: #25d366; }
.boton.whatsapp:hover { background: #1da851; border-color: #1da851; }
.boton:disabled { opacity: .6; cursor: wait; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.cabecera-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--texto); text-decoration: none; }
.marca img { height: 42px; width: auto; }
nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav a { color: var(--texto); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
nav a:hover { background: var(--fondo-gris); color: var(--color); }
nav .nav-empleados { font-size: 13px; color: var(--gris); border: 1px solid var(--borde); margin-left: 8px; }
.menu-movil { display: none; margin-left: auto; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--texto); }

/* Portada */
.hero { position: relative; color: #fff; padding: 110px 0 120px; background: linear-gradient(120deg, var(--color-osc), var(--color) 55%, #35b6d6); overflow: hidden; }
.hero.con-imagen { background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 30, 50, .65), rgba(5, 30, 50, .15)); pointer-events: none; }
.hero:not(.con-imagen)::after { background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 45%); }
.hero-in { position: relative; z-index: 1; max-width: 720px; margin-left: max(20px, calc((100% - 1180px) / 2 + 20px)); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 0 0 18px; }
.hero p { font-size: clamp(16px, 2vw, 19px); opacity: .95; margin: 0 0 30px; white-space: pre-line; }
.hero-botones { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .boton { background: #fff; color: var(--color-osc); border-color: #fff; }
.hero .boton.secundario { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }

/* Secciones */
.seccion { padding: 72px 0; }
.seccion.gris { background: var(--fondo-gris); }
.seccion h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 8px; }
.subtitulo { color: var(--gris); margin: 0 0 28px; }

/* Catálogo */
.filtros { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.filtros input { width: min(480px, 100%); padding: 12px 18px; border: 1px solid var(--borde); border-radius: 999px; font: inherit; background: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--borde); background: #fff; border-radius: 999px; padding: 7px 16px; font: inherit; cursor: pointer; color: var(--texto); }
.chip.activo { background: var(--color); border-color: var(--color); color: #fff; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.tarjeta { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.producto { cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; border: none; padding: 0; text-align: left; font: inherit; color: inherit; }
.producto:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 38, 60, .14); }
.producto-foto { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--borde); position: relative; }
.producto-foto img { width: 100%; height: 100%; object-fit: contain; }
.producto-foto .sin-foto { font-size: 46px; font-weight: 700; color: var(--color); opacity: .5; }
.producto-foto .n-fotos { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.producto-texto { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.producto-cat { font-size: 12px; font-weight: 600; color: var(--color); text-transform: uppercase; letter-spacing: .04em; }
.producto-nombre { font-weight: 700; font-size: 17px; }
.producto-marca { color: var(--gris); font-size: 14px; }
.producto-ver { margin-top: auto; padding-top: 8px; color: var(--color); font-weight: 600; font-size: 14px; }
.vacio { text-align: center; color: var(--gris); padding: 40px; }

/* Servicio técnico */
.servicio-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.servicio-in p { white-space: pre-line; font-size: 17px; color: #333; }
.servicio-icono { font-size: 150px; text-align: center; background: var(--fondo-gris); border-radius: 50%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; max-width: 320px; justify-self: center; width: 100%; }
.ventajas { list-style: none; padding: 0; margin: 0 0 24px; }
.ventajas li { padding: 6px 0 6px 30px; position: relative; }
.ventajas li::before { content: "✓"; position: absolute; left: 0; color: #fff; background: var(--color); width: 20px; height: 20px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; top: 9px; }

/* Contacto */
.contacto-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.datos-contacto { list-style: none; padding: 0; margin: 0 0 22px; }
.datos-contacto li { padding: 8px 0; display: flex; gap: 12px; }
.formulario { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.formulario label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; }
.formulario input, .formulario textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 8px; font-weight: 400; }
.formulario input:focus, .formulario textarea:focus { outline: 2px solid color-mix(in srgb, var(--color) 35%, transparent); border-color: var(--color); }
.formulario .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formulario label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.formulario label.check input { margin-top: 4px; }
.info-rgpd { font-size: 11.5px; color: var(--gris); margin: 0; line-height: 1.45; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.resultado { margin: 0; font-weight: 600; }
.resultado.ok { color: #1e8e4e; }
.resultado.error { color: #b3261e; }
.producto-sel { background: color-mix(in srgb, var(--color) 10%, #fff); border-radius: 8px; padding: 8px 12px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.producto-sel button { background: none; border: none; cursor: pointer; color: var(--gris); }

/* Pie */
.pie { background: #0f1b26; color: #c5d0da; padding: 28px 0; font-size: 14px; }
.pie-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie-enlaces { display: flex; gap: 18px; flex-wrap: wrap; }
.pie a { color: #c5d0da; text-decoration: none; }
.pie a:hover { color: #fff; }

/* Ficha de producto */
.ficha { width: min(1060px, 96vw); max-height: 94vh; border: none; border-radius: 18px; padding: 0; overflow: auto; }
.ficha::backdrop { background: rgba(10, 20, 30, .65); }
.ficha .cerrar { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: #fff; box-shadow: var(--sombra); font-size: 18px; cursor: pointer; }
.ficha-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; padding: 28px; }
.galeria-principal { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.galeria-principal img { width: 100%; height: 100%; object-fit: contain; }
.flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); box-shadow: var(--sombra); font-size: 26px; cursor: pointer; line-height: 1; }
.flecha.izq { left: 10px; } .flecha.der { right: 10px; }
.contador-fotos { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.miniaturas { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.miniaturas button { flex: none; width: 74px; height: 60px; border: 2px solid var(--borde); border-radius: 8px; padding: 0; background: #fff; cursor: pointer; overflow: hidden; }
.miniaturas button.activa { border-color: var(--color); }
.miniaturas img { width: 100%; height: 100%; object-fit: contain; }
.ficha-meta { font-size: 13px; color: var(--color); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ficha-texto h2 { margin: 4px 0; font-size: 28px; line-height: 1.2; }
.ficha-marca { color: var(--gris); margin-bottom: 12px; }
.ficha-texto p { white-space: pre-line; color: #333; }
.tabla-ficha { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.tabla-ficha caption { text-align: left; font-weight: 700; padding-bottom: 8px; font-size: 16px; }
.tabla-ficha th { text-align: left; background: var(--fondo-gris); width: 45%; padding: 8px 12px; font-weight: 600; border-bottom: 1px solid #fff; }
.tabla-ficha td { padding: 8px 12px; border-bottom: 1px solid var(--borde); }
.ficha-botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
#ficha-pdf { margin-top: 4px; }

/* Páginas legales */
.legal { max-width: 860px; margin: 0 auto; padding: 40px 20px 70px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal table { border-collapse: collapse; width: 100%; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--borde); }
.legal th { width: 28%; background: var(--fondo-gris); }

@media (max-width: 860px) {
  .menu-movil { display: block; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--borde); box-shadow: var(--sombra); }
  nav.abierto { display: flex; }
  nav .nav-empleados { margin: 8px 0 0; text-align: center; }
  .servicio-in, .contacto-in, .ficha-in { grid-template-columns: 1fr; }
  .servicio-icono { display: none; }
  .hero { padding: 70px 0 80px; }
  .ficha-in { padding: 18px; gap: 18px; }
  .formulario .dos { grid-template-columns: 1fr; }
}
