/* RED DE FABRICACIÓN F0 (2026-10-18): botón «Contactar Empresa Melaminera», modal de empresas y los tres avisos de pago. */
/* Dueño (2026-10-18, 2.ª vuelta): AZUL, letra algo mayor en escritorio, dentro del panel gris del bloque principal y en
   su esquina superior derecha; también arriba al centro del panel «Documentación técnica». Fuera de la barra de
   navegación (R-081: dentro de ella partía el menú en dos filas a 1100 px). */
.red-abrir {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 10px 18px; white-space: nowrap; cursor: pointer;
  background: linear-gradient(135deg, #1d4ed8, #173f80); color: #fff; font: 800 .84rem 'Space Grotesk', sans-serif;
  box-shadow: 0 6px 18px rgba(23, 63, 128, .35);
}
.red-abrir:hover { filter: brightness(1.12); }
.red-abrir-hero { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: -30px -22px 12px; }
.red-abrir-centro { display: flex; justify-content: center; margin: 0 0 12px; }
@media (max-width: 760px) {
  .red-abrir { padding: 9px 14px; font-size: .76rem; }
  .red-abrir-hero { margin: -12px -6px 10px; }
}

/* Avisos */
.red-aviso[hidden] { display: none !important; }
.red-aviso { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.red-aviso-marca { position: absolute; top: 2px; right: 6px; font: 700 .55rem system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.red-aviso-texto { font-weight: 700; }
.red-aviso-boton {
  flex: 0 0 auto; display: inline-block; border: 0; border-radius: 999px; padding: 7px 14px; white-space: nowrap; cursor: pointer;
  background: #0b2a5b; color: #fff; font: 800 .74rem 'Space Grotesk', sans-serif; text-decoration: none;
}
.red-aviso-imagen { display: block; max-width: 100%; height: auto; object-fit: contain; }
.red-aviso-html { display: block; width: 100%; border: 0; background: transparent; }
/* HTML e imagen ocupan todo su espacio: sin relleno ni fondo propio (el diseño es el del aviso). */
.red-aviso[data-formato="html"], .red-aviso[data-formato="imagen"] { padding: 0; background: transparent; border: 0; box-shadow: none; overflow: hidden; }
.red-aviso-cabecera { padding: 8px 40px; background: #0b2a5b; color: #fff; font-size: .85rem; }
.red-aviso-cabecera .red-aviso-boton { background: #d4a017; color: #0b2a5b; }
.red-aviso-principal {
  margin: 0 0 14px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: #10243a;
  border: 1px solid rgba(212, 160, 23, .55); box-shadow: 0 8px 24px rgba(0, 22, 48, .12); font-size: .9rem;
}
.red-aviso-modal { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #f6f7fb; border: 1px dashed #c8d3e0; font-size: .85rem; }

/* Modal */
html.red-abierto { overflow: hidden; }
.red-modal-fondo { position: fixed; inset: 0; z-index: 10050; display: none; place-items: center; padding: 16px; background: rgba(7, 18, 31, .68); backdrop-filter: blur(8px); }
.red-modal-fondo.is-open { display: grid; }
.red-modal {
  position: relative; width: min(760px, 100%); max-height: min(900px, 94vh); overflow: auto; box-sizing: border-box; padding: 22px;
  border-radius: 20px; background: #fff; color: #10243a; box-shadow: 0 30px 90px rgba(0, 22, 48, .35);
}
@media (max-width: 560px) { .red-modal-fondo { padding: 0; } .red-modal { max-height: 100vh; height: 100%; border-radius: 0; padding: 18px 16px; } }
.red-modal-cerrar { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f7; color: #10243a; font-size: 1.3rem; cursor: pointer; }
.red-kicker { color: #b8860b; font: 800 .68rem 'Space Grotesk', sans-serif; letter-spacing: .08em; }
.red-modal h2 { margin: 6px 40px 6px 0; font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.1; color: #0b2a5b; }
.red-sub { margin: 0 0 14px; color: #4b5d73; font-size: .9rem; }
.red-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 12px; }
.red-form label { display: grid; gap: 4px; font-size: .78rem; font-weight: 800; color: #24364c; }
.red-form label em { font-weight: 500; color: #6b7c90; }
.red-form .is-ancho { grid-column: 1 / -1; }
.red-form input, .red-form select {
  width: 100%; box-sizing: border-box; min-height: 42px; border: 1px solid #c8d3e0; border-radius: 10px; padding: 8px 11px;
  font: 500 .92rem system-ui, sans-serif; color: #10243a; background: #fff;
}
.red-form input:focus, .red-form select:focus { outline: 2px solid #d4a017; outline-offset: 1px; }
.red-maps { border: 1px solid #e3e9f1; border-radius: 10px; padding: 8px 12px; background: #fafbfd; }
.red-maps summary { cursor: pointer; font-size: .82rem; font-weight: 800; color: #173f80; }
.red-maps p { margin: 8px 0; font-size: .8rem; color: #4b5d73; }
.red-servicios { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 1px solid #e3e9f1; border-radius: 10px; padding: 8px 12px; margin: 0; }
.red-servicios legend { font-size: .78rem; font-weight: 800; color: #24364c; padding: 0 4px; }
.red-servicios label { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.red-servicios input { width: auto; min-height: 0; }
.red-acciones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; }
.red-boton-principal {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 12px 20px; white-space: nowrap; cursor: pointer;
  background: #0b2a5b; color: #fff; font: 800 .86rem 'Space Grotesk', sans-serif;
}
.red-boton-principal:disabled { opacity: .6; cursor: wait; }
.red-enlace { border: 0; background: none; padding: 0; color: #173f80; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.red-estado { margin: 12px 0 0; font-size: .86rem; font-weight: 700; color: #1e3a8a; }
.red-estado.is-error { color: #b91c1c; }
.red-estado:empty { display: none; }
.red-lista { display: grid; gap: 10px; margin-top: 12px; }
.red-empresa { border: 1px solid #e3e9f1; border-radius: 14px; padding: 12px 14px; background: #fff; }
.red-empresa.is-destacada { border-color: #d4a017; background: linear-gradient(180deg, #fffaf0, #fff); box-shadow: 0 6px 18px rgba(212, 160, 23, .18); }
.red-empresa header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.red-empresa h3 { margin: 0; font-size: 1rem; color: #0b2a5b; }
.red-destacada { padding: 2px 9px; border-radius: 999px; background: #d4a017; color: #0b2a5b; font: 800 .66rem 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.red-lugar, .red-horario { margin: 4px 0 0; font-size: .82rem; color: #4b5d73; }
.red-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.red-chip { padding: 2px 9px; border-radius: 999px; background: #eef2f7; color: #24364c; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.red-acciones-empresa { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.red-accion {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; border: 1px solid #c8d3e0; color: #173f80; background: #fff;
  font: 800 .74rem 'Space Grotesk', sans-serif; text-decoration: none; white-space: nowrap;
}
.red-accion.is-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.red-registro-cta { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #eef2f7; font-size: .86rem; color: #4b5d73; text-align: center; }
/* 2.ª vuelta (2026-10-18): aviso arriba del modal y atribución de OpenStreetMap (su licencia la pide). */
.red-aviso-modal-arriba { margin: 0 40px 14px 0; padding: 10px 14px; border-radius: 12px; background: #f6f7fb; border: 1px dashed #c8d3e0; font-size: .85rem; }
.red-osm { margin: 4px 0 0; font-size: .7rem; color: #6b7c90; text-align: right; }

/* Carpintero a Domicilio® (2026-10-18): botón de la app con flecha azul, pestaña «App», eslogan, publicidad del modal,
   papeles y lista de precios. */
.red-flecha { width: 1.05em; height: 1.05em; flex: none; }
.red-app-boton {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
  padding: 9px 16px; white-space: nowrap; cursor: pointer; background: rgba(255, 255, 255, .92); color: #173f80;
  font: 800 .84rem 'Space Grotesk', sans-serif; box-shadow: 0 6px 18px rgba(23, 63, 128, .18);
}
.red-app-boton .red-flecha { color: #1d4ed8; }
.red-app-boton:hover { background: #fff; }
.topnav .nav-app { display: inline-flex; align-items: center; gap: 4px; color: #1d4ed8; font-weight: 700; }
.topnav .nav-app .red-flecha { width: 1.1em; height: 1.1em; }
.red-eslogan { margin: 10px 0 0; padding: 6px 16px; text-align: center; font: 600 clamp(.86rem, 1.6vw, .98rem) 'Space Grotesk', sans-serif; color: #24364c; letter-spacing: .01em; }
.red-eslogan b { color: #173f80; }
.red-pro-acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.red-enlace-pro { border: 0; background: none; padding: 6px 4px; color: #173f80; font: 800 .86rem 'Space Grotesk', sans-serif; text-decoration: underline; cursor: pointer; }
.red-aviso-modal-arriba[data-formato="promo"] { padding: 0; border: 0; background: transparent; }
.red-promo-app { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: linear-gradient(135deg, #0b2a5b, #1d4ed8); color: #fff; }
.red-promo-app img { flex: none; border-radius: 50%; background: #fff; }
.red-promo-app div { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; font-size: .82rem; line-height: 1.35; }
.red-promo-app strong { font-size: .95rem; }
.red-promo-boton { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #f2c94c; color: #0b2a5b;
  font: 800 .8rem 'Space Grotesk', sans-serif; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) { .red-promo-app { flex-wrap: wrap; } .red-promo-boton { margin-left: 56px; } }
.red-app-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.red-app-acciones .red-boton-principal { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.red-boton-secundario { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c8d3e0; border-radius: 999px; padding: 11px 18px;
  background: #fff; color: #173f80; font: 800 .84rem 'Space Grotesk', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.red-h3 { margin: 8px 0 8px; font-size: 1rem; color: #0b2a5b; }
.red-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.red-rol { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid #e3e9f1; border-radius: 14px; background: #fff; color: #10243a;
  text-decoration: none; cursor: pointer; font: inherit; }
.red-rol:hover { border-color: #1d4ed8; background: #f5f8ff; }
.red-rol strong { color: #0b2a5b; font-size: .92rem; }
.red-rol span { color: #4b5d73; font-size: .8rem; }
.red-precios { border: 1px solid #e3e9f1; border-radius: 10px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.red-precios legend { font-size: .78rem; font-weight: 800; color: #24364c; padding: 0 4px; }
.red-precios p { margin: 0; font-size: .8rem; color: #4b5d73; }
.red-precios-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.red-archivo { position: relative; }
.red-precios-estado { font-weight: 700; color: #1e3a8a !important; }
.red-precios-estado.is-error { color: #b91c1c !important; }
.red-precios-estado:empty { display: none; }
.red-nota-apk { margin: -6px 0 12px; font-size: .78rem; color: #4b5d73; line-height: 1.4; }
