/* --- Estilos Globales y Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif; /* Consistencia tipográfica con tu portal principal */
    background-color: #f4f6f9;
    color: #333333;
    line-height: 1.6;
}

/* --- CABECERA CORPORATIVO (AZUL REY DEGRADADO) --- */
.header-corporativo {
    background: linear-gradient(135deg, #4169e1, #0033aa); /* Combinación exacta azul rey */
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-regresar-top {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-regresar-top:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.02);
}

.header-center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-chip {
    width: 110px;
    height: auto;
}

.header-text-container h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.header-text-container p {
    font-size: 22px;
    color: #cbd5e1;
    margin-top: 1px;
    text-align: left;
}

/* --- TARJETA DEL ARTÍCULO --- */
.articulo-contenedor {
    max-width: 900px; /* Un poco más espacioso para coincidir con tus módulos */
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.articulo-header {
    border-bottom: 2px solid #eceff1;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.categoria-etiqueta {
    background-color: #3b5998; /* Azul corporativo intermedio */
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.articulo-header h1 {
    font-size: 2.2em;
    color: #0033aa; /* Títulos principales en azul rey */
    margin: 15px 0 10px 0;
}

.meta-datos {
    font-size: 0.9em;
    color: #718096;
}

.divisor {
    margin: 0 8px;
}

/* --- MULTIMEDIA INTEGRADA --- */
.articulo-imagen-contenedor {
    margin-bottom: 30px;
    text-align: center;
}

.articulo-imagen {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.imagen-pie {
    font-size: 0.85em;
    color: #718096;
    margin-top: 8px;
    font-style: italic;
}

/* --- BLOQUES DE TEXTO Y ALERTAS --- */
.articulo-contenido h2 {
    font-size: 1.5em;
    color: #0033aa; /* Encabezados secundarios en azul rey */
    margin-top: 35px;
    border-left: 4px solid #4169e1;
    padding-left: 10px;
}

.articulo-contenido p {
    margin-bottom: 15px;
    color: #4a5568;
}

.alerta-caja {
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
}

.consecuencia {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 5px solid #e53e3e;
}

.consecuencia h3 {
    color: #c53030;
    margin-top: 0;
    margin-bottom: 8px;
}

.preventiva {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    border-left: 5px solid #38a169;
}

.preventiva h3 {
    color: #276749;
    margin-top: 0;
    margin-bottom: 8px;
}

.preventiva ul {
    padding-left: 20px;
}

.preventiva li {
    margin-bottom: 12px;
    color: #2f855a;
}

.lista-protocolo {
    padding-left: 20px;
    margin: 15px 0;
}

.lista-protocolo li {
    margin-bottom: 15px;
    color: #4a5568;
}

/* --- BOTONERA DE RETORNO (ESTILO FORMULARIO PRINCIPAL) --- */
.botonera-retorno {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 40px 0 20px 0;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.btn-navegacion {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    font-size: 0.95em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-inicio-seccion {
    background-color: #4a5568; /* Gris oscuro igual a tus botones inferiores */
}

.btn-inicio-seccion:hover {
    background-color: #2d3748;
}

.btn-blog-seccion {
    background-color: #3b5998; /* Azul corporativo */
}

.btn-blog-seccion:hover {
    background-color: #2d4373;
}

.btn-productos-seccion {
    background-color: #4169e1; /* Azul rey */
}

.btn-productos-seccion:hover {
    background-color: #0033aa;
}

/* ==========================================================================
   9. BOTÓN FLOTANTE WHATSAPP Y FOOTER
   ========================================================================== */
.whatsapp-fixed {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.3s ease, background-color 0.2s;
  cursor: pointer;
}

.whatsapp-fixed img {
  width: 35px;
  height: 35px;
}

.whatsapp-fixed:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #128c7e;
}

footer { 
  background: #002244; 
  color: #ffffff; 
  text-align: center; 
  padding: 20px; 
  margin-top: 40px; 
}

.facebook-link { 
  color: #ffffff; 
  text-decoration: none; 
  margin-left: 5px; 
  font-weight: 600; 
  transition: color 0.2s; 
}

.facebook-link:hover { 
  color: #1877f2; 
  text-decoration: underline; 
}

.facebook-link i { 
  margin-right: 4px; 
  font-size: 15px; 
}

/* --- AJUSTES RESPONSIVOS PARA SMARTPHONES --- */
@media (max-width: 768px) {
    .header-corporativo {
        height: auto;
        padding: 30px 10px;
        flex-direction: column;
    }
    .btn-regresar-top {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 15px;
        display: inline-block;
    }
    .header-center-container {
        flex-direction: column;
        text-align: center;
    }
    .header-text-container p {
        text-align: center;
    }
    .header-text-container h1 {
        font-size: 32px;
    }
    .botonera-retorno {
        flex-direction: column;
        gap: 10px;
    }
    .articulo-contenedor {
        padding: 20px;
        margin: 20px 10px;
    }
    .articulo-header h1 {
        font-size: 1.7em;
    }
}
