/* css/encabezado.css - prefijo enc_ usado en todas las clases.
   Observaciones:
   - Los selectores usan #enc_header para mayor especificidad (minimiza overrides).
   - El contenedor .enc_container define el ancho central donde deben aplicarse las reglas.
*/

/* Scope general */
#enc_header { box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }

/* Línea decorativa superior */
#enc_header .enc_topline {
  height: 10px;
  background: #980402;
}

/* CONTENEDOR: limita ancho y centra. Asegura que la parte superior quede dentro. */
#enc_header .enc_container {
  max-width: 980px;      /* ancho visual del encabezado */
  margin: 0 auto;
  padding: 10px 14px;
  box-sizing: border-box;
}

/* Row: logo + datos */
#enc_header .enc_row {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Logo izquierda */
#enc_header .enc_left { flex: 0 0 420px; }
#enc_header .enc_logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 6px solid #f2f2f2;
  background: #fff;
  box-sizing: border-box;
  border-radius: 6px;
}

/* Datos derecha */
#enc_header .enc_right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
#enc_header .enc_contacto { text-align: right; }
#enc_header .enc_telefono {
  font-weight: 800;
  font-size: 24px;
  color: #980402;
  margin: 0 0 6px 0;
}
#enc_header .enc_direccion {
  font-size: 16px;
  color: #6b1212;
  margin: 0;
  line-height: 1.15;
  padding-right: 10px; /* separacion 10px derecha */
}

/* Iconos */
#enc_header .enc_icons {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
}
#enc_header .enc_icon_fb,
#enc_header .enc_icon_flag {
  width:54px; /* 50% más grandes */
  height:auto;
  display:block;
}
#enc_header .enc_icon_link:hover img { transform: scale(1.08); transition: transform .12s; }

/* Menu */
#enc_header .enc_navbar {
  background:#7a0e0e;
  box-shadow: inset 0 3px 0 rgba(0,0,0,0.15);
}
#enc_header .enc_menu {
  list-style:none;
  margin:0;
  padding:10px 0;
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
}
#enc_header .enc_menu_link {
  display:inline-block;
  padding:6px 14px;
  background:#4b0404;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  border-radius:4px;
  border:2px solid rgba(0,0,0,0.25);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.35);
}
#enc_header .enc_menu_link:hover { background:#990b0b; transform:translateY(-2px); }

/* Hero bar */
#enc_header .enc_gifbar { background:#666666; padding:18px 0 28px 0; }
#enc_header .enc_gif_inner { display:flex; justify-content:center; }
#enc_header .enc_gif { width:100%; max-width:820px; height:auto; display:block; border:6px solid rgba(255,255,255,0.95); box-sizing:border-box; }

/* Responsive */
@media (max-width:920px) {
  #enc_header .enc_row { flex-direction: column; align-items: stretch; gap:8px; }
  #enc_header .enc_left { flex:0 0 auto; text-align:center; }
  #enc_header .enc_logo { width:80%; max-width:440px; margin:0 auto; }
  #enc_header .enc_right { align-items:center; text-align:center; }
  #enc_header .enc_icons { justify-content:center; }
  #enc_header .enc_menu { flex-wrap:wrap; }
  #enc_header .enc_menu_link { padding:8px 12px; font-size:13px; }
}
