/* PORTAL GENERAL KITCHENDRAW / INSITU — estilos comunes.
   Paleta: azules de la documentación InSitu / KitchenDraw.
   Sin librerías, fuentes externas ni JavaScript. Flex con alternativa en bloque.
*/

/* 01. Base */
* { box-sizing: border-box; }
body { margin: 0; color: #344e6b; background: #fff; font: 15px/1.55 Arial, Helvetica, sans-serif; }
a { color: #2e6099; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus { outline: 2px solid #2e6099; outline-offset: 4px; }
/* El clic no deja un recuadro; el teclado conserva el foco visible. */
a:focus:not(:focus-visible) { outline: none; }
a:focus-visible { outline: 2px solid #2e6099; outline-offset: 4px; }
img { max-width: 100%; border: 0; }
h1, h2, h3 { color: #172c40; line-height: 1.25; }
h1 { font-size: 30px; margin: 6px 0 8px; }
h2 { font-size: 22px; margin: 0; }
h3 { font-size: 16px; margin: 6px 0; }
p { margin: 0 0 16px; }
.container { width: 94%; max-width: 1240px; margin: 0 auto; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; background: white; padding: 12px; }

/* 02. Cabecera compartida: marca propia izquierda, cliente derecha.
   Colores y archivo del cliente se definen exclusivamente en cliente.css. */
.cabecera { background: #fff; border-top: 0; border-bottom: 3px solid; }
.marcas { display: flex; align-items: center; justify-content: space-between; min-height: 108px; padding: 20px 0; }
.marca-vs, .identidad-vs, .logos-aplicaciones { display: flex; align-items: center; }
.identidad-vs { color: #111; }
.identidad-vs:hover { color: #111; text-decoration: none; }
.identidad-vs .logo-vs { width: 60px; height: 60px; margin-right: 10px; }
.identidad-vs strong { font-size: 26px; letter-spacing: -.7px; white-space: nowrap; }
.identidad-vs strong span { color: #009fe3; }
.logos-aplicaciones { margin-left: 30px; }
.logos-aplicaciones img { flex-shrink: 0; }
.logos-aplicaciones img + img { margin-left: 14px; }
.logo-cliente { flex-shrink: 0; background-repeat: no-repeat; }
.navegacion { background: #fff; border-bottom: 1px solid #dce4ec; }
.menu { display: flex; flex-wrap: wrap; }
.menu a { display: inline-block; padding: 16px 22px; color: #344e6b; border-bottom: 3px solid transparent; }
.menu a:hover, .menu .active { background: #f4f7fa; text-decoration: none; color: #192c40; }

/* 03. Imagen e introducción */
.hero { background: white; text-align: center; }
.hero { max-width: 1500px; margin: 0 auto; overflow: hidden; }
.hero img { width: 100%; height: 350px; display: block; margin: auto; object-fit: cover; object-position: center 58%; }
@media (max-width: 760px) { .hero img { height: 250px; } }
.contenido { padding: 26px 0 40px; }
.introduccion { margin-bottom: 24px; }
.introduccion > p:last-child { margin: 0; }
.eyebrow, .etiqueta { font-size: 10px; font-weight: bold; letter-spacing: 1.3px; color: #5a7188; }
.eyebrow { margin: 0; color: #009fe3; }

/* 04. Paneles; los botones permanecen junto a su contenido */
.columnas { display: flex; align-items: stretch; margin: 0 -10px; }
.panel { flex: 1; min-width: 0; margin: 0 10px; padding: 24px; background: white; border: 1px solid #dce4ec; border-radius: 8px; box-shadow: 0 2px 5px rgba(28,51,75,.04); }
.noticias { border-top: 3px solid; padding-top: 22px; }
.titulo-panel { display: flex; align-items: center; margin-bottom: 22px; }
.titulo-panel > img { flex-shrink: 0; margin-right: 12px; }
.titulo-panel .etiqueta { display: block; margin-bottom: 5px; }
.boton { display: inline-block; padding: 10px 14px; border-radius: 5px; border: 1px solid #2e6099; background: #2e6099; color: white; font-size: 13px; font-weight: bold; }
.boton span { margin-left: 8px; }
.boton:hover { background: #234c7b; color: white; text-decoration: none; }
.secundario { color: #2e6099; background: white; }
.recurso { padding: 18px 0; border-top: 1px solid #e7ecf2; }
.recurso:last-child { padding-bottom: 0; }
.recurso h3 { margin-top: 0; }
.recurso p { font-size: 14px; }
.captura { margin: 22px 0; padding: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; }
.captura img { display: block; width: 100%; height: auto; }
figcaption { font-size: 11px; text-align: center; padding-top: 8px; color: #60768b; }

/* 05. Noticias: duplicar los artículos en portalis.html */
.noticia { margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid #e7ecf2; }
.noticia time { font-size: 12px; color: #60768b; }
.noticia h3 { font-size: 15px; margin: 4px 0; }
.noticia p { font-size: 13px; margin: 0; }
.ayuda { font-size: 13px; margin: 18px 0; }
.ayuda a { text-decoration: underline; }

/* 06. Contacto y pie */
.pie { background: white; border-top: 1px solid #dce4ec; padding: 30px 0 24px; }
.soporte { display: flex; justify-content: space-between; padding-bottom: 24px; }
.soporte h2 { margin: 5px 0 12px; }
.soporte p { margin: 5px 0; }
.detalle { font-size: 13px; color: #60768b; }
.separador { margin: 0 8px; color: #a0adba; }
.redes { text-align: right; padding-top: 16px; }
.redes p { font-size: 13px; margin-top: 12px; }
.legal { border-top: 1px solid #e7ecf2; padding-top: 18px; font-size: 11px; color: #60768b; }
.legal p { margin-bottom: 8px; }

/* 07. Ventanas pequeñas de la aplicación y móviles */
@media (max-width: 1000px) {
  .panel { padding: 18px; margin: 0 6px; }
  .columnas { margin: 0 -6px; }
  h2 { font-size: 19px; }
  .menu a { padding: 14px 16px; }
}
@media (max-width: 760px) {
  .columnas { display: block; margin: 0; }
  .panel { margin: 0 0 18px; padding: 22px; }
  .menu a { padding: 12px 13px; font-size: 13px; }
  h1 { font-size: 26px; }
  .soporte { display: block; }
  .redes { text-align: left; }
  .captura { max-width: 400px; }
}
@media (max-width: 440px) {
}

/* Cabecera adaptable, sin cambiar el orden de las marcas. */
@media (max-width: 1000px) {
  .identidad-vs strong { font-size: 22px; }
  .identidad-vs .logo-vs { width: 48px; height: 48px; }
  .logos-aplicaciones { margin-left: 18px; }
  .logos-aplicaciones img { width: 36px; height: 36px; }
  .logos-aplicaciones img + img { width: 42px; height: 36px; margin-left: 10px; }
}
@media (max-width: 650px) {
  .marcas { min-height: 100px; flex-wrap: wrap; padding: 14px 0; }
  .marca-vs { width: 100%; justify-content: space-between; margin-bottom: 14px; }
  .logo-cliente { margin-left: auto; }
  .identidad-vs strong { font-size: 21px; }
}

/* Datos de acceso a la formación */
.acceso-wiki { margin: 0 0 18px; padding: 14px; border-left: 3px solid #2e6099; background: #f4f7fa; border-radius: 4px; font-size: 13px; }
.acceso-wiki p { margin: 0 0 10px; }
.acceso-wiki dl { margin: 0; }
.acceso-wiki dt { font-size: 12px; color: #60768b; margin-top: 8px; }
.acceso-wiki dd { margin: 2px 0 0; font-weight: bold; color: #172c40; overflow-wrap: anywhere; }

/* Acceso directo a WhatsApp, disponible durante la navegación. */
.whatsapp-directo { position: fixed; bottom: 22px; right: max(22px, calc((100vw - 1500px) / 2)); z-index: 20; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 13px; border-radius: 50%; background: #128c4a; color: #fff; font-size: 14px; font-weight: bold; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.whatsapp-directo svg { width: 38px; height: 38px; margin-right: 0; }
.whatsapp-directo span { display: none; }
.whatsapp-directo:hover { background: #0e713c; color: #fff; text-decoration: none; }
.pie { padding-bottom: 90px; }
@media (max-width: 760px) { .whatsapp-directo { bottom: 14px; right: 14px; width: 58px; height: 58px; padding: 12px; } .whatsapp-directo svg { width: 34px; height: 34px; } }

/* 09. Contacto: comparte identidad, navegación y pie con la portada. */
.contacto-layout { display: flex; align-items: flex-start; margin: 0 -10px; }
.formulario-panel { flex: 2; }
.formulario-panel > h2 { margin-bottom: 8px; }
.contacto-directo { flex: 1; }
.contacto-directo > h2 { margin: 6px 0 20px; }
.contacto-directo a { overflow-wrap: anywhere; }
.campo { margin: 0 0 18px; }
.campo label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: bold; }
.campo input, .campo textarea { display: block; width: 100%; border: 1px solid #bdcbd8; border-radius: 5px; padding: 11px 12px; font: inherit; color: #172c40; background: white; }
.campo textarea { resize: vertical; min-height: 150px; }
.campo input:focus, .campo textarea:focus { outline: 2px solid #2e6099; outline-offset: 1px; }
.campos-dobles { display: flex; margin: 0 -8px; }
.campos-dobles .campo { flex: 1; min-width: 0; margin-left: 8px; margin-right: 8px; }
.acciones-formulario button { cursor: pointer; margin-right: 8px; font-family: inherit; }
@media (max-width: 760px) {
  .contacto-layout, .campos-dobles { display: block; margin: 0; }
  .campos-dobles .campo { margin-left: 0; margin-right: 0; }
}
